Received: by 10.223.185.116 with SMTP id b49csp3647200wrg; Tue, 6 Mar 2018 02:36:59 -0800 (PST) X-Google-Smtp-Source: AG47ELtFJYQolgakSQr2uSHab3OcRwIufmTy7tAskafs5PxXU5WQVgSiAqUeCZRv100gECg3px2+ X-Received: by 10.99.149.87 with SMTP id t23mr14708214pgn.411.1520332619543; Tue, 06 Mar 2018 02:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520332619; cv=none; d=google.com; s=arc-20160816; b=ecMI/nClrwhUnvqw9TxtCzxeV5TICzIDyC2M8tHNf/wmfV8dx5/Wbnx4oGzkKoqko4 5UJghF8xadJB8/Inz86s9QMVZ9GIVqQCAt69gKtW/+t7HQl0fAl5/VFNf53PF6bPCB0W 0Z4tKLZcyKcOq41wF/hMznWu481Yt06A4KQRiS1rXLNicrP/jxfNLzZ4lksTXDQr/E/g qUJFrEyd/++fOLmE6COp+/0qVbnjEJsHuvQFzBIoIhpJc8F/vapXIIZkXyylKFHCnagq GPMolxkI9KqZzkI7jFMRsvTWefUOjzmJfTGctn/byCr143T1Z6P48IlaGpsBSvjLlA7o Dxiw== 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:arc-authentication-results; bh=s9iIpyEvYdSL7pt0lRU37wQ+/7Qd6SKSAuul6ibvJf8=; b=KHC+J0peqYDueFz/tr60ZlkDH3BvVX+FKAUhvR/LQ3Nm8i01yb2damIwHkEz7RJWVU jRWHjOhlus90Q0uat4JAngtj6U48qLZ0BgNFXJ/1abZjrpyNUs4rtSUwR9CLP5sMb3ZQ JNRMMUB2n5xqNxtabXD3orIxvcJiiL9PXFnPEf80Dq1+UvMqW0+nBe0OsDWuJbmvTMMN Hm4bzjJXNf1CuXLCekkbYICtMj5FpJQGmSeGViqiFFRtaf7LxmITiEAyY1HVO3K/HO5G whZtCzmAhIk7xe0wHuopufH9Hh+4D0ViKK4gokwcuPff79bku8c6YY72skLrHVEVaLBO ZA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=D41ppkdt; 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 x87si11833838pff.17.2018.03.06.02.36.45; Tue, 06 Mar 2018 02:36:59 -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=bombadil.20170209 header.b=D41ppkdt; 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 S1753393AbeCFKfp (ORCPT + 99 others); Tue, 6 Mar 2018 05:35:45 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:56226 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbeCFKfn (ORCPT ); Tue, 6 Mar 2018 05:35:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=s9iIpyEvYdSL7pt0lRU37wQ+/7Qd6SKSAuul6ibvJf8=; b=D41ppkdtkus+2HCoy7gNq8QnJ dmLBfnzk5obescK9HRWF2919P0qbFACZmRq4WSz29V2hjLqzJx2++gpid6tS/x8s3MuygLwsnZ5VP JJDhQYHlUqpz/JfvtD4PXCC0m6baJJROuy4uLIZ6h4jn/XvS2vQTSILXTB/op3iWJb4QLNl3wPP/7 E/Oe93jvKoTvvPLP6RAZ3/njCEuQFsigikVAVrZHF3pT2htMo2K8Ol3u5jFGLXBZTA83WrldHpq7q VE0EeJ7TgGnlvlYEIvcc6RfxAX+VE+1HB464X85cRMtVDE5VqyJkXbiQw1t8FFxKo51XvVPCjmwy6 9uC8P93BQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1et9wS-00078U-VD; Tue, 06 Mar 2018 10:35:33 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 31178201EF2AD; Tue, 6 Mar 2018 11:35:31 +0100 (CET) Date: Tue, 6 Mar 2018 11:35:31 +0100 From: Peter Zijlstra To: Daniel Borkmann Cc: Alexei Starovoitov , davem@davemloft.net, torvalds@linux-foundation.org, mingo@kernel.org, rostedt@goodmis.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, linux-api@vger.kernel.org Subject: Re: [PATCH bpf-next 0/5] bpf, tracing: introduce bpf raw tracepoints Message-ID: <20180306103531.GB25201@hirez.programming.kicks-ass.net> References: <20180301041957.399230-1-ast@kernel.org> <9bb38939-c357-4db5-6cf4-7b42187f6c7c@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9bb38939-c357-4db5-6cf4-7b42187f6c7c@iogearbox.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 02:36:07PM +0100, Daniel Borkmann wrote: > On 03/01/2018 05:19 AM, Alexei Starovoitov wrote: > > This patch set is a different way to address the pressing need to access > > task_struct pointers in sched tracepoints from bpf programs. > > > > The first approach simply added these pointers to sched tracepoints: > > https://lkml.org/lkml/2017/12/14/753 > > which Peter nacked. > > Few options were discussed and eventually the discussion converged on > > doing bpf specific tracepoint_probe_register() probe functions. > > Details here: > > https://lkml.org/lkml/2017/12/20/929 > > Ping, Peter/Steven. If you have a chance, please review the series. This series doesn't really touch anything I maintain, but the general appraoch seems sane to me. I like the first patch that ensures structures are passed by reference. The rest is all tracepoint/bpf glue and I never really got into the bpf internals, so I don't think I've got anything useful to say there.