Re: [RFC PATCH v8 43/49] perf tools: Iterater over tev instead of pev in bpf__for_each_program

From: Alexei Starovoitov
Date: Fri Jun 26 2015 - 04:29:47 EST


On 6/24/15 5:31 AM, Wang Nan wrote:
This patch renames bpf__for_each_program() to bpf__for_each_tev() and
makes it iterate over 'struct probe_trace_event' instead of
'struct probe_trace_event' during the loop. The callback (add_bpf_event())
now get rid of the iteration.

This is preparation for further patches, which will allow generating
multiple instances form one BPF program and install then onto different
'struct probe_trace_event'.

Signed-off-by: Wang Nan<wangnan0@xxxxxxxxxx>

please squash this patch with earlier one that introduces this function.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/