From: Wang Nan <wangnan0@huawei.com>
To: <acme@kernel.org>, <namhyung@kernel.org>
Cc: <lizefan@huawei.com>, <pi3orama@163.com>,
<linux-kernel@vger.kernel.org>, <jolsa@kernel.org>,
Wang Nan <wangnan0@huawei.com>
Subject: [PATCH v2 0/7] perf tools: improve BPF related error delivering and testing
Date: Fri, 6 Nov 2015 13:49:36 +0000 [thread overview]
Message-ID: <1446817783-86722-1-git-send-email-wangnan0@huawei.com> (raw)
This patchset is based on Arnaldo's perf/core.
Previous version can be found from [1].
Patch 1/7 - 4/7 are error message related patches.
Patch 5/7 - 7/7 are testing related patches.
v1 -> v2:
- Use enum for error code.
- Eliminate for-loop, directly get error message from array using
array index.
- Classify error reason of program loading failure.
- Improve message when version mismatching.
[1] http://lkml.kernel.org/r/1446697622-4072-1-git-send-email-wangnan0@huawei.com
Wang Nan (7):
bpf tools: Improve libbpf error reporting
bpf tools: Add new API bpf_object__get_kversion()
perf tools: Make fetch_kernel_version() public available
perf tools: Improve BPF related error messages output
perf test: Enforce LLVM test: update basic BPF test program
perf test: Enforce LLVM test: add kbuild test
perf test: Add 'perf test BPF'
tools/lib/bpf/libbpf.c | 167 +++++++++++++++++-------
tools/lib/bpf/libbpf.h | 21 +++
tools/perf/tests/Build | 17 ++-
tools/perf/tests/bpf-script-example.c | 4 +
tools/perf/tests/bpf-script-test-kbuild.c | 21 +++
tools/perf/tests/bpf.c | 209 ++++++++++++++++++++++++++++++
tools/perf/tests/builtin-test.c | 4 +
tools/perf/tests/llvm.c | 137 +++++++++++++++-----
tools/perf/tests/llvm.h | 18 +++
tools/perf/tests/tests.h | 1 +
tools/perf/util/bpf-loader.c | 143 +++++++++++++++++---
tools/perf/util/bpf-loader.h | 32 +++++
tools/perf/util/llvm-utils.c | 49 +++----
tools/perf/util/parse-events.c | 11 +-
tools/perf/util/util.c | 31 +++++
tools/perf/util/util.h | 8 ++
16 files changed, 735 insertions(+), 138 deletions(-)
create mode 100644 tools/perf/tests/bpf-script-test-kbuild.c
create mode 100644 tools/perf/tests/bpf.c
create mode 100644 tools/perf/tests/llvm.h
--
1.8.3.4
next reply other threads:[~2015-11-06 13:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 13:49 Wang Nan [this message]
2015-11-06 13:49 ` [PATCH v2 1/7] bpf tools: Improve libbpf error reporting Wang Nan
2015-11-06 14:06 ` Arnaldo Carvalho de Melo
2015-11-08 7:32 ` [tip:perf/urgent] " tip-bot for Wang Nan
2015-11-06 13:49 ` [PATCH v2 2/7] bpf tools: Add new API bpf_object__get_kversion() Wang Nan
2015-11-08 7:32 ` [tip:perf/urgent] bpf tools: Add new API bpf_object__get_kversion () tip-bot for Wang Nan
2015-11-06 13:49 ` [PATCH v2 3/7] perf tools: Make fetch_kernel_version() public available Wang Nan
2015-11-06 13:55 ` [PATCH v2 3/7 fix] " Wang Nan
2015-11-08 7:33 ` [tip:perf/urgent] perf tools: Make fetch_kernel_version() publicly available tip-bot for Wang Nan
2015-11-06 13:49 ` [PATCH v2 4/7] perf tools: Improve BPF related error messages output Wang Nan
2015-11-06 13:58 ` [PATCH v2 4/7 fix] " Wang Nan
2015-11-08 7:33 ` [tip:perf/urgent] perf bpf: Improve BPF related error messages tip-bot for Wang Nan
2015-11-06 13:49 ` [PATCH v2 5/7] perf test: Enforce LLVM test: update basic BPF test program Wang Nan
2015-11-08 7:34 ` [tip:perf/urgent] perf test: Enhance the " tip-bot for Wang Nan
2015-11-06 13:49 ` [PATCH v2 6/7] perf test: Enforce LLVM test: add kbuild test Wang Nan
2015-11-08 7:34 ` [tip:perf/urgent] perf test: Enhance the LLVM tests: " tip-bot for Wang Nan
2015-11-06 13:49 ` [PATCH v2 7/7] perf test: Add 'perf test BPF' Wang Nan
2015-11-08 7:34 ` [tip:perf/urgent] " tip-bot for Wang Nan
2015-11-06 19:20 ` [PATCH v2 0/7] perf tools: improve BPF related error delivering and testing Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446817783-86722-1-git-send-email-wangnan0@huawei.com \
--to=wangnan0@huawei.com \
--cc=acme@kernel.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=namhyung@kernel.org \
--cc=pi3orama@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®