From mboxrd@z Thu Jan 1 00:00:00 1970 From: Song Liu Subject: Re: [RFC perf,bpf 5/5] perf util: generate bpf_prog_info_event for short living bpf programs Date: Wed, 7 Nov 2018 18:28:33 +0000 Message-ID: <8BBFB3CA-C33A-4662-ACD0-BC9CF30CC6CE@fb.com> References: <6C5A9FBD-F50D-444C-9038-E9557EC850D2@fb.com> <27fc8327-3390-ba5a-6063-89c9e7165e7b@fb.com> <20181106.153647.1701013551426767213.davem@davemloft.net> <39fe6abc-5c3e-bac3-0c0b-cf68bea23ab0@fb.com> <0a05a14c-3a79-e894-ae48-cbe1df4feb91@gmail.com> <82745121-339e-2751-c9db-d1fca02d0b33@fb.com> <7d0b100b-a64b-0d30-8ec0-2689ef44423d@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: Alexei Starovoitov , David Miller , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Kernel Team , "ast@kernel.org" , "daniel@iogearbox.net" , "peterz@infradead.org" , "acme@kernel.org" To: David Ahern Return-path: In-Reply-To: Content-Language: en-US Content-ID: <19EB51302A151842ADF15CF5052B991D@namprd15.prod.outlook.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > On Nov 7, 2018, at 10:12 AM, David Ahern wrote: >=20 > On 11/6/18 6:09 PM, Alexei Starovoitov wrote: >> On 11/6/18 4:44 PM, David Ahern wrote: >>>=20 >>> So one use case is profiling bpf programs. I was also considering the >>> auditing discussion from some weeks ago which I thought the events are >>> also targeting. >>=20 >> yes. there should be separate mode for 're: audit discussion' where >> only bpf events are collected. This patch set doesn't add that to >> perf user space side. >> The kernel side is common though. It can be used for bpf load/unload >> only and for different use case in this set. Which is making >> bpf program appear in normal 'perf report'. >=20 > It would be good for perf-script to work in the next version. Users > should be able to dump the event from the kernel and the synthesized > events. Should be trivial to add and allows a review of both > perspectives -- profiling and monitoring events. Yes, we do plan to include these information in other perf commands,=20 including perf-script, perf-top, perf-annotate, etc.=20 Thanks, Song