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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/