From: Wang Nan <wangnan0@huawei.com>
To: <acme@redhat.com>, <ast@plumgrid.com>
Cc: <brendan.d.gregg@gmail.com>, <daniel@iogearbox.net>,
<dsahern@gmail.com>, <hekuang@huawei.com>, <jolsa@kernel.org>,
<xiakaixu@huawei.com>, <masami.hiramatsu.pt@hitachi.com>,
<namhyung@kernel.org>, <a.p.zijlstra@chello.nl>,
<lizefan@huawei.com>, <pi3orama@163.com>,
<linux-kernel@vger.kernel.org>
Subject: [GIT PULL 00/29] perf tools: filtering events using eBPF programs
Date: Fri, 21 Aug 2015 10:09:01 +0000 [thread overview]
Message-ID: <1440151770-129878-1-git-send-email-wangnan0@huawei.com> (raw)
Hi Arnaldo,
This is the first time I use my new kernel.org account to generate pull
request for you. I hope it work.
The following changes since commit acc60583a43fe93ff42d707a39d478c7dbe24028:
perf tools: Fix Intel PT timestamp handling (2015-08-20 16:45:01 -0300)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/pi3orama/linux tags/perf-ebpf-for-acme-20150821
for you to fetch changes up to 15756861299809103c00d9342352eb22bb84f20f:
perf tools: Support attach BPF program on uprobe events (2015-08-21 03:57:12 +0000)
----------------------------------------------------------------
perf bpf improvements:
- Improve 'perf test BPF'
Don't use the hacking way in previous series that make perf act test
target and run 'perf record' using system().
In this series, perf test BPF open the evlist and evsel, attach then
record, analysis result in its own context.
- Improve error reporting
Use strerror style error reporting. Only output debug information
in bpf-loader.c.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
----------------------------------------------------------------
He Kuang (3):
perf tools: Move linux/filter.h to tools/include
perf tools: Introduce arch_get_reg_info() for x86
perf record: Support custom vmlinux path
Wang Nan (24):
perf probe: Try to use symbol table if searching debug info failed
perf tools: Make perf depend on libbpf
perf ebpf: Add the libbpf glue
perf tools: Enable passing bpf object file to --event
perf probe: Attach trace_probe_event with perf_probe_event
perf record, bpf: Parse and probe eBPF programs probe points
perf bpf: Collect 'struct perf_probe_event' for bpf_program
perf record: Load all eBPF object into kernel
perf tools: Add bpf_fd field to evsel and config it
perf tools: Attach eBPF program to perf event
perf tools: Suppress probing messages when probing by BPF loading
perf record: Add clang options for compiling BPF scripts
perf tools: Infrastructure for compiling scriptlets when passing '.c' to --event
perf tests: Enforce LLVM test for BPF test
perf test: Add 'perf test BPF'
bpf tools: Load a program with different instances using preprocessor
perf tools: Fix probe-event.h include
perf probe: Reset args and nargs for probe_trace_event when failure
perf tools: Add BPF_PROLOGUE config options for further patches
perf tools: Add prologue for BPF programs for fetching arguments
perf tools: Generate prologue for BPF programs
perf tools: Use same BPF program if arguments are identical
perf probe: Init symbol as kprobe
perf tools: Support attach BPF program on uprobe events
tools/build/Makefile.feature | 6 +-
tools/include/linux/filter.h | 237 +++++++++++
tools/lib/bpf/libbpf.c | 143 ++++++-
tools/lib/bpf/libbpf.h | 22 ++
tools/perf/MANIFEST | 4 +
tools/perf/Makefile.perf | 19 +-
tools/perf/arch/x86/Makefile | 1 +
tools/perf/arch/x86/util/Build | 2 +
tools/perf/arch/x86/util/dwarf-regs.c | 104 +++--
tools/perf/builtin-probe.c | 4 +-
tools/perf/builtin-record.c | 52 ++-
tools/perf/config/Makefile | 31 +-
tools/perf/tests/Build | 10 +-
tools/perf/tests/bpf-script-example.c | 44 +++
tools/perf/tests/bpf.c | 170 ++++++++
tools/perf/tests/builtin-test.c | 12 +
tools/perf/tests/llvm.c | 123 +++++-
tools/perf/tests/llvm.h | 15 +
tools/perf/tests/make | 4 +-
tools/perf/tests/tests.h | 3 +
tools/perf/util/Build | 2 +
tools/perf/util/bpf-loader.c | 723 ++++++++++++++++++++++++++++++++++
tools/perf/util/bpf-loader.h | 92 +++++
tools/perf/util/bpf-prologue.c | 442 +++++++++++++++++++++
tools/perf/util/bpf-prologue.h | 34 ++
tools/perf/util/evlist.c | 41 ++
tools/perf/util/evlist.h | 1 +
tools/perf/util/evsel.c | 17 +
tools/perf/util/evsel.h | 1 +
tools/perf/util/include/dwarf-regs.h | 7 +
tools/perf/util/parse-events.c | 26 ++
tools/perf/util/parse-events.h | 4 +
tools/perf/util/parse-events.l | 6 +
tools/perf/util/parse-events.y | 29 +-
tools/perf/util/probe-event.c | 86 ++--
tools/perf/util/probe-event.h | 8 +-
tools/perf/util/probe-file.c | 5 +-
tools/perf/util/probe-finder.c | 4 +
38 files changed, 2432 insertions(+), 102 deletions(-)
create mode 100644 tools/include/linux/filter.h
create mode 100644 tools/perf/tests/bpf-script-example.c
create mode 100644 tools/perf/tests/bpf.c
create mode 100644 tools/perf/tests/llvm.h
create mode 100644 tools/perf/util/bpf-loader.c
create mode 100644 tools/perf/util/bpf-loader.h
create mode 100644 tools/perf/util/bpf-prologue.c
create mode 100644 tools/perf/util/bpf-prologue.h
next reply other threads:[~2015-08-21 10:12 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 10:09 Wang Nan [this message]
2015-08-21 10:09 ` [PATCH 01/29] perf probe: Try to use symbol table if searching debug info failed Wang Nan
2015-08-21 14:13 ` Arnaldo Carvalho de Melo
2015-08-22 6:54 ` [tip:perf/core] " tip-bot for Wang Nan
2015-08-21 10:09 ` [PATCH 02/29] perf tools: Make perf depend on libbpf Wang Nan
2015-08-21 10:09 ` [PATCH 03/29] perf ebpf: Add the libbpf glue Wang Nan
2015-08-21 10:09 ` [PATCH 04/29] perf tools: Enable passing bpf object file to --event Wang Nan
2015-08-21 10:09 ` [PATCH 05/29] perf probe: Attach trace_probe_event with perf_probe_event Wang Nan
2015-08-21 10:09 ` [PATCH 06/29] perf record, bpf: Parse and probe eBPF programs probe points Wang Nan
2015-08-21 10:09 ` [PATCH 07/29] perf bpf: Collect 'struct perf_probe_event' for bpf_program Wang Nan
2015-08-21 10:09 ` [PATCH 08/29] perf record: Load all eBPF object into kernel Wang Nan
2015-08-21 10:09 ` [PATCH 09/29] perf tools: Add bpf_fd field to evsel and config it Wang Nan
2015-08-21 10:09 ` [PATCH 10/29] perf tools: Attach eBPF program to perf event Wang Nan
2015-08-21 10:09 ` [PATCH 11/29] perf tools: Suppress probing messages when probing by BPF loading Wang Nan
2015-08-21 10:09 ` [PATCH 12/29] perf record: Add clang options for compiling BPF scripts Wang Nan
2015-08-21 10:09 ` [PATCH 13/29] perf tools: Infrastructure for compiling scriptlets when passing '.c' to --event Wang Nan
2015-08-21 10:09 ` [PATCH 14/29] perf tests: Enforce LLVM test for BPF test Wang Nan
2015-08-21 10:09 ` [PATCH 15/29] perf test: Add 'perf test BPF' Wang Nan
2015-08-21 10:09 ` [PATCH 16/29] bpf tools: Load a program with different instances using preprocessor Wang Nan
2015-08-21 10:09 ` [PATCH 17/29] perf tools: Fix probe-event.h include Wang Nan
2015-08-21 10:09 ` [PATCH 18/29] perf probe: Reset args and nargs for probe_trace_event when failure Wang Nan
2015-08-21 10:09 ` [PATCH 19/29] perf tools: Move linux/filter.h to tools/include Wang Nan
2015-08-21 10:09 ` [PATCH 20/29] perf tools: Add BPF_PROLOGUE config options for further patches Wang Nan
2015-08-21 10:09 ` [PATCH 21/29] perf tools: Introduce arch_get_reg_info() for x86 Wang Nan
2015-08-21 10:09 ` [PATCH 22/29] perf tools: Add prologue for BPF programs for fetching arguments Wang Nan
2015-08-21 10:09 ` [PATCH 23/29] perf tools: Generate prologue for BPF programs Wang Nan
2015-08-21 10:09 ` [PATCH 24/29] perf tools: Use same BPF program if arguments are identical Wang Nan
2015-08-21 10:09 ` [PATCH 25/29] perf record: Support custom vmlinux path Wang Nan
2015-08-21 10:09 ` [PATCH 26/29] perf probe: Init symbol as kprobe Wang Nan
2015-08-21 10:09 ` [PATCH 27/29] perf tools: Support attach BPF program on uprobe events Wang Nan
2015-08-21 10:09 ` [PATCH 28/29] tools lib traceevent: Support function __get_dynamic_array_len Wang Nan
2015-08-21 16:00 ` Arnaldo Carvalho de Melo
2015-08-21 10:09 ` [PATCH 29/29] bpf: Introduce function for outputing data to perf event Wang Nan
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=1440151770-129878-1-git-send-email-wangnan0@huawei.com \
--to=wangnan0@huawei.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=ast@plumgrid.com \
--cc=brendan.d.gregg@gmail.com \
--cc=daniel@iogearbox.net \
--cc=dsahern@gmail.com \
--cc=hekuang@huawei.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=namhyung@kernel.org \
--cc=pi3orama@163.com \
--cc=xiakaixu@huawei.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®