Re: [PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-15 Thread Alexei Starovoitov
On Thu, Aug 14, 2014 at 3:13 PM, Brendan Gregg wrote: > On Wed, Aug 13, 2014 at 12:57 AM, Alexei Starovoitov > wrote: >> this example has two probes in C that use two different maps. >> >> 1st probe is the similar to dropmon.c. It attaches to kfree_skb tracepoint >> and >> count number of

Re: [PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-15 Thread Alexei Starovoitov
On Thu, Aug 14, 2014 at 3:13 PM, Brendan Gregg brendan.d.gr...@gmail.com wrote: On Wed, Aug 13, 2014 at 12:57 AM, Alexei Starovoitov a...@plumgrid.com wrote: this example has two probes in C that use two different maps. 1st probe is the similar to dropmon.c. It attaches to kfree_skb

Re: [PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-14 Thread Brendan Gregg
On Wed, Aug 13, 2014 at 12:57 AM, Alexei Starovoitov wrote: > this example has two probes in C that use two different maps. > > 1st probe is the similar to dropmon.c. It attaches to kfree_skb tracepoint and > count number of packet drops at different locations > > 2nd probe attaches to

Re: [PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-14 Thread Brendan Gregg
On Wed, Aug 13, 2014 at 12:57 AM, Alexei Starovoitov a...@plumgrid.com wrote: this example has two probes in C that use two different maps. 1st probe is the similar to dropmon.c. It attaches to kfree_skb tracepoint and count number of packet drops at different locations 2nd probe attaches to

[PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-13 Thread Alexei Starovoitov
this example has two probes in C that use two different maps. 1st probe is the similar to dropmon.c. It attaches to kfree_skb tracepoint and count number of packet drops at different locations 2nd probe attaches to kprobe/sys_write and computes a histogram of different write sizes Usage: $ sudo

[PATCH RFC v4 net-next 25/26] samples: bpf: counting eBPF example in C

2014-08-13 Thread Alexei Starovoitov
this example has two probes in C that use two different maps. 1st probe is the similar to dropmon.c. It attaches to kfree_skb tracepoint and count number of packet drops at different locations 2nd probe attaches to kprobe/sys_write and computes a histogram of different write sizes Usage: $ sudo