[PATCH v6 tip 6/8] samples: bpf: counting example for kfree_skb and write syscall

2015-03-10 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different kprove events and use two different maps. 1st probe is x64 specific equivalent of dropmon. It attaches to kfree_skb, retrevies 'ip' address of kfree_skb() caller and counts number of packet drops at that 'ip' address. User space

[PATCH v6 tip 6/8] samples: bpf: counting example for kfree_skb and write syscall

2015-03-10 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different kprove events and use two different maps. 1st probe is x64 specific equivalent of dropmon. It attaches to kfree_skb, retrevies 'ip' address of kfree_skb() caller and counts number of packet drops at that 'ip' address. User space