All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] perf tools: bpf: Improve BPF program ability
@ 2015-11-13 12:29 Wang Nan
  2015-11-13 12:29 ` [PATCH 01/12] perf probe: Fix memory leaking on faiulre by clearing all probe_trace_events Wang Nan
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Wang Nan @ 2015-11-13 12:29 UTC (permalink / raw)
  To: acme, masami.hiramatsu.pt, ast; +Cc: lizefan, pi3orama, linux-kernel, Wang Nan

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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-11-18  6:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-13 12:29 [PATCH 00/12] perf tools: bpf: Improve BPF program ability Wang Nan
2015-11-13 12:29 ` [PATCH 01/12] perf probe: Fix memory leaking on faiulre by clearing all probe_trace_events Wang Nan
2015-11-18  6:19   ` [tip:perf/urgent] perf probe: Fix memory leaking on failure " tip-bot for Masami Hiramatsu
2015-11-13 12:29 ` [PATCH 02/12] perf probe: Clear probe_trace_event when add_probe_trace_event() fails Wang Nan
2015-11-13 15:50   ` Arnaldo Carvalho de Melo
2015-11-18  6:19   ` [tip:perf/urgent] " tip-bot for Wang Nan
2015-11-13 12:29 ` [PATCH 03/12] perf tools: Allow BPF program attach to uprobe events Wang Nan
2015-11-13 15:39   ` Arnaldo Carvalho de Melo
2015-11-13 12:29 ` [PATCH 04/12] perf tools: Allow BPF program attach to modules Wang Nan
2015-11-13 15:40   ` Arnaldo Carvalho de Melo
2015-11-13 12:29 ` [PATCH 05/12] perf tools: Allow BPF program config probing options Wang Nan
2015-11-13 15:46   ` Arnaldo Carvalho de Melo
2015-11-16  9:11     ` Wangnan (F)
2015-11-13 12:29 ` [PATCH 06/12] bpf tools: Load a program with different instances using preprocessor Wang Nan
2015-11-13 12:29 ` [PATCH 07/12] perf tools: Add BPF_PROLOGUE config options for further patches Wang Nan
2015-11-13 12:29 ` [PATCH 08/12] perf tools: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on Wang Nan
2015-11-13 12:29 ` [PATCH 09/12] perf tools: Add prologue for BPF programs for fetching arguments Wang Nan
2015-11-13 12:29 ` [PATCH 10/12] perf tools: Generate prologue for BPF programs Wang Nan
2015-11-13 12:29 ` [PATCH 11/12] perf test: Test BPF prologue Wang Nan
2015-11-13 12:29 ` [PATCH 12/12] perf tools: Use same BPF program if arguments are identical Wang Nan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.