[PATCH v3 linux-trace 8/8] samples: bpf: simple kprobe example

2015-02-09 Thread Alexei Starovoitov
the logic of the example is similar to tracex2, but syscall 'write' statistics is capturead from kprobe placed at sys_write function instead of through syscall instrumentation. Also tracex4_kern.c has a different way of doing log2 in C. Note, unlike tracepoint and syscall programs, kprobe programs

[PATCH v3 linux-trace 8/8] samples: bpf: simple kprobe example

2015-02-09 Thread Alexei Starovoitov
the logic of the example is similar to tracex2, but syscall 'write' statistics is capturead from kprobe placed at sys_write function instead of through syscall instrumentation. Also tracex4_kern.c has a different way of doing log2 in C. Note, unlike tracepoint and syscall programs, kprobe programs