Searched refs:tattr (Results 1 - 12 of 12) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dskb_ctx.c23 LIBBPF_OPTS(bpf_test_run_opts, tattr,
41 tattr.ctx_size_in = 0;
42 err = bpf_prog_test_run_opts(prog_fd, &tattr);
44 tattr.ctx_size_in = sizeof(skb);
48 tattr.ctx_size_out = 0;
49 err = bpf_prog_test_run_opts(prog_fd, &tattr);
51 tattr.ctx_size_out = sizeof(skb);
56 err = bpf_prog_test_run_opts(prog_fd, &tattr);
61 err = bpf_prog_test_run_opts(prog_fd, &tattr);
68 err = bpf_prog_test_run_opts(prog_fd, &tattr);
[all...]
H A Dskb_load_bytes.c12 LIBBPF_OPTS(bpf_test_run_opts, tattr,
28 err = bpf_prog_test_run_opts(prog_fd, &tattr);
36 err = bpf_prog_test_run_opts(prog_fd, &tattr);
H A Dxdp_adjust_tail.c89 LIBBPF_OPTS(bpf_test_run_opts, tattr,
103 tattr.data_size_in = 64; /* Determine test case via pkt size */
104 tattr.data_size_out = 128; /* Limit copy_size */
106 err = bpf_prog_test_run_opts(prog_fd, &tattr);
109 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval");
110 ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */
122 tattr.data_size_in = 128; /* Determine test case via pkt size */
123 tattr.data_size_out = sizeof(buf); /* Copy everything */
124 err = bpf_prog_test_run_opts(prog_fd, &tattr);
128 ASSERT_EQ(tattr
[all...]
H A Dsyscall.c23 LIBBPF_OPTS(bpf_test_run_opts, tattr,
36 err = bpf_prog_test_run_opts(prog_fd, &tattr);
38 ASSERT_EQ(tattr.retval, 1, "retval");
H A Dempty_skb.c9 LIBBPF_OPTS(bpf_test_run_opts, tattr);
122 tattr.data_in = tests[i].data_in;
123 tattr.data_size_in = tests[i].data_size_in;
125 tattr.data_size_out = 0;
128 err = bpf_prog_test_run_opts(bpf_program__fd(prog), &tattr);
H A Dcls_redirect.c165 static bool was_decapsulated(struct bpf_test_run_opts *tattr) argument
167 return tattr->data_size_out < tattr->data_size_in;
371 LIBBPF_OPTS(bpf_test_run_opts, tattr);
411 tattr.data_out = tmp;
412 tattr.data_size_out = sizeof(tmp);
414 tattr.data_in = input;
415 tattr.data_size_in = build_input(test, input, tuple);
416 if (CHECK_FAIL(!tattr.data_size_in))
419 err = bpf_prog_test_run_opts(prog_fd, &tattr);
[all...]
/linux-master/samples/hid/
H A Dhid_surface_dial.c96 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr,
108 err = bpf_prog_test_run_opts(attach_fd, &tattr);
124 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr,
135 err = bpf_prog_test_run_opts(haptic_fd, &tattr);
H A Dhid_mouse.c87 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr,
138 err = bpf_prog_test_run_opts(attach_fd, &tattr);
/linux-master/tools/firewire/
H A Dnosy-dump.c875 struct termios tattr; local
888 tcgetattr(STDIN_FILENO, &tattr);
889 tattr.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */
890 tattr.c_cc[VMIN] = 1;
891 tattr.c_cc[VTIME] = 0;
892 tcsetattr(STDIN_FILENO, TCSAFLUSH, &tattr);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_progs.h215 _CHECK(condition, tag, tattr.duration, format)
/linux-master/tools/testing/selftests/hid/
H A Dhid_bpf.c518 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr,
556 err = bpf_prog_test_run_opts(attach_fd, &tattr);
/linux-master/security/selinux/ss/
H A Dservices.c623 struct ebitmap *sattr, *tattr; local
650 tattr = &policydb->type_attr_map_array[tcontext->type - 1];
652 ebitmap_for_each_positive_bit(tattr, tnode, j) {
1013 struct ebitmap *sattr, *tattr; local
1061 tattr = &policydb->type_attr_map_array[tcontext->type - 1];
1063 ebitmap_for_each_positive_bit(tattr, tnode, j) {

Completed in 186 milliseconds