diff options
author | Teng Qin <qinteng@fb.com> | 2018-03-06 10:55:02 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-03-08 02:22:34 +0100 |
commit | 12fe12253c56a26e591ceefbdf0998b391022003 (patch) | |
tree | 822b9bb7680c97b84f98f8d471b297637048d473 /samples/bpf/sock_example.c | |
parent | 95da0cdb723260362fc126a563285ac66a193da7 (diff) | |
download | linux-12fe12253c56a26e591ceefbdf0998b391022003.tar.gz linux-12fe12253c56a26e591ceefbdf0998b391022003.tar.bz2 linux-12fe12253c56a26e591ceefbdf0998b391022003.zip |
samples/bpf: add example to test reading address
This commit adds additional test in the trace_event example, by
attaching the bpf program to MEM_UOPS_RETIRED.LOCK_LOADS event with
PERF_SAMPLE_ADDR requested, and print the lock address value read from
the bpf program to trace_pipe.
Signed-off-by: Teng Qin <qinteng@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/sock_example.c')
0 files changed, 0 insertions, 0 deletions