From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965741AbbJ2XGQ (ORCPT ); Thu, 29 Oct 2015 19:06:16 -0400 Received: from casper.infradead.org ([85.118.1.10]:51402 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965620AbbJ2XGO (ORCPT ); Thu, 29 Oct 2015 19:06:14 -0400 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , Alexei Starovoitov , Andi Kleen , Brendan Gregg , Daniel Borkmann , David Ahern , He Kuang , Jiri Olsa , Kaixu Xia , Kan Liang , Masami Hiramatsu , Namhyung Kim , Peter Zijlstra , pi3orama@163.com, Rabin Vincent , Stephane Eranian , Wang Nan , Yuanfang Chen , Zefan Li , Arnaldo Carvalho de Melo Subject: [GIT PULL 0/8] perf/core improvements and fixes Date: Thu, 29 Oct 2015 20:05:29 -0300 Message-Id: <1446159937-28763-1-git-send-email-acme@kernel.org> X-Mailer: git-send-email 2.1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, This one gets us to pass .c files that gets built and loaded, next step will be to be able to access function arguments, for which there are patches available, but I'm still reviewing them. Please consider pulling, - Arnaldo The following changes since commit 66a565c203bc31b76969711fbd92da11bee2f129: Merge tag 'perf-ebpf-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2015-10-29 13:17:56 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo for you to fetch changes up to 7ed4915ad60788d6b846e2cd034f49ee15698143: perf unwind: Pass symbol source to libunwind (2015-10-29 17:48:38 -0300) ---------------------------------------------------------------- perf/core improvements and fixes: New features: - Allow passing C language eBPF scriptlets via --event in all tools, so that it gets built using clang and then pass it to the kernel via sys_bpf() (Wang Nan) - Wire up the loaded ebpf object file with associated kprobes, so that it can determine if the kprobes will be filtered or not (Wang Nan) User visible: - Add cmd string table to decode sys_bpf first arg in 'trace' (Arnaldo Carvalho de Melo) - Enable printing of branch stack in 'perf script' (Stephane Eranian) - Pass the right file with debug info to libunwind (Rabin Vincent) Build Fixes: - Make sure fixdep is built before libbpf, fixing a race (Jiri Olsa) - Fix libiberty feature detection (Rabin Vincent) Signed-off-by: Arnaldo Carvalho de Melo ---------------------------------------------------------------- Arnaldo Carvalho de Melo (1): perf trace: Add cmd string table to decode sys_bpf first arg Jiri Olsa (1): perf tools: Make sure fixdep is built before libbpf Rabin Vincent (2): tools build: Fix libiberty feature detection perf unwind: Pass symbol source to libunwind Stephane Eranian (1): perf script: Enable printing of branch stack Wang Nan (3): perf bpf: Attach eBPF filter to perf event perf record: Add clang options for compiling BPF scripts perf tools: Compile scriptlets to BPF objects when passing '.c' to --event tools/build/feature/Makefile | 4 +- tools/perf/Documentation/perf-record.txt | 6 +++ tools/perf/Documentation/perf-script.txt | 14 +++++- tools/perf/Makefile.perf | 2 +- tools/perf/builtin-record.c | 7 +++ tools/perf/builtin-script.c | 82 +++++++++++++++++++++++++++++++- tools/perf/builtin-trace.c | 7 +++ tools/perf/tests/bpf-script-example.c | 44 +++++++++++++++++ tools/perf/util/bpf-loader.c | 17 ++++++- tools/perf/util/bpf-loader.h | 5 +- tools/perf/util/evsel.c | 17 +++++++ tools/perf/util/evsel.h | 1 + tools/perf/util/parse-events.c | 11 ++++- tools/perf/util/parse-events.h | 3 +- tools/perf/util/parse-events.l | 3 ++ tools/perf/util/parse-events.y | 15 +++++- tools/perf/util/unwind-libunwind.c | 5 +- 17 files changed, 227 insertions(+), 16 deletions(-) create mode 100644 tools/perf/tests/bpf-script-example.c