selftests/bpf: fix selftest after random: Urandom_read tracepoint removal
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 25 Mar 2022 22:56:43 +0000 (15:56 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 29 Mar 2022 02:09:23 +0000 (19:09 -0700)
commit99dea2c664d7bc7e4f6f6947182d0d365165a998
treead66459f356c992b138d36f0b38af500a6efe359
parentc29a4920dfcaa1433b09e2674f605f72767a385c
selftests/bpf: fix selftest after random: Urandom_read tracepoint removal

14c174633f34 ("random: remove unused tracepoints") removed all the
tracepoints from drivers/char/random.c, one of which,
random:urandom_read, was used by stacktrace_build_id selftest to trigger
stack trace capture.

Fix breakage by switching to kprobing urandom_read() function.

Suggested-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220325225643.2606-1-andrii@kernel.org
tools/testing/selftests/bpf/progs/test_stacktrace_build_id.c