Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932541AbbKMM3r (ORCPT ); Fri, 13 Nov 2015 07:29:47 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:30482 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932234AbbKMM3p (ORCPT ); Fri, 13 Nov 2015 07:29:45 -0500 From: Wang Nan To: , , CC: , , , Wang Nan Subject: [PATCH 00/12] perf tools: bpf: Improve BPF program ability Date: Fri, 13 Nov 2015 12:29:09 +0000 Message-ID: <1447417761-156094-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.5645D7B6.004A,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: c564d062d45d4a8d3d5f476e57e28c16 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3031 Lines: 71 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/