]> git.baikalelectronics.ru Git - kernel.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)
commit8118eb9b621fc86f2eb205838df1f202a8f524c6
tree917817cc87e4a43f3450a55df9e16bfa48de61a6
parentc4e34b5da650836a313064ad7b8623f082aca6fe
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