aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2021-10-25 06:40:25 +0000
committerAlexei Starovoitov <[email protected]>2021-11-01 21:10:00 +0000
commit31122b2f768bde5281037141bb658f117bea102e (patch)
treed48c79c0279c3a198eb3724d7d56ac9fe7b00ff8 /scripts/gcc-plugins/sancov_plugin.c
parentbpf: Add dummy BPF STRUCT_OPS for test purpose (diff)
downloadkernel-31122b2f768bde5281037141bb658f117bea102e.tar.gz
kernel-31122b2f768bde5281037141bb658f117bea102e.zip
selftests/bpf: Add test cases for struct_ops prog
Running a BPF_PROG_TYPE_STRUCT_OPS prog for dummy_st_ops::test_N() through bpf_prog_test_run(). Four test cases are added: (1) attach dummy_st_ops should fail (2) function return value of bpf_dummy_ops::test_1() is expected (3) pointer argument of bpf_dummy_ops::test_1() works as expected (4) multiple arguments passed to bpf_dummy_ops::test_2() are correct Signed-off-by: Hou Tao <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions