Re: [PATCH tip 4/9] samples: bpf: simple tracing example in eBPF assembler

2015-01-20 Thread Masami Hiramatsu
(2015/01/16 13:16), Alexei Starovoitov wrote: > simple packet drop monitor: > - in-kernel eBPF program attaches to kfree_skb() event and records number > of packet drops at given location > - userspace iterates over the map every second and prints stats Hmm, this eBPF assembly macros are very in

[PATCH tip 4/9] samples: bpf: simple tracing example in eBPF assembler

2015-01-15 Thread Alexei Starovoitov
simple packet drop monitor: - in-kernel eBPF program attaches to kfree_skb() event and records number of packet drops at given location - userspace iterates over the map every second and prints stats Usage: $ sudo dropmon location 0x81695995 count 1 location 0x816d0da9 count 2 l