From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [RFC perf,bpf 5/5] perf util: generate bpf_prog_info_event for short living bpf programs Date: Wed, 7 Nov 2018 11:12:45 -0700 Message-ID: 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=utf-8 Content-Transfer-Encoding: 7bit Cc: Song Liu , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Kernel Team , "ast@kernel.org" , "daniel@iogearbox.net" , "peterz@infradead.org" , "acme@kernel.org" To: Alexei Starovoitov , David Ahern , David Miller Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 11/6/18 6:09 PM, Alexei Starovoitov wrote: > On 11/6/18 4:44 PM, David Ahern wrote: >> >> 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. > > 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'. 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.