Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1268907
| From | Wang Nan <wangnan0@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 00/12] perf tools: bpf: Improve BPF program ability |
| Date | 2015-11-13 13:30 +0100 |
| Message-ID | <qulEm-6kY-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patchset is combined by 3 parts:
Part 1: Bugfix (1/12 - 2/12).
Part 2: Improve BPF configuration syntax, allow BPF program set
probing options originally belong to 'perf probe'
(3/12 - 5/12)
Part 3: Allow BPF program read kernel data using variable names
and do structure dereferencing automatically.
(6/12 - 12/12)
Although not obvious, the order is need to be kept if one want to
try the testcase shown in 12/12's commit message. Otherwise he/she
should find another example, and deal with inlining problems and bugs
in perf probe.
Compare with previous patches I posted before, the main difference in
this patchset is improving commit messages and utilizing new testing
and error reporting code.
He Kuang (1):
perf tools: Add prologue for BPF programs for fetching arguments
Masami Hiramatsu (1):
perf probe: Fix memory leaking on faiulre by clearing all
probe_trace_events
Wang Nan (10):
perf probe: Clear probe_trace_event when add_probe_trace_event() fails
perf tools: Allow BPF program attach to uprobe events
perf tools: Allow BPF program attach to modules
perf tools: Allow BPF program config probing options
bpf tools: Load a program with different instances using preprocessor
perf tools: Add BPF_PROLOGUE config options for further patches
perf tools: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on
perf tools: Generate prologue for BPF programs
perf test: Test BPF prologue
perf tools: Use same BPF program if arguments are identical
tools/lib/bpf/libbpf.c | 145 ++++++++-
tools/lib/bpf/libbpf.h | 64 ++++
tools/perf/arch/x86/util/Build | 1 +
tools/perf/config/Makefile | 12 +
tools/perf/tests/Build | 9 +-
tools/perf/tests/bpf-script-test-prologue.c | 35 +++
tools/perf/tests/bpf.c | 34 +++
tools/perf/tests/llvm.c | 4 +
tools/perf/tests/llvm.h | 2 +
tools/perf/util/Build | 1 +
tools/perf/util/bpf-loader.c | 429 +++++++++++++++++++++++++-
tools/perf/util/bpf-loader.h | 4 +
tools/perf/util/bpf-prologue.c | 455 ++++++++++++++++++++++++++++
tools/perf/util/bpf-prologue.h | 34 +++
tools/perf/util/config.c | 9 +-
tools/perf/util/probe-finder.c | 24 +-
tools/perf/util/util.c | 18 ++
tools/perf/util/util.h | 2 +
18 files changed, 1254 insertions(+), 28 deletions(-)
create mode 100644 tools/perf/tests/bpf-script-test-prologue.c
create mode 100644 tools/perf/util/bpf-prologue.c
create mode 100644 tools/perf/util/bpf-prologue.h
--
1.8.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 00/12] perf tools: bpf: Improve BPF program ability Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:30 +0100
[PATCH 08/12] perf tools: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 07/12] perf tools: Add BPF_PROLOGUE config options for further patches Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 09/12] perf tools: Add prologue for BPF programs for fetching arguments Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 06/12] bpf tools: Load a program with different instances using preprocessor Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 03/12] perf tools: Allow BPF program attach to uprobe events Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
Re: [PATCH 03/12] perf tools: Allow BPF program attach to uprobe events Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-13 16:40 +0100
[PATCH 11/12] perf test: Test BPF prologue Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 04/12] perf tools: Allow BPF program attach to modules Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
Re: [PATCH 04/12] perf tools: Allow BPF program attach to modules Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-13 16:50 +0100
[PATCH 10/12] perf tools: Generate prologue for BPF programs Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 05/12] perf tools: Allow BPF program config probing options Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
Re: [PATCH 05/12] perf tools: Allow BPF program config probing options Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-13 16:50 +0100
Re: [PATCH 05/12] perf tools: Allow BPF program config probing options "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-16 10:20 +0100
[PATCH 01/12] perf probe: Fix memory leaking on faiulre by clearing all probe_trace_events Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
[PATCH 02/12] perf probe: Clear probe_trace_event when add_probe_trace_event() fails Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
Re: [PATCH 02/12] perf probe: Clear probe_trace_event when add_probe_trace_event() fails Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-13 17:00 +0100
[PATCH 12/12] perf tools: Use same BPF program if arguments are identical Wang Nan <wangnan0@huawei.com> - 2015-11-13 13:40 +0100
csiph-web