summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/verifier/helper_restricted.c
AgeCommit message (Collapse)AuthorFilesLines
2021-11-16selftests/bpf: Add tests for restricted helpersDmitrii Banshchikov1-0/+196
This patch adds tests that bpf_ktime_get_coarse_ns(), bpf_timer_* and bpf_spin_lock()/bpf_spin_unlock() helpers are forbidden in tracing progs as their use there may result in various locking issues. Signed-off-by: Dmitrii Banshchikov <me@ubique.spb.ru> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211113142227.566439-3-me@ubique.spb.ru