Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbbBWSzf (ORCPT ); Mon, 23 Feb 2015 13:55:35 -0500 Received: from mail-qa0-f48.google.com ([209.85.216.48]:61126 "EHLO mail-qa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752527AbbBWSzd (ORCPT ); Mon, 23 Feb 2015 13:55:33 -0500 MIME-Version: 1.0 From: Alexei Starovoitov Date: Mon, 23 Feb 2015 13:55:12 -0500 Message-ID: Subject: Re: [PATCH v3 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls To: He Kuang Cc: Steven Rostedt , Ingo Molnar , Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa , Masami Hiramatsu , Linux API , Network Development , LKML , Linus Torvalds , Peter Zijlstra , "Eric W. Biederman" , wangnan0@huawei.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1444 Lines: 30 On Mon, Feb 16, 2015 at 6:26 AM, He Kuang wrote: > Hi, Alexei > > Another suggestion on bpf syscall interface. Currently, BPF + > syscalls/kprobes depends on CONFIG_BPF_SYSCALL. In kernel used on > commercial products, CONFIG_BPF_SYSCALL is probably disabled, in this > case, bpf bytecode cannot be loaded to the kernel. I'm seeing a flurry of use cases for bpf in ovs, tc, tracing, etc When it's all ready, we can turn that config on by default. > If we turn the functionality of BPF_SYSCALL into a loadable module, then > we can use it without any dependencies on the kernel. What about change > bpf syscall to a /dev node or /sys file which can be exported by a > kernel module? I don't think we will allow extending bpf by modules. 'bpf in modules' is an interface that is too easy to abuse. So all of bpf core, helper functions and program types will be builtin. As far as bpf+tracing the plan is to do bpf+kprobe and bpf+syscalls first. Then add right set of helpers to make sure that use cases like 'tcp stack instrumentation' are fully addressed. Then there were few great ideas of accelerating kprobes with trace markers and debug tracepoints that we can do later. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/