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

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/bpf/progs/tracing_struct_many_args.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 // SPDX-License-Identifier: GPL-2.0
  2 #include <vmlinux.h>
  3 #include <bpf/bpf_tracing.h>
  4 #include <bpf/bpf_helpers.h>
  5 
  6 struct bpf_testmod_struct_arg_4 {
  7         u64 a;
  8         int b;
  9 };
 10 
 11 struct bpf_testmod_struct_arg_5 {
 12         char a;
 13         short b;
 14         int c;
 15         long d;
 16 };
 17 
 18 long t7_a, t7_b, t7_c, t7_d, t7_e, t7_f_a, t7_f_b, t7_ret;
 19 long t8_a, t8_b, t8_c, t8_d, t8_e, t8_f_a, t8_f_b, t8_g, t8_ret;
 20 long t9_a, t9_b, t9_c, t9_d, t9_e, t9_f, t9_g, t9_h_a, t9_h_b, t9_h_c, t9_h_d, t9_i, t9_ret;
 21 
 22 SEC("fentry/bpf_testmod_test_struct_arg_7")
 23 int BPF_PROG2(test_struct_many_args_1, __u64, a, void *, b, short, c, int, d,
 24               void *, e, struct bpf_testmod_struct_arg_4, f)
 25 {
 26         t7_a = a;
 27         t7_b = (long)b;
 28         t7_c = c;
 29         t7_d = d;
 30         t7_e = (long)e;
 31         t7_f_a = f.a;
 32         t7_f_b = f.b;
 33         return 0;
 34 }
 35 
 36 SEC("fexit/bpf_testmod_test_struct_arg_7")
 37 int BPF_PROG2(test_struct_many_args_2, __u64, a, void *, b, short, c, int, d,
 38               void *, e, struct bpf_testmod_struct_arg_4, f, int, ret)
 39 {
 40         t7_ret = ret;
 41         return 0;
 42 }
 43 
 44 SEC("fentry/bpf_testmod_test_struct_arg_8")
 45 int BPF_PROG2(test_struct_many_args_3, __u64, a, void *, b, short, c, int, d,
 46               void *, e, struct bpf_testmod_struct_arg_4, f, int, g)
 47 {
 48         t8_a = a;
 49         t8_b = (long)b;
 50         t8_c = c;
 51         t8_d = d;
 52         t8_e = (long)e;
 53         t8_f_a = f.a;
 54         t8_f_b = f.b;
 55         t8_g = g;
 56         return 0;
 57 }
 58 
 59 SEC("fexit/bpf_testmod_test_struct_arg_8")
 60 int BPF_PROG2(test_struct_many_args_4, __u64, a, void *, b, short, c, int, d,
 61               void *, e, struct bpf_testmod_struct_arg_4, f, int, g,
 62               int, ret)
 63 {
 64         t8_ret = ret;
 65         return 0;
 66 }
 67 
 68 SEC("fentry/bpf_testmod_test_struct_arg_9")
 69 int BPF_PROG2(test_struct_many_args_5, __u64, a, void *, b, short, c, int, d, void *, e,
 70               char, f, short, g, struct bpf_testmod_struct_arg_5, h, long, i)
 71 {
 72         t9_a = a;
 73         t9_b = (long)b;
 74         t9_c = c;
 75         t9_d = d;
 76         t9_e = (long)e;
 77         t9_f = f;
 78         t9_g = g;
 79         t9_h_a = h.a;
 80         t9_h_b = h.b;
 81         t9_h_c = h.c;
 82         t9_h_d = h.d;
 83         t9_i = i;
 84         return 0;
 85 }
 86 
 87 SEC("fexit/bpf_testmod_test_struct_arg_9")
 88 int BPF_PROG2(test_struct_many_args_6, __u64, a, void *, b, short, c, int, d, void *, e,
 89               char, f, short, g, struct bpf_testmod_struct_arg_5, h, long, i, int, ret)
 90 {
 91         t9_ret = ret;
 92         return 0;
 93 }
 94 
 95 char _license[] SEC("license") = "GPL";
 96 

~ [ 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