commit | 12fe12253c56a26e591ceefbdf0998b391022003 | [log] [tgz] |
---|---|---|
author | Teng Qin <qinteng@fb.com> | Tue Mar 06 10:55:02 2018 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Mar 08 02:22:34 2018 +0100 |
tree | 822b9bb7680c97b84f98f8d471b297637048d473 | |
parent | 95da0cdb723260362fc126a563285ac66a193da7 [diff] |
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>