OpenCloudOS-Kernel/tools/include
Song Liu 81f77fd0de 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 <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-03-15 01:10:02 +01:00
..
asm tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
asm-generic lib: optimize cpumask_next_and() 2018-02-06 18:32:44 -08:00
linux tools/lib/lockdep: Add missing declaration of 'pr_cont()' 2017-12-13 11:17:35 +01:00
tools License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace/events tools/lib/lockdep: Remove private kernel headers 2017-06-05 09:28:14 +02:00
uapi bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID 2018-03-15 01:10:02 +01:00