Home
last modified time | relevance | path

Searched refs:tattr (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dskb_ctx.c14 struct bpf_prog_test_run_attr tattr = { in test_skb_ctx() local
27 &tattr.prog_fd); in test_skb_ctx()
33 tattr.ctx_size_in = 0; in test_skb_ctx()
34 err = bpf_prog_test_run_xattr(&tattr); in test_skb_ctx()
36 tattr.ctx_size_in = sizeof(skb); in test_skb_ctx()
40 tattr.ctx_size_out = 0; in test_skb_ctx()
41 err = bpf_prog_test_run_xattr(&tattr); in test_skb_ctx()
43 tattr.ctx_size_out = sizeof(skb); in test_skb_ctx()
48 err = bpf_prog_test_run_xattr(&tattr); in test_skb_ctx()
53 err = bpf_prog_test_run_xattr(&tattr); in test_skb_ctx()
[all …]
Dprog_run_xattr.c10 struct bpf_prog_test_run_attr tattr = { in test_prog_run_xattr() local
19 &tattr.prog_fd); in test_prog_run_xattr()
25 err = bpf_prog_test_run_xattr(&tattr); in test_prog_run_xattr()
26 CHECK_ATTR(err != -1 || errno != ENOSPC || tattr.retval, "run", in test_prog_run_xattr()
27 "err %d errno %d retval %d\n", err, errno, tattr.retval); in test_prog_run_xattr()
29 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr()
31 sizeof(pkt_v4), tattr.data_size_out); in test_prog_run_xattr()
36 tattr.data_out = NULL; in test_prog_run_xattr()
37 tattr.data_size_out = 0; in test_prog_run_xattr()
40 err = bpf_prog_test_run_xattr(&tattr); in test_prog_run_xattr()
[all …]
Dflow_dissector.c459 struct bpf_prog_test_run_attr tattr = { in test_flow_dissector() local
468 tattr.ctx_in = &ctx; in test_flow_dissector()
469 tattr.ctx_size_in = sizeof(ctx); in test_flow_dissector()
473 err = bpf_prog_test_run_xattr(&tattr); in test_flow_dissector()
474 CHECK_ATTR(tattr.data_size_out != sizeof(flow_keys) || in test_flow_dissector()
475 err || tattr.retval != 1, in test_flow_dissector()
478 err, errno, tattr.retval, tattr.duration, in test_flow_dissector()
479 tattr.data_size_out, sizeof(flow_keys)); in test_flow_dissector()
501 struct bpf_prog_test_run_attr tattr = {}; in test_flow_dissector() local
/Linux-v5.4/tools/firewire/
Dnosy-dump.c875 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-v5.4/tools/testing/selftests/bpf/
Dtest_progs.h120 _CHECK(condition, tag, tattr.duration, format)
/Linux-v5.4/security/selinux/ss/
Dservices.c625 struct ebitmap *sattr, *tattr; in context_struct_compute_av() local
652 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av()
654 ebitmap_for_each_positive_bit(tattr, tnode, j) { in context_struct_compute_av()
1011 struct ebitmap *sattr, *tattr; in security_compute_xperms_decision() local
1058 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision()
1060 ebitmap_for_each_positive_bit(tattr, tnode, j) { in security_compute_xperms_decision()