diff options
author | Menglong Dong <[email protected]> | 2023-03-06 14:48:32 +0800 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2023-03-06 09:38:08 -0800 |
commit | 7391ec6391e2b129aeaee5462487c404f61157aa (patch) | |
tree | 9787aaa665eda76ccd821d4bb1fbd6b749b6e043 /lib/netdev-notifier-error-inject.c | |
parent | f8b299bc6a0f8695d4005ecff29773c79a1d29af (diff) |
selftests/bpf: Split test_attach_probe into multi subtests
In order to adapt to the older kernel, now we split the "attach_probe"
testing into multi subtests:
manual // manual attach tests for kprobe/uprobe
auto // auto-attach tests for kprobe and uprobe
kprobe-sleepable // kprobe sleepable test
uprobe-lib // uprobe tests for library function by name
uprobe-sleepable // uprobe sleepable test
uprobe-ref_ctr // uprobe ref_ctr test
As sleepable kprobe needs to set BPF_F_SLEEPABLE flag before loading,
we need to move it to a stand alone skel file, in case of it is not
supported by kernel and make the whole loading fail.
Therefore, we can only enable part of the subtests for older kernel.
Signed-off-by: Menglong Dong <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Biao Jiang <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions