Re: [bpf-next PATCH 3/3] bpf: add sample program to trace map events

2018-04-23 Thread Sebastiano Miano
On 20/04/2018 11:47, Jesper Dangaard Brouer wrote: On Thu, 19 Apr 2018 17:27:37 -0700 Alexei Starovoitov <alexei.starovoi...@gmail.com> wrote: On Wed, Apr 18, 2018 at 05:30:59PM +0200, Sebastiano Miano wrote: This patch adds a sample program, called trace_map_events, that shows how to c

[bpf-next PATCH 3/3] bpf: add sample program to trace map events

2018-04-18 Thread Sebastiano Miano
). If no IDs are specified, all map events are listed and no filtering is performed. Sample usage: # trace_map_events -i -i -i ... Signed-off-by: Sebastiano Miano <sebastiano.mi...@polito.it> --- samples/bpf/Makefile|4 samples/bpf/trace_map_events_kern.c

[bpf-next PATCH 2/3] bpf: add id to prog tracepoint

2018-04-18 Thread Sebastiano Miano
This patch adds the prog id to the bpf tracepoints that can be used when monitoring or inspecting prog related functions. Signed-off-by: Sebastiano Miano <sebastiano.mi...@polito.it> Suggested-by: Jesper Dangaard Brouer <bro...@redhat.com> --- include/trace/events/bpf.h | 15 ++

[bpf-next PATCH 0/3] Add ID to bpf_map/prog tracepoints

2018-04-18 Thread Sebastiano Miano
The following series: 1) Add ID to both map and prog related tracepoints 2) Add a sample program that shows how to monitor and filter map related events using their IDs. --- Sebastiano Miano (3): bpf: add id to map tracepoint bpf: add id to prog tracepoint bpf: add sample

[bpf-next PATCH 1/3] bpf: add id to map tracepoint

2018-04-18 Thread Sebastiano Miano
This patch adds the map id to the bpf tracepoints that can be used when monitoring or inspecting map related functions. Signed-off-by: Sebastiano Miano <sebastiano.mi...@polito.it> Suggested-by: Jesper Dangaard Brouer <bro...@redhat.com> --- include/trace/events/