diff options
| author | Song Liu <[email protected]> | 2018-05-07 17:50:49 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-05-14 21:29:45 +0000 |
| commit | 13790d1cc72c22f6e7a1248e5f6d20d720797e95 (patch) | |
| tree | 96449dabaf9685b7cb23b07ecb0ace00b06dd251 /samples/bpf/fds_example.c | |
| parent | bpf: enable stackmap with build_id in nmi context (diff) | |
| download | kernel-13790d1cc72c22f6e7a1248e5f6d20d720797e95.tar.gz kernel-13790d1cc72c22f6e7a1248e5f6d20d720797e95.zip | |
bpf: add selftest for stackmap with build_id in NMI context
This new test captures stackmap with build_id with hardware event
PERF_COUNT_HW_CPU_CYCLES.
Because we only support one ips-to-build_id lookup per cpu in NMI
context, stack_amap will not be able to do the lookup in this test.
Therefore, we didn't do compare_stack_ips(), as it will alwasy fail.
urandom_read.c is extended to run configurable cycles so that it can be
caught by the perf event.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'samples/bpf/fds_example.c')
0 files changed, 0 insertions, 0 deletions
