From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653AbbFRIKr (ORCPT ); Thu, 18 Jun 2015 04:10:47 -0400 Received: from www62.your-server.de ([213.133.104.62]:50123 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753024AbbFRIKk (ORCPT ); Thu, 18 Jun 2015 04:10:40 -0400 Message-ID: <55827CF2.3000605@iogearbox.net> Date: Thu, 18 Jun 2015 10:10:26 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Alexei Starovoitov , David Miller CC: luto@amacapital.net, mingo@kernel.org, rostedt@goodmis.org, wangnan0@huawei.com, lizefan@huawei.com, daniel.wagner@bmw-carit.de, linux-api@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next 0/3] bpf: share helpers between tracing and networking References: <1434163154-5218-1-git-send-email-ast@plumgrid.com> <20150615.160130.583783771772303463.davem@davemloft.net> <557F97F3.6060400@plumgrid.com> <557FEA2C.5080408@iogearbox.net> <558058A0.7030201@plumgrid.com> In-Reply-To: <558058A0.7030201@plumgrid.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/16/2015 07:10 PM, Alexei Starovoitov wrote: ... > Ideally we would allow a blend of tracing and networking programs, > then the best solution would be one or two stable tracepoints in > networking stack where skb is visible and receiving/transmitting task > is also visible, then skb->len and task->pid together would give nice > foundation for accurate stats. I think combining both seems interesting anyway, we need to find a way to make this gluing of both worlds easy to use, though. It's certainly interesting for stats/diagnostics, but one wouldn't be able to use the current/future skb eBPF helpers from {cls,act}_bpf in that context.