/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | skb_ctx.c | 23 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_skb_ctx() 41 tattr.ctx_size_in = 0; in test_skb_ctx() 42 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 44 tattr.ctx_size_in = sizeof(skb); in test_skb_ctx() 48 tattr.ctx_size_out = 0; in test_skb_ctx() 49 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 51 tattr.ctx_size_out = sizeof(skb); in test_skb_ctx() 56 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 61 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 68 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() [all …]
|
D | xdp_adjust_tail.c | 89 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_xdp_adjust_tail_grow2() 103 tattr.data_size_in = 64; /* Determine test case via pkt size */ in test_xdp_adjust_tail_grow2() 104 tattr.data_size_out = 128; /* Limit copy_size */ in test_xdp_adjust_tail_grow2() 106 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_xdp_adjust_tail_grow2() 109 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval"); in test_xdp_adjust_tail_grow2() 110 ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */ in test_xdp_adjust_tail_grow2() 122 tattr.data_size_in = 128; /* Determine test case via pkt size */ in test_xdp_adjust_tail_grow2() 123 tattr.data_size_out = sizeof(buf); /* Copy everything */ in test_xdp_adjust_tail_grow2() 124 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_xdp_adjust_tail_grow2() 128 ASSERT_EQ(tattr.retval, XDP_TX, "case-128 retval"); in test_xdp_adjust_tail_grow2() [all …]
|
D | cls_redirect.c | 165 static bool was_decapsulated(struct bpf_test_run_opts *tattr) in was_decapsulated() argument 167 return tattr->data_size_out < tattr->data_size_in; in was_decapsulated() 371 LIBBPF_OPTS(bpf_test_run_opts, tattr); in test_cls_redirect_common() 411 tattr.data_out = tmp; in test_cls_redirect_common() 412 tattr.data_size_out = sizeof(tmp); in test_cls_redirect_common() 414 tattr.data_in = input; in test_cls_redirect_common() 415 tattr.data_size_in = build_input(test, input, tuple); in test_cls_redirect_common() 416 if (CHECK_FAIL(!tattr.data_size_in)) in test_cls_redirect_common() 419 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_cls_redirect_common() 423 if (tattr.retval != TC_ACT_REDIRECT) { in test_cls_redirect_common() [all …]
|
D | empty_skb.c | 9 LIBBPF_OPTS(bpf_test_run_opts, tattr); in test_empty_skb() 122 tattr.data_in = tests[i].data_in; in test_empty_skb() 123 tattr.data_size_in = tests[i].data_size_in; in test_empty_skb() 125 tattr.data_size_out = 0; in test_empty_skb() 128 err = bpf_prog_test_run_opts(bpf_program__fd(prog), &tattr); in test_empty_skb()
|
D | skb_load_bytes.c | 12 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_skb_load_bytes() 28 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_load_bytes() 36 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_load_bytes()
|
D | syscall.c | 23 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_syscall() 36 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_syscall() 38 ASSERT_EQ(tattr.retval, 1, "retval"); in test_syscall()
|
/linux-6.6.21/samples/hid/ |
D | hid_surface_dial.c | 96 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr, in attach_prog() 108 err = bpf_prog_test_run_opts(attach_fd, &tattr); in attach_prog() 124 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr, in set_haptic() 135 err = bpf_prog_test_run_opts(haptic_fd, &tattr); in set_haptic()
|
D | hid_mouse.c | 87 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr, in main() 138 err = bpf_prog_test_run_opts(attach_fd, &tattr); in main()
|
/linux-6.6.21/tools/firewire/ |
D | nosy-dump.c | 875 struct termios tattr; in set_input_mode() local 888 tcgetattr(STDIN_FILENO, &tattr); in set_input_mode() 889 tattr.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */ in set_input_mode() 890 tattr.c_cc[VMIN] = 1; in set_input_mode() 891 tattr.c_cc[VTIME] = 0; in set_input_mode() 892 tcsetattr(STDIN_FILENO, TCSAFLUSH, &tattr); in set_input_mode()
|
/linux-6.6.21/tools/testing/selftests/hid/ |
D | hid_bpf.c | 518 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr, in load_programs() 556 err = bpf_prog_test_run_opts(attach_fd, &tattr); in load_programs()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_progs.h | 215 _CHECK(condition, tag, tattr.duration, format)
|
/linux-6.6.21/security/selinux/ss/ |
D | services.c | 623 struct ebitmap *sattr, *tattr; in context_struct_compute_av() local 650 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av() 652 ebitmap_for_each_positive_bit(tattr, tnode, j) { in context_struct_compute_av() 1013 struct ebitmap *sattr, *tattr; in security_compute_xperms_decision() local 1061 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision() 1063 ebitmap_for_each_positive_bit(tattr, tnode, j) { in security_compute_xperms_decision()
|