From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH bpf-next 2/3] bpf: emit RECORD_MMAP events for bpf prog load/unload Date: Fri, 21 Sep 2018 15:55:02 +0200 Message-ID: <20180921135502.GC24124@hirez.programming.kicks-ass.net> References: <20180919223935.999270-1-ast@kernel.org> <20180919223935.999270-3-ast@kernel.org> <20180920084424.GN24124@hirez.programming.kicks-ass.net> <20180920132545.GA19861@kernel.org> <20180920135651.GW24124@hirez.programming.kicks-ass.net> <20180921031444.fyem2ah6emimv24m@ast-mbp> <20180921122500.GA17312@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexei Starovoitov , Alexei Starovoitov , "David S . Miller" , daniel@iogearbox.net, netdev@vger.kernel.org, kernel-team@fb.com To: Arnaldo Carvalho de Melo Return-path: Received: from merlin.infradead.org ([205.233.59.134]:36054 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727392AbeIUToN (ORCPT ); Fri, 21 Sep 2018 15:44:13 -0400 Content-Disposition: inline In-Reply-To: <20180921122500.GA17312@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Sep 21, 2018 at 09:25:00AM -0300, Arnaldo Carvalho de Melo wrote: > > I consider synthetic perf events to be non-ABI. Meaning they're > > emitted by perf user space into perf.data and there is a convention > > on names, but it's not a kernel abi. Like RECORD_MMAP with > > event.filename == "[module_name]" is an indication for perf report > > to parse elf/build-id of dso==module_name. > > There is no such support in the kernel. Kernel doesn't emit > > such events for module load/unload. If in the future > > we decide to extend kernel with such events they don't have > > to match what user space perf does today. > > Right, that is another unfortunate state of affairs, kernel module > load/unload should already be supported, reported by the kernel via a > proper PERF_RECORD_MODULE_LOAD/UNLOAD Just wondering, is anyone actually doing enough module loading for this to matter? (asks the CONFIG_MODULES=n guy). I thought that was all a relatively static affair; you boot, you get loadead a few modules for present hardware, the end. Anyway, no real objection, just wonder if it's worth it.