~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/bpf/verifier/sleepable.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 {
  2         "sleepable fentry accept",
  3         .insns = {
  4         BPF_MOV64_IMM(BPF_REG_0, 0),
  5         BPF_EXIT_INSN(),
  6         },
  7         .prog_type = BPF_PROG_TYPE_TRACING,
  8         .expected_attach_type = BPF_TRACE_FENTRY,
  9         .kfunc = "bpf_fentry_test1",
 10         .result = ACCEPT,
 11         .flags = BPF_F_SLEEPABLE,
 12         .runs = -1,
 13 },
 14 {
 15         "sleepable fexit accept",
 16         .insns = {
 17         BPF_MOV64_IMM(BPF_REG_0, 0),
 18         BPF_EXIT_INSN(),
 19         },
 20         .prog_type = BPF_PROG_TYPE_TRACING,
 21         .expected_attach_type = BPF_TRACE_FENTRY,
 22         .kfunc = "bpf_fentry_test1",
 23         .result = ACCEPT,
 24         .flags = BPF_F_SLEEPABLE,
 25         .runs = -1,
 26 },
 27 {
 28         "sleepable fmod_ret accept",
 29         .insns = {
 30         BPF_MOV64_IMM(BPF_REG_0, 0),
 31         BPF_EXIT_INSN(),
 32         },
 33         .prog_type = BPF_PROG_TYPE_TRACING,
 34         .expected_attach_type = BPF_MODIFY_RETURN,
 35         .kfunc = "bpf_fentry_test1",
 36         .result = ACCEPT,
 37         .flags = BPF_F_SLEEPABLE,
 38         .runs = -1,
 39 },
 40 {
 41         "sleepable iter accept",
 42         .insns = {
 43         BPF_MOV64_IMM(BPF_REG_0, 0),
 44         BPF_EXIT_INSN(),
 45         },
 46         .prog_type = BPF_PROG_TYPE_TRACING,
 47         .expected_attach_type = BPF_TRACE_ITER,
 48         .kfunc = "task",
 49         .result = ACCEPT,
 50         .flags = BPF_F_SLEEPABLE,
 51         .runs = -1,
 52 },
 53 {
 54         "sleepable lsm accept",
 55         .insns = {
 56         BPF_MOV64_IMM(BPF_REG_0, 0),
 57         BPF_EXIT_INSN(),
 58         },
 59         .prog_type = BPF_PROG_TYPE_LSM,
 60         .kfunc = "bpf",
 61         .expected_attach_type = BPF_LSM_MAC,
 62         .result = ACCEPT,
 63         .flags = BPF_F_SLEEPABLE,
 64         .runs = -1,
 65 },
 66 {
 67         "sleepable uprobe accept",
 68         .insns = {
 69         BPF_MOV64_IMM(BPF_REG_0, 0),
 70         BPF_EXIT_INSN(),
 71         },
 72         .prog_type = BPF_PROG_TYPE_KPROBE,
 73         .kfunc = "bpf_fentry_test1",
 74         .result = ACCEPT,
 75         .flags = BPF_F_SLEEPABLE,
 76         .runs = -1,
 77 },
 78 {
 79         "sleepable raw tracepoint reject",
 80         .insns = {
 81         BPF_MOV64_IMM(BPF_REG_0, 0),
 82         BPF_EXIT_INSN(),
 83         },
 84         .prog_type = BPF_PROG_TYPE_TRACING,
 85         .expected_attach_type = BPF_TRACE_RAW_TP,
 86         .kfunc = "sched_switch",
 87         .result = REJECT,
 88         .errstr = "Only fentry/fexit/fmod_ret, lsm, iter, uprobe, and struct_ops programs can be sleepable",
 89         .flags = BPF_F_SLEEPABLE,
 90         .runs = -1,
 91 },
 92 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php