Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758837AbcDHRf0 (ORCPT ); Fri, 8 Apr 2016 13:35:26 -0400 Received: from mail.kernel.org ([198.145.29.136]:49659 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754034AbcDHRfY (ORCPT ); Fri, 8 Apr 2016 13:35:24 -0400 Date: Fri, 8 Apr 2016 14:35:20 -0300 From: Arnaldo Carvalho de Melo To: Wang Nan Cc: pi3orama@163.com, linux-kernel@vger.kernel.org, lizefan@huawei.com, Wang Nan , Arnaldo Carvalho de Melo , Jiri Olsa Subject: Re: [PATCH 3/4] perf bpf: Clone bpf stdout events in multiple bpf scripts Message-ID: <20160408173520.GR5945@kernel.org> References: <1460128045-97310-1-git-send-email-wangnan0@huawei.com> <1460128045-97310-4-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460128045-97310-4-git-send-email-wangnan0@huawei.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 29 Em Fri, Apr 08, 2016 at 03:07:24PM +0000, Wang Nan escreveu: > This patch allows cloning bpf-output event configuration among multiple > bpf scripts. If there exist a map named '__bpf_output__' and not configured > using 'map:__bpf_output__.event=', this patch clones the configuration of > another '__bpf_stdout__' map. For example, following command: > > # perf trace --ev bpf-output/no-inherit,name=evt/ \ > --ev ./test_bpf_trace.c/map:__bpf_stdout__.event=evt/ \ > --ev ./test_bpf_trace2.c usleep 100000 > > equals to: > > # perf trace --ev bpf-output/no-inherit,name=evt/ \ > --ev ./test_bpf_trace.c/map:__bpf_stdout__.event=evt/ \ > --ev ./test_bpf_trace2.c/map:__bpf_stdout__.event=evt/ \ > usleep 100000 I'm fixing it, minor stuff, thanks for working on this! [acme@jouet linux]$ am /wb/1.patch Applying: perf bpf: Clone bpf stdout events in multiple bpf scripts /home/acme/git/linux/.git/rebase-apply/patch:135: trailing whitespace. /home/acme/git/linux/.git/rebase-apply/patch:140: trailing whitespace. /* /home/acme/git/linux/.git/rebase-apply/patch:158: trailing whitespace. error: patch failed: tools/perf/builtin-trace.c:3289 error: tools/perf/builtin-trace.c: patch does not apply