Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_type_based.c14 char out[256]; member
112 struct core_reloc_type_based_output *out = (void *)&data.out; in test_core_type_based() local
114 out->struct_exists = bpf_core_type_exists(struct a_struct); in test_core_type_based()
115 out->complex_struct_exists = bpf_core_type_exists(struct a_complex_struct); in test_core_type_based()
116 out->union_exists = bpf_core_type_exists(union a_union); in test_core_type_based()
117 out->enum_exists = bpf_core_type_exists(enum an_enum); in test_core_type_based()
118 out->typedef_named_struct_exists = bpf_core_type_exists(named_struct_typedef); in test_core_type_based()
119 out->typedef_anon_struct_exists = bpf_core_type_exists(anon_struct_typedef); in test_core_type_based()
120 out->typedef_struct_ptr_exists = bpf_core_type_exists(struct_ptr_typedef); in test_core_type_based()
121 out->typedef_int_exists = bpf_core_type_exists(int_typedef); in test_core_type_based()
[all …]
Dtest_core_reloc_type_id.c14 char out[256]; member
86 struct core_reloc_type_id_output *out = (void *)&data.out; in test_core_type_id() local
88 out->local_anon_struct = bpf_core_type_id_local(struct { int marker_field; }); in test_core_type_id()
89 out->local_anon_union = bpf_core_type_id_local(union { int marker_field; }); in test_core_type_id()
90 out->local_anon_enum = bpf_core_type_id_local(enum { MARKER_ENUM_VAL = 123 }); in test_core_type_id()
91 out->local_anon_func_proto_ptr = bpf_core_type_id_local(_Bool(*)(int)); in test_core_type_id()
92 out->local_anon_void_ptr = bpf_core_type_id_local(void *); in test_core_type_id()
93 out->local_anon_arr = bpf_core_type_id_local(_Bool[47]); in test_core_type_id()
95 out->local_struct = bpf_core_type_id_local(struct a_struct); in test_core_type_id()
96 out->local_union = bpf_core_type_id_local(union a_union); in test_core_type_id()
[all …]
Dtest_core_reloc_existence.c13 char out[256]; member
45 struct core_reloc_existence_output *out = (void *)&data.out; in test_core_existence() local
47 out->a_exists = bpf_core_field_exists(in->a); in test_core_existence()
49 out->a_value = BPF_CORE_READ(in, a); in test_core_existence()
51 out->a_value = 0xff000001u; in test_core_existence()
53 out->b_exists = bpf_core_field_exists(in->b); in test_core_existence()
55 out->b_value = BPF_CORE_READ(in, b); in test_core_existence()
57 out->b_value = 0xff000002u; in test_core_existence()
59 out->c_exists = bpf_core_field_exists(in->c); in test_core_existence()
61 out->c_value = BPF_CORE_READ(in, c); in test_core_existence()
[all …]
Dtest_core_reloc_size.c13 char out[256]; member
49 struct core_reloc_size_output *out = (void *)&data.out; in test_core_size() local
51 out->int_sz = bpf_core_field_size(in->int_field); in test_core_size()
52 out->int_off = bpf_core_field_offset(in->int_field); in test_core_size()
54 out->struct_sz = bpf_core_field_size(in->struct_field); in test_core_size()
55 out->struct_off = bpf_core_field_offset(in->struct_field); in test_core_size()
57 out->union_sz = bpf_core_field_size(in->union_field); in test_core_size()
58 out->union_off = bpf_core_field_offset(in->union_field); in test_core_size()
60 out->arr_sz = bpf_core_field_size(in->arr_field); in test_core_size()
61 out->arr_off = bpf_core_field_offset(in->arr_field); in test_core_size()
[all …]
Dtest_core_reloc_module.c20 char out[256]; member
44 struct core_reloc_module_output *out = (void *)&data.out; in BPF_PROG() local
55 out->len = BPF_CORE_READ(read_ctx, len); in BPF_PROG()
56 out->off = BPF_CORE_READ(read_ctx, off); in BPF_PROG()
58 out->read_ctx_sz = bpf_core_type_size(struct bpf_testmod_test_read_ctx); in BPF_PROG()
59 out->read_ctx_exists = bpf_core_type_exists(struct bpf_testmod_test_read_ctx); in BPF_PROG()
60 out->buf_exists = bpf_core_field_exists(read_ctx->buf); in BPF_PROG()
61 out->off_exists = bpf_core_field_exists(read_ctx->off); in BPF_PROG()
62 out->len_exists = bpf_core_field_exists(read_ctx->len); in BPF_PROG()
64 out->comm_len = BPF_CORE_READ_STR_INTO(&out->comm, task, comm); in BPF_PROG()
[all …]
Dtest_core_reloc_enumval.c14 char out[256]; member
48 struct core_reloc_enumval_output *out = (void *)&data.out; in test_core_enumval() local
52 out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); in test_core_enumval()
53 out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); in test_core_enumval()
54 out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); in test_core_enumval()
56 out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); in test_core_enumval()
57 out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); in test_core_enumval()
58 out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); in test_core_enumval()
60 out->named_val1 = bpf_core_enum_value(named, NAMED_ENUM_VAL1); in test_core_enumval()
61 out->named_val2 = bpf_core_enum_value(named, NAMED_ENUM_VAL2); in test_core_enumval()
[all …]
Dtest_core_reloc_enum64val.c14 char out[256]; member
48 struct core_reloc_enum64val_output *out = (void *)&data.out; in test_core_enum64val() local
52 out->unsigned_val1_exists = bpf_core_enum_value_exists(named_unsigned, UNSIGNED_ENUM64_VAL1); in test_core_enum64val()
53out->unsigned_val2_exists = bpf_core_enum_value_exists(enum named_unsigned_enum64, UNSIGNED_ENUM64… in test_core_enum64val()
54out->unsigned_val3_exists = bpf_core_enum_value_exists(enum named_unsigned_enum64, UNSIGNED_ENUM64… in test_core_enum64val()
55 out->signed_val1_exists = bpf_core_enum_value_exists(named_signed, SIGNED_ENUM64_VAL1); in test_core_enum64val()
56 out->signed_val2_exists = bpf_core_enum_value_exists(enum named_signed_enum64, SIGNED_ENUM64_VAL2); in test_core_enum64val()
57 out->signed_val3_exists = bpf_core_enum_value_exists(enum named_signed_enum64, SIGNED_ENUM64_VAL3); in test_core_enum64val()
59 out->unsigned_val1 = bpf_core_enum_value(named_unsigned, UNSIGNED_ENUM64_VAL1); in test_core_enum64val()
60 out->unsigned_val2 = bpf_core_enum_value(named_unsigned, UNSIGNED_ENUM64_VAL2); in test_core_enum64val()
[all …]
Dtest_core_reloc_ints.c13 char out[256]; member
33 struct core_reloc_ints *out = (void *)&data.out; in test_core_ints() local
35 if (CORE_READ(&out->u8_field, &in->u8_field) || in test_core_ints()
36 CORE_READ(&out->s8_field, &in->s8_field) || in test_core_ints()
37 CORE_READ(&out->u16_field, &in->u16_field) || in test_core_ints()
38 CORE_READ(&out->s16_field, &in->s16_field) || in test_core_ints()
39 CORE_READ(&out->u32_field, &in->u32_field) || in test_core_ints()
40 CORE_READ(&out->s32_field, &in->s32_field) || in test_core_ints()
41 CORE_READ(&out->u64_field, &in->u64_field) || in test_core_ints()
42 CORE_READ(&out->s64_field, &in->s64_field)) in test_core_ints()
Dtest_core_reloc_kernel.c14 char out[256]; member
54 struct core_reloc_kernel_output *out = (void *)&data.out; in test_core_kernel() local
67 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel()
70 out->valid[1] = BPF_CORE_READ(task, in test_core_kernel()
72 out->valid[2] = BPF_CORE_READ(task, in test_core_kernel()
75 out->valid[3] = BPF_CORE_READ(task, in test_core_kernel()
78 out->valid[4] = BPF_CORE_READ(task, in test_core_kernel()
81 out->valid[5] = BPF_CORE_READ(task, in test_core_kernel()
85 out->valid[6] = BPF_CORE_READ(task, in test_core_kernel()
89 out->valid[7] = BPF_CORE_READ(task, in test_core_kernel()
[all …]
Dtest_core_reloc_bitfields_probed.c13 char out[256]; member
44 struct core_reloc_bitfields_output *out = (void *)&data.out; in test_core_bitfields() local
46 out->ub1 = BPF_CORE_READ_BITFIELD_PROBED(in, ub1); in test_core_bitfields()
47 out->ub2 = BPF_CORE_READ_BITFIELD_PROBED(in, ub2); in test_core_bitfields()
48 out->ub7 = BPF_CORE_READ_BITFIELD_PROBED(in, ub7); in test_core_bitfields()
49 out->sb4 = BPF_CORE_READ_BITFIELD_PROBED(in, sb4); in test_core_bitfields()
50 out->sb20 = BPF_CORE_READ_BITFIELD_PROBED(in, sb20); in test_core_bitfields()
51 out->u32 = BPF_CORE_READ_BITFIELD_PROBED(in, u32); in test_core_bitfields()
52 out->s32 = BPF_CORE_READ_BITFIELD_PROBED(in, s32); in test_core_bitfields()
/tools/perf/util/
Ddata-convert-json.c36 FILE *out; member
42 static void output_json_string(FILE *out, const char *s) in output_json_string() argument
44 fputc('"', out); in output_json_string()
49 case '"': fputs("\\\"", out); break; in output_json_string()
50 case '\\': fputs("\\\\", out); break; in output_json_string()
51 case '\b': fputs("\\b", out); break; in output_json_string()
52 case '\f': fputs("\\f", out); break; in output_json_string()
53 case '\n': fputs("\\n", out); break; in output_json_string()
54 case '\r': fputs("\\r", out); break; in output_json_string()
55 case '\t': fputs("\\t", out); break; in output_json_string()
[all …]
Ddemangle-rust.c51 static bool unescape(const char **in, char **out, const char *seq, char value);
185 char *out; in rust_demangle_sym() local
192 out = sym; in rust_demangle_sym()
198 if (!(unescape(&in, &out, "$C$", ',') in rust_demangle_sym()
199 || unescape(&in, &out, "$SP$", '@') in rust_demangle_sym()
200 || unescape(&in, &out, "$BP$", '*') in rust_demangle_sym()
201 || unescape(&in, &out, "$RF$", '&') in rust_demangle_sym()
202 || unescape(&in, &out, "$LT$", '<') in rust_demangle_sym()
203 || unescape(&in, &out, "$GT$", '>') in rust_demangle_sym()
204 || unescape(&in, &out, "$LP$", '(') in rust_demangle_sym()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dxdp_synproxy.c16 goto out; \
21 static void escape_str(char *out, const char *in, size_t size) in escape_str() argument
28 *out++ = in[i]; in escape_str()
30 *out++ = '\\'; in escape_str()
31 *out++ = 'x'; in escape_str()
32 *out++ = hex[(in[i] >> 4) & 0xf]; in escape_str()
33 *out++ = hex[in[i] & 0xf]; in escape_str()
36 *out++ = '\0'; in escape_str()
67 SYS(out, "ip netns add synproxy"); in test_synproxy()
69 SYS(out, "ip link add tmp0 type veth peer name tmp1"); in test_synproxy()
[all …]
Dxdp_flowtable.c78 SYS(out, "ip netns add " TX_NETNS_NAME); in test_xdp_flowtable()
79 SYS(out, "ip netns add " RX_NETNS_NAME); in test_xdp_flowtable()
83 goto out; in test_xdp_flowtable()
85 SYS(out, "sysctl -qw net.ipv4.conf.all.forwarding=1"); in test_xdp_flowtable()
87 SYS(out, "ip link add " TX_NAME " type veth peer " FORWARD_NAME); in test_xdp_flowtable()
88 SYS(out, "ip link set " TX_NAME " netns " TX_NETNS_NAME); in test_xdp_flowtable()
89 SYS(out, "ip link set dev " FORWARD_NAME " address " FORWARD_MAC); in test_xdp_flowtable()
90 SYS(out, in test_xdp_flowtable()
92 SYS(out, "ip link set dev " FORWARD_NAME " up"); in test_xdp_flowtable()
94 SYS(out, "ip link add " RX_NAME " type dummy"); in test_xdp_flowtable()
[all …]
Dtailcalls.c36 goto out; in test_tailcall_1()
40 goto out; in test_tailcall_1()
44 goto out; in test_tailcall_1()
48 goto out; in test_tailcall_1()
55 goto out; in test_tailcall_1()
59 goto out; in test_tailcall_1()
63 goto out; in test_tailcall_1()
73 goto out; in test_tailcall_1()
85 goto out; in test_tailcall_1()
89 goto out; in test_tailcall_1()
[all …]
Dtest_bpffs.c41 goto out; in fn()
45 goto out; in fn()
52 goto out; in fn()
56 goto out; in fn()
60 goto out; in fn()
63 goto out; in fn()
67 goto out; in fn()
70 goto out; in fn()
74 goto out; in fn()
77 goto out; in fn()
[all …]
Dpinning.c50 goto out; in test_pinning()
58 goto out; in test_pinning()
63 goto out; in test_pinning()
68 goto out; in test_pinning()
74 goto out; in test_pinning()
80 goto out; in test_pinning()
84 goto out; in test_pinning()
91 goto out; in test_pinning()
96 goto out; in test_pinning()
102 goto out; in test_pinning()
[all …]
Dxdp_bonding.c276 goto out; in test_xdp_bonding_with_mode()
279 goto out; in test_xdp_bonding_with_mode()
323 out: in test_xdp_bonding_with_mode()
339 goto out; in test_xdp_bonding_redirect_multi()
343 goto out; in test_xdp_bonding_redirect_multi()
351 goto out; in test_xdp_bonding_redirect_multi()
355 goto out; in test_xdp_bonding_redirect_multi()
361 goto out; in test_xdp_bonding_redirect_multi()
366 goto out; in test_xdp_bonding_redirect_multi()
374 out: in test_xdp_bonding_redirect_multi()
[all …]
Dcore_autosize.c49 } out; variable
170 err = bpf_map__lookup_elem(bss_map, &zero, sizeof(zero), &out, sizeof(out), 0); in test_core_autosize()
174 ASSERT_EQ(out.ptr_samesized, 0x01020304, "ptr_samesized"); in test_core_autosize()
175 ASSERT_EQ(out.val1_samesized, 0x1020304050607080, "val1_samesized"); in test_core_autosize()
176 ASSERT_EQ(out.val2_samesized, 0x0a0b0c0d, "val2_samesized"); in test_core_autosize()
177 ASSERT_EQ(out.val3_samesized, 0xfeed, "val3_samesized"); in test_core_autosize()
178 ASSERT_EQ(out.val4_samesized, 0xb9, "val4_samesized"); in test_core_autosize()
179 ASSERT_EQ(out.output_samesized.ptr, 0x01020304, "ptr_samesized"); in test_core_autosize()
180 ASSERT_EQ(out.output_samesized.val1, 0x1020304050607080, "val1_samesized"); in test_core_autosize()
181 ASSERT_EQ(out.output_samesized.val2, 0x0a0b0c0d, "val2_samesized"); in test_core_autosize()
[all …]
Dxdp_do_redirect.c123 SYS(out, "ip netns add testns"); in test_xdp_do_redirect()
126 goto out; in test_xdp_do_redirect()
128 SYS(out, "ip link add veth_src type veth peer name veth_dst"); in test_xdp_do_redirect()
129 SYS(out, "ip link set dev veth_src address 00:11:22:33:44:55"); in test_xdp_do_redirect()
130 SYS(out, "ip link set dev veth_dst address 66:77:88:99:aa:bb"); in test_xdp_do_redirect()
131 SYS(out, "ip link set dev veth_src up"); in test_xdp_do_redirect()
132 SYS(out, "ip link set dev veth_dst up"); in test_xdp_do_redirect()
133 SYS(out, "ip addr add dev veth_src fc00::1/64"); in test_xdp_do_redirect()
134 SYS(out, "ip addr add dev veth_dst fc00::2/64"); in test_xdp_do_redirect()
135 SYS(out, "ip neigh add fc00::2 dev veth_src lladdr 66:77:88:99:aa:bb"); in test_xdp_do_redirect()
[all …]
/tools/testing/selftests/openat2/
Dresolve_test.c118 } out; member
140 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
143 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
146 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
149 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
152 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
155 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
158 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
161 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
164 .out.err = -EXDEV, .pass = false }, in test_openat2_opath_tests()
[all …]
/tools/perf/tests/shell/
Dtest_task_analyzer.sh74 out="$tmpdir/perf.out"
75 perf script report task-analyzer > "$out"
77 find_str_or_fail "Comm" "$out" "${FUNCNAME[0]}"
81 out="$tmpdir/perf.out"
82 perf script report task-analyzer --ns --rename-comms-by-tids 0:random > "$out"
84 find_str_or_fail "Comm" "$out" "${FUNCNAME[0]}"
88 out="$tmpdir/perf.out"
90 > "$out"
92 find_str_or_fail "Comm" "$out" "${FUNCNAME[0]}"
96 out="$tmpdir/perf.out"
[all …]
/tools/testing/selftests/riscv/hwprobe/
Dhwprobe.c9 long out; in main() local
24 out = riscv_hwprobe(pairs, 8, 1, &cpus, 0); in main()
25 if (out != 0) in main()
26 ksft_exit_fail_msg("hwprobe() failed with %ld\n", out); in main()
43 out = riscv_hwprobe(pairs, 8, 0, 0, 0); in main()
44 ksft_test_result(out == 0, "NULL CPU set\n"); in main()
46 out = riscv_hwprobe(pairs, 8, 0, &cpus, 0); in main()
47 ksft_test_result(out != 0, "Bad CPU set\n"); in main()
49 out = riscv_hwprobe(pairs, 8, 1, 0, 0); in main()
50 ksft_test_result(out != 0, "NULL CPU set with non-zero size\n"); in main()
[all …]
/tools/testing/selftests/net/tcp_ao/
Dsetsockopt-closed.c601 struct tcp_ao_getsockopt out; in test_einval_get_keys() local
607 getsockopt_checked(sk, &out, ENOENT, "no ao_info"); in test_einval_get_keys()
609 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
610 getsockopt_checked(sk, &out, 0, "proper tcp_ao_get_mkts()"); in test_einval_get_keys()
612 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
613 out.pkt_good = 643; in test_einval_get_keys()
614 getsockopt_checked(sk, &out, EINVAL, "set out-only pkt_good counter"); in test_einval_get_keys()
616 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
617 out.pkt_bad = 94; in test_einval_get_keys()
618 getsockopt_checked(sk, &out, EINVAL, "set out-only pkt_bad counter"); in test_einval_get_keys()
[all …]
/tools/testing/selftests/cgroup/
Dtest_zswap.c126 goto out; in test_zswap_usage()
128 goto out; in test_zswap_usage()
130 goto out; in test_zswap_usage()
135 goto out; in test_zswap_usage()
140 goto out; in test_zswap_usage()
146 goto out; in test_zswap_usage()
150 out: in test_zswap_usage()
168 goto out; in test_swapin_nozswap()
170 goto out; in test_swapin_nozswap()
172 goto out; in test_swapin_nozswap()
[all …]

12345678910>>...26