]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: bpf: modify urandom_read and link it non-statically
authorIvan Vecera <ivecera@redhat.com>
Fri, 15 Mar 2019 20:04:14 +0000 (21:04 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 02:37:30 +0000 (19:37 -0700)
commitf6827526279d75f0b1c1605b1bf560024bd7696f
tree917817cc87e4a43f3450a55df9e16bfa48de61a6
parentab99e7a8f7fe190f8669e32d1b8732d18f42e249
selftests: bpf: modify urandom_read and link it non-statically

After some experiences I found that urandom_read does not need to be
linked statically. When the 'read' syscall call is moved to separate
non-inlined function then bpf_get_stackid() is able to find
the executable in stack trace and extract its build_id from it.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/urandom_read.c