Searched refs:tattr (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | skb_ctx.c | 14 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 …]
|
D | prog_run_xattr.c | 10 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 …]
|
D | flow_dissector.c | 459 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/ |
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-v5.4/tools/testing/selftests/bpf/ |
D | test_progs.h | 120 _CHECK(condition, tag, tattr.duration, format)
|
/Linux-v5.4/security/selinux/ss/ |
D | services.c | 625 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()
|