From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932257AbbFIVos (ORCPT ); Tue, 9 Jun 2015 17:44:48 -0400 Received: from mail.kernel.org ([198.145.29.136]:33099 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbbFIVol (ORCPT ); Tue, 9 Jun 2015 17:44:41 -0400 Date: Tue, 9 Jun 2015 18:44:36 -0300 From: Arnaldo Carvalho de Melo To: Alexei Starovoitov Cc: Wang Nan , 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, 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 Message-ID: <20150609214436.GK3136@kernel.org> References: <1433829036-23687-1-git-send-email-wangnan0@huawei.com> <55775AFC.7000408@plumgrid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55775AFC.7000408@plumgrid.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jun 09, 2015 at 02:30:36PM -0700, Alexei Starovoitov escreveu: > 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. Cool stuff, but please leave us without daemons, we've exorcised from day one ;-) - Arnaldo