Message ID | 1440822125-52691-1-git-send-email-wangnan0@huawei.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBD2YXXXCQEBBBL7HQSXQKGQEFJO3P6A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 15C9020503 for <linaro@patches.linaro.org>; Sat, 29 Aug 2015 04:23:13 +0000 (UTC) Received: by lbcue2 with SMTP id ue2sf22495318lbc.1 for <linaro@patches.linaro.org>; Fri, 28 Aug 2015 21:23:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:content-type:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=0ctj9s/Lb2E0hNeiz+8zhwv1rdjA5jh1bYyfMqXsgyA=; b=hc8tMdEZQcUhe1b0bdR1EomA5QpmIVsAV+8sTjC7fo4Cm7AIarufMH5zqPK9BZ3Mvm VkmWYLn7dvr2Qw+4jvtazOovXT4eNce0m/Umg7zTix/q01xKkUoZ4Pp9lOGYTGtEKFtY FnkvPh7zr1UNyXpSTXFUHLqlYgki4GSV6udCU7Xe1U+AL/gtpeAqZoG4/MeOPEqpRW3+ T5KQi70nVGs6+uRL7h+7dzmsWLnvpjeDjLSXW32UrEqFdJ7VxDPKiJvQPB7Yid4rmbQv iCUxPsQjJIVuteZGmpD40kYLgRS7ZEUav8srLZR6O4lO2OEc7IXAxdwCFo7OVHSRdnok ep/A== X-Gm-Message-State: ALoCoQmYYn1Hj7LQzxGB0dykLdgxlUymtfnpN6qQaNBItVEIurx/gGqLJikQPeJeuhwTG3Siv1sx X-Received: by 10.113.3.8 with SMTP id bs8mr3534460lbd.23.1440822191934; Fri, 28 Aug 2015 21:23:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.201 with SMTP id s9ls275855laj.40.gmail; Fri, 28 Aug 2015 21:23:11 -0700 (PDT) X-Received: by 10.152.30.73 with SMTP id q9mr6325324lah.31.1440822191631; Fri, 28 Aug 2015 21:23:11 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id xn6si7668932lbb.48.2015.08.28.21.23.11 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Aug 2015 21:23:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbsx3 with SMTP id sx3so39516443lbb.0 for <patchwork-forward@linaro.org>; Fri, 28 Aug 2015 21:23:11 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr6290808lac.106.1440822191394; Fri, 28 Aug 2015 21:23:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.151.194 with SMTP id us2csp267231lbb; Fri, 28 Aug 2015 21:23:09 -0700 (PDT) X-Received: by 10.68.195.74 with SMTP id ic10mr20070217pbc.68.1440822189645; Fri, 28 Aug 2015 21:23:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ir7si13293581pbc.206.2015.08.28.21.22.39; Fri, 28 Aug 2015 21:23:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752138AbbH2EWh (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Sat, 29 Aug 2015 00:22:37 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:5665 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbbH2EWg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Aug 2015 00:22:36 -0400 Received: from 172.24.1.49 (EHLO szxeml431-hub.china.huawei.com) ([172.24.1.49]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CRK01326; Sat, 29 Aug 2015 12:22:28 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by szxeml431-hub.china.huawei.com (10.82.67.208) with Microsoft SMTP Server id 14.3.235.1; Sat, 29 Aug 2015 12:22:16 +0800 From: Wang Nan <wangnan0@huawei.com> To: <acme@redhat.com>, <mingo@kernel.org>, <ast@plumgrid.com> CC: <linux-kernel@vger.kernel.org>, <lizefan@huawei.com>, <pi3orama@163.com>, Wang Nan <wangnan0@huawei.com> Subject: [GIT PULL 00/31] perf tools: filtering events using eBPF programs Date: Sat, 29 Aug 2015 04:21:34 +0000 Message-ID: <1440822125-52691-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangnan0@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
Hi Arnaldo and Ingo, Several small proglems are fixed based on yesterday's pull request. Please see below. Since patch order is changed (original 20/32 and 32/32 are dropped), I decide to send all of them again. Sorry for the noisy. In addition: I collect a cross-compiling fix I posted yesterday into this cset (the last one). The following changes since commit 2c07144dfce366e21465cc7b0ada9f0b6dc7b7ed: perf evlist: Add backpointer for perf_env to evlist (2015-08-28 14:54:14 -0300) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pi3orama/linux tags/perf-ebpf-for-acme-20150829 for you to fetch changes up to d4a337392b3724899a084170d9ea36a8e2392097: tools lib traceevent: Support function __get_dynamic_array_len (2015-08-29 02:57:40 +0000) ---------------------------------------------------------------- perf BPF related improvements and bugfix: - Rebase to Arnaldo's newest perf/core. - Fix a missing include in builtin-trace.c. - Drop patch 'perf tools: Fix probe-event.h include' since the problem has been fixed by commit 5a023b57. - Fix a cross compiling error (introduced by inter pt). - Drop patch 'bpf: Introduce function for outputing data to perf event' because we want to do better. Signed-off-by: Wang Nan <wangnan0@huawei.com> ---------------------------------------------------------------- He Kuang (4): perf tools: Move linux/filter.h to tools/include perf tools: Introduce arch_get_reg_info() for x86 perf record: Support custom vmlinux path tools lib traceevent: Support function __get_dynamic_array_len Wang Nan (27): bpf tools: New API to get name from a BPF object perf tools: Don't set cmdline_group_boundary if no evsel is collected perf tools: Introduce dummy evsel 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: Allow filter option to be applied to bof object 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 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 perf tools: Fix cross compiling error tools/build/Makefile.feature | 6 +- tools/include/linux/filter.h | 237 +++++++ tools/lib/bpf/libbpf.c | 168 ++++- tools/lib/bpf/libbpf.h | 26 +- tools/lib/traceevent/event-parse.c | 56 +- tools/lib/traceevent/event-parse.h | 1 + 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 | 64 +- tools/perf/builtin-stat.c | 9 +- tools/perf/builtin-top.c | 11 +- tools/perf/builtin-trace.c | 7 +- 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 | 125 +++- tools/perf/tests/llvm.h | 15 + tools/perf/tests/make | 4 +- tools/perf/tests/tests.h | 3 + tools/perf/util/Build | 4 +- tools/perf/util/bpf-loader.c | 730 +++++++++++++++++++++ tools/perf/util/bpf-loader.h | 95 +++ tools/perf/util/bpf-prologue.c | 442 +++++++++++++ tools/perf/util/bpf-prologue.h | 34 + tools/perf/util/evlist.c | 107 +++ tools/perf/util/evlist.h | 2 + tools/perf/util/evsel.c | 49 ++ tools/perf/util/evsel.h | 7 + tools/perf/util/include/dwarf-regs.h | 7 + tools/perf/util/parse-events.c | 73 ++- 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 | 79 ++- tools/perf/util/probe-event.h | 7 +- tools/perf/util/probe-file.c | 5 +- tools/perf/util/probe-finder.c | 4 + .../perf/util/scripting-engines/trace-event-perl.c | 1 + .../util/scripting-engines/trace-event-python.c | 1 + 45 files changed, 2698 insertions(+), 121 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