Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758789AbaGAUGf (ORCPT ); Tue, 1 Jul 2014 16:06:35 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:36595 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754880AbaGAUGd (ORCPT ); Tue, 1 Jul 2014 16:06:33 -0400 MIME-Version: 1.0 In-Reply-To: <53B271C0.5090008@redhat.com> References: <1403913966-4927-1-git-send-email-ast@plumgrid.com> <1403913966-4927-12-git-send-email-ast@plumgrid.com> <53B271C0.5090008@redhat.com> Date: Tue, 1 Jul 2014 13:06:31 -0700 Message-ID: Subject: Re: [PATCH RFC net-next 11/14] tracing: allow eBPF programs to be attached to events From: Alexei Starovoitov To: Daniel Borkmann Cc: "David S. Miller" , Ingo Molnar , Linus Torvalds , Steven Rostedt , Chema Gonzalez , Eric Dumazet , Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Kees Cook , Linux API , Network Development , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 1, 2014 at 1:30 AM, Daniel Borkmann wrote: > On 06/28/2014 02:06 AM, Alexei Starovoitov wrote: >> >> User interface: >> cat bpf_123 > /sys/kernel/debug/tracing/__event__/filter >> >> where 123 is an id of the eBPF program priorly loaded. >> __event__ is static tracepoint event. >> (kprobe events will be supported in the future patches) >> >> eBPF programs can call in-kernel helper functions to: >> - lookup/update/delete elements in maps >> - memcmp >> - trace_printk >> - load_pointer >> - dump_stack > > > Are there plans to let eBPF replace the generic event > filtering framework in tracing? yes. the other patch that replaces predicate tree walking with eBPF programs is pending on eBPF split out of networking. -- 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/