Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758241AbdLRJMM (ORCPT ); Mon, 18 Dec 2017 04:12:12 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:46677 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758222AbdLRJMI (ORCPT ); Mon, 18 Dec 2017 04:12:08 -0500 Date: Mon, 18 Dec 2017 10:11:57 +0100 From: Peter Zijlstra To: Alexei Starovoitov Cc: Teng Qin , mingo@redhat.com, bgregg@netflix.com, daniel@iogearbox.net, yhs@fb.com, linux-kernel@vger.kernel.org, Kernel-team@fb.com Subject: Re: [PATCH tip 0/3] Improvements of scheduler related Tracepoints Message-ID: <20171218091157.rgogahbflgwvwcdw@hirez.programming.kicks-ass.net> References: <20171214202044.1629279-1-qinteng@fb.com> <20171214204932.GH3326@worktop> <1632e487-ee65-b50d-85e5-82f42c69fea1@fb.com> <20171215073908.myx3wgka7qimcmsg@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 26 On Fri, Dec 15, 2017 at 09:09:51AM -0800, Alexei Starovoitov wrote: > yeah. Currently bpf progs are called at the end of > perf_trace_##call() > { > .. regular tracepoint copy craft > perf_trace_run_bpf_submit( &copied args ) > } > > from bpf pov we'd rather get access to raw args passed into > perf_trace_##call. > Sounds like you're suggesting to let bpf side register its > progs directly via tracepoint_probe_register() ? > That would solve the whole thing really nicely indeed. Not sure I thought that far; but if you want the probe arguments either grab them from the perf probe you're running in or indeed register your own, don't play silly buggers and copy them in the trace data. > How such api would look like ? > Something like extending kprobe/uprobe fd-based perf_event_open? > https://www.spinics.net/lists/netdev/msg470567.html > btw could you please apply that set to tip tree > or you want us to route it via bpf-next -> net-next ? Oh right, lemme prod Ingo on that.