Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754709AbbGUDJQ (ORCPT ); Mon, 20 Jul 2015 23:09:16 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:19619 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753401AbbGUDJP (ORCPT ); Mon, 20 Jul 2015 23:09:15 -0400 From: He Kuang To: , , , , , , , CC: , , , Subject: [RFC PATCH v6 0/2] Make eBPF programs output data to perf Date: Tue, 21 Jul 2015 03:08:48 +0000 Message-ID: <1437448130-134621-1-git-send-email-hekuang@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.250] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.55ADB7D3.000E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 65673dc01d3cec50a2437e409c942a51 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 39 Hi, Previous patch v5 url: http://thread.gmane.org/gmane.linux.kernel/1995274 The bugfix of dynamic array length in trace event goes to kernel/git/rostedt/linux-trace.git ftrace/urgent and confirms that the return value of __get_dynamic_array_len() is the total allocated length of the dynamic array. For we print the bpf output data in byte array from patch v5, that problem does not affect our patch any more, but some comments in patch 1/2 is updated. Patch 2/2 is acked by Alexei. Thank you. He Kuang (2): tools lib traceevent: Support function __get_dynamic_array_len bpf: Introduce function for outputing data to perf event include/trace/events/bpf.h | 30 ++++++++++++ include/uapi/linux/bpf.h | 7 +++ kernel/trace/bpf_trace.c | 23 +++++++++ samples/bpf/bpf_helpers.h | 2 + tools/lib/traceevent/event-parse.c | 56 +++++++++++++++++++++- tools/lib/traceevent/event-parse.h | 1 + .../perf/util/scripting-engines/trace-event-perl.c | 1 + .../util/scripting-engines/trace-event-python.c | 1 + 8 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 include/trace/events/bpf.h -- 1.8.5.2 -- 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/