Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp681047imu; Wed, 9 Jan 2019 04:44:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN7DNwseWbulzgLoUaqcwzsB6BHE86oKVfn7fU6KVFE6UKdBJNT4vHyJ/0X+KTuGbeWwDGOv X-Received: by 2002:a63:e545:: with SMTP id z5mr5261393pgj.195.1547037873482; Wed, 09 Jan 2019 04:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547037873; cv=none; d=google.com; s=arc-20160816; b=JG6/Rxs5QEWtOCDtsvD2JffYCAyoFZMZAtGnvjsisssaWV4uXpL4IU2sMl+vw+bpcb uMDWwRm85xRgPXupO7G+BGU2fb2c266fzbDsaAnpk+Bg3vy35tLCX1VXbMhBohWy0oQ1 MpMfRCZmraBtNwXfoxtz412LpTu843Ic/ydGo2HXVThLU5v7lXJF6YY/kWmc344oTv36 qxj36XtLCITmYTqlwJk+5/ovQiFbrkH4tDCaC/Er5YFpP4MU0qxEnVMBFQ/EiEIqqKsA AMXb1wrOWN8mn/EQGeGJieJxEjFg08qOjmFVwFx4VB6BOSCEhBFsV4iw2llu8VPfMQyn 0nWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wzK4gIQSUPXGwglDZM6nDv3mNaiaBpPSmB0PbjHzc3o=; b=ZoWjlUTssRGZiBaPkfwypuXqQMdQaWlrpusBNZL2rEaVx6ubJbza4TGz6vq+VwCLqg vKpS8Pd2Z94ytpKONeBGj3fmQI2CQ8Y4z9uFq+FPHj4XsAK7BSjMmfwu9DbFK/wtYV30 /hpXumv4s07t38JVbo4/E/i7WwCONjhY1uJQq9lvBfP+LTHoDXc6bp8Pkb38sBQu4B24 HOetzv3t/iNwick9/vDZGmsvT+JhnbauYNonDJe5a91BVdEKU4jyk98ZGt/D3is24Jcb KhO55uDuvK1k4gbnt8Ydr7DrTiq8CceCjmxLbmFcMDky4F5eHWTvGJzCfLbuT8aj+rLO S91A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="Iq/XePQv"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si23288100pgv.499.2019.01.09.04.44.18; Wed, 09 Jan 2019 04:44:33 -0800 (PST) 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; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="Iq/XePQv"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730860AbfAIMll (ORCPT + 99 others); Wed, 9 Jan 2019 07:41:41 -0500 Received: from merlin.infradead.org ([205.233.59.134]:35200 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbfAIMll (ORCPT ); Wed, 9 Jan 2019 07:41:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wzK4gIQSUPXGwglDZM6nDv3mNaiaBpPSmB0PbjHzc3o=; b=Iq/XePQvvz64m1G/19U0CIhm4 TwxvUZUqEiOUKqhUk4w4vDBxVySnjj8NbFZt50PY7dfNEOdbPRGG0KJz6YVbilqKMNHmEzU2bQRdH qw816SRTfn9NayOmcUhJuAi5LD2Ucl+BIN2ca7i9k6HoYaFFTYY7ACvoLebT21vA0qgZwfUt9eGbl Yn3W5yn1DgcDaG3IjxlKeZnJ8bqgspdZUq23rXKL5wIZ5QeMpGsk+4sCECUC7PrXARQWgd6x0prgr 2FOgM4kHPTS+lPZIoSIpeziU+PgnOa6Hw5iFm8+NFmpBmqJ1mrYsXx+qxjmnv+dr76nU6cSnuALzY bePxJ3Jag==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghDAs-0000XX-Jr; Wed, 09 Jan 2019 12:41:35 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A3445207C0078; Wed, 9 Jan 2019 13:41:31 +0100 (CET) Date: Wed, 9 Jan 2019 13:41:31 +0100 From: Peter Zijlstra To: Alexei Starovoitov Cc: Song Liu , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "acme@kernel.org" , "ast@kernel.org" , "daniel@iogearbox.net" , Kernel Team Subject: Re: [PATCH v5 perf, bpf-next 3/7] perf, bpf: introduce PERF_RECORD_BPF_EVENT Message-ID: <20190109124131.GI1900@hirez.programming.kicks-ass.net> References: <20181220182904.4193196-1-songliubraving@fb.com> <20181220182904.4193196-4-songliubraving@fb.com> <20190108202915.GE30894@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 08:45:19PM +0000, Alexei Starovoitov wrote: > On 1/8/19 12:29 PM, Peter Zijlstra wrote: > > On Thu, Dec 20, 2018 at 10:29:00AM -0800, Song Liu wrote: > >> The following example shows kernel symbols for a BPF program with 7 > >> sub programs: > >> > >> ffffffffa0257cf9 t bpf_prog_b07ccb89267cf242_F > >> ffffffffa02592e1 t bpf_prog_2dcecc18072623fc_F > >> ffffffffa025b0e9 t bpf_prog_bb7a405ebaec5d5c_F > >> ffffffffa025dd2c t bpf_prog_a7540d4a39ec1fc7_F > >> ffffffffa025fcca t bpf_prog_05762d4ade0e3737_F > >> ffffffffa026108f t bpf_prog_db4bd11e35df90d4_F > >> ffffffffa0263f00 t bpf_prog_89d64e4abf0f0126_F > >> ffffffffa0257cf9 t bpf_prog_ae31629322c4b018__dummy_tracepoi > > > > We should probably specify somewhere that the name can include a > > '[module]' part just like normal kallsyms. Even though you don't > > currently use that. > > there is no [module] equivalent in bpf land. I know; although you could consider each program it's own separate module. But what I meant was, we should probably document the name[] format somewhere, maybe in the PERF_RECORD_KSYMBOL comment. The "symbol [module]" syntax can be used to create a DSO sort key, so you could simply put in "[bpf]" for all BPF generated symbols and have everything BPF grouped in perf-report when sorted on DSO. It doesn't have any other implications. Similarly, I would suggest "[ftrace]" for all the ftrace trampolines (which are currently not exposed but really should be).