kernel_optimize_test/samples/bpf
Alexei Starovoitov 39111695b1 samples: bpf: add bpf_perf_event_output example
Performance test and example of bpf_perf_event_output().
kprobe is attached to sys_write() and trivial bpf program streams
pid+cookie into userspace via PERF_COUNT_SW_BPF_OUTPUT event.

Usage:
$ sudo ./bld_x64/samples/bpf/trace_output
recv 2968913 events per sec

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-22 06:42:15 -07:00
..
bpf_helpers.h samples: bpf: add bpf_perf_event_output example 2015-10-22 06:42:15 -07:00
bpf_load.c
bpf_load.h
lathist_kern.c
lathist_user.c
libbpf.c
libbpf.h bpf: add unprivileged bpf tests 2015-10-12 19:13:37 -07:00
Makefile samples: bpf: add bpf_perf_event_output example 2015-10-22 06:42:15 -07:00
sock_example.c
sockex1_kern.c
sockex1_user.c
sockex2_kern.c
sockex2_user.c
sockex3_kern.c
sockex3_user.c
tcbpf1_kern.c bpf: add bpf_redirect() helper 2015-09-17 21:09:07 -07:00
test_maps.c
test_verifier.c bpf: add unprivileged bpf tests 2015-10-12 19:13:37 -07:00
trace_output_kern.c samples: bpf: add bpf_perf_event_output example 2015-10-22 06:42:15 -07:00
trace_output_user.c samples: bpf: add bpf_perf_event_output example 2015-10-22 06:42:15 -07:00
tracex1_kern.c
tracex1_user.c
tracex2_kern.c
tracex2_user.c
tracex3_kern.c
tracex3_user.c
tracex4_kern.c
tracex4_user.c
tracex5_kern.c
tracex5_user.c
tracex6_kern.c bpf: fix build warnings and add function read_trace_pipe() 2015-08-12 16:39:12 -07:00
tracex6_user.c bpf: fix build warnings and add function read_trace_pipe() 2015-08-12 16:39:12 -07:00