Re: [PATCH RFC net-next] tracing: accelerate tracing filters with BPF
From: Steven Rostedt
Date: Tue May 13 2014 - 23:17:19 EST
On Tue, 13 May 2014 19:55:11 -0700
Alexei Starovoitov <ast@xxxxxxxxxxxx> wrote:
> Tracing filters are parsing user supplied character string and constructing
> a predicate tree. filter_match_preds() was used to walk nodes of the tree to
> simulate matching of boolean expression.
>
I applied this on top of net-next, from:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
(master branch)
and got this compile error:
kernel/trace/trace_events_filter.c: In function âemit_condâ:
kernel/trace/trace_events_filter.c:1361:36: error: â__bpf_call_baseâ undeclared (first use in this function)
kernel/trace/trace_events_filter.c:1361:36: note: each undeclared identifier is reported only once for each function it appears in
kernel/trace/trace_events_filter.c: In function âfilter_gen_bpfâ:
kernel/trace/trace_events_filter.c:1622:2: error: implicit declaration of function âbpf_int_jit_compileâ [-Werror=implicit-function-declaration]
Config attached.
-- Steve
Attachment:
config.gz
Description: application/gzip