commit | 95da0cdb723260362fc126a563285ac66a193da7 | [log] [tgz] |
---|---|---|
author | Teng Qin <qinteng@fb.com> | Tue Mar 06 10:55:01 2018 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Mar 08 02:22:34 2018 +0100 |
tree | db1eb572476d510c1a2e06c18c3ad6d4a79a0060 | |
parent | a366e300ae9fc466d333e6d8f2bc5d58ed248041 [diff] |
bpf: add support to read sample address in bpf program This commit adds new field "addr" to bpf_perf_event_data which could be read and used by bpf programs attached to perf events. The value of the field is copied from bpf_perf_event_data_kern.addr and contains the address value recorded by specifying sample_type with PERF_SAMPLE_ADDR when calling perf_event_open. Signed-off-by: Teng Qin <qinteng@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>