Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932997AbbFIVaq (ORCPT ); Tue, 9 Jun 2015 17:30:46 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:36552 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932626AbbFIVaj (ORCPT ); Tue, 9 Jun 2015 17:30:39 -0400 Message-ID: <55775AFC.7000408@plumgrid.com> Date: Tue, 09 Jun 2015 14:30:36 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Wang Nan , acme@kernel.org, brendan.d.gregg@gmail.com, daniel@iogearbox.net, namhyung@kernel.org, masami.hiramatsu.pt@hitachi.com, paulus@samba.org, a.p.zijlstra@chello.nl, mingo@redhat.com, jolsa@kernel.org, dsahern@gmail.com CC: linux-kernel@vger.kernel.org, lizefan@huawei.com, hekuang@huawei.com, xiakaixu@huawei.com, pi3orama@163.com Subject: Re: [RFC PATCH v6 00/32] perf tools: filtering events using eBPF programs References: <1433829036-23687-1-git-send-email-wangnan0@huawei.com> In-Reply-To: <1433829036-23687-1-git-send-email-wangnan0@huawei.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 26 On 6/8/15 10:50 PM, Wang Nan wrote: > # perf record --event lock_page.c ls / > Added new event: > perf_bpf_probe:lock_page (on __lock_page) > > You can now use it in all perf tools, such as: agree with Arnaldo. The output is misleading. All these events will disappear when 'perf record' is over. Please trim it. btw we've been thinking how to make truly global programs and maps, so that they can be used in 'perf probe' interface. Right now in 'tc' we're using bpf_agent. It's a user space demon that keeps prog_fd and map_fds and passes them to other apps via scm_rights. We've started experimenting with fuse for this purpose as well, but that's similar user space demon and not very convenient for perf to talk to such fuse. The work in that area is still very rough, just fyi. -- 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/