diff options
| author | Song Liu <[email protected]> | 2018-03-14 10:23:22 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-03-15 01:10:02 +0100 |
| commit | 81f77fd0deeb866d65ccc79733df8d2af5217c82 (patch) | |
| tree | bebe74af6f86ad63719e1d50442482a51a6beedf /tools/perf/scripts/python | |
| parent | 615755a77b2461ed78dfafb8a6649456201949c7 (diff) | |
bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID
test_stacktrace_build_id() is added. It accesses tracepoint urandom_read
with "dd" and "urandom_read" and gathers stack traces. Then it reads the
stack traces from the stackmap.
urandom_read is a statically link binary that reads from /dev/urandom.
test_stacktrace_build_id() calls readelf to read build ID of urandom_read
and compares it with build ID from the stackmap.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions