/tools/perf/util/ |
D | data-convert-json.c | 32 FILE *out; member 38 static void output_json_string(FILE *out, const char *s) in output_json_string() argument 40 fputc('"', out); in output_json_string() 45 case '"': fputs("\\\"", out); break; in output_json_string() 46 case '\\': fputs("\\\\", out); break; in output_json_string() 47 case '\b': fputs("\\b", out); break; in output_json_string() 48 case '\f': fputs("\\f", out); break; in output_json_string() 49 case '\n': fputs("\\n", out); break; in output_json_string() 50 case '\r': fputs("\\r", out); break; in output_json_string() 51 case '\t': fputs("\\t", out); break; in output_json_string() [all …]
|
D | demangle-rust.c | 51 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/progs/ |
D | test_core_reloc_type_based.c | 14 char out[256]; member 81 struct core_reloc_type_based_output *out = (void *)&data.out; in test_core_type_based() local 83 out->struct_exists = bpf_core_type_exists(struct a_struct); in test_core_type_based() 84 out->union_exists = bpf_core_type_exists(union a_union); in test_core_type_based() 85 out->enum_exists = bpf_core_type_exists(enum an_enum); in test_core_type_based() 86 out->typedef_named_struct_exists = bpf_core_type_exists(named_struct_typedef); in test_core_type_based() 87 out->typedef_anon_struct_exists = bpf_core_type_exists(anon_struct_typedef); in test_core_type_based() 88 out->typedef_struct_ptr_exists = bpf_core_type_exists(struct_ptr_typedef); in test_core_type_based() 89 out->typedef_int_exists = bpf_core_type_exists(int_typedef); in test_core_type_based() 90 out->typedef_enum_exists = bpf_core_type_exists(enum_typedef); in test_core_type_based() [all …]
|
D | test_core_reloc_type_id.c | 14 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 …]
|
D | test_core_reloc_existence.c | 13 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 …]
|
D | test_core_reloc_module.c | 20 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 …]
|
D | test_core_reloc_enumval.c | 14 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 …]
|
D | test_core_reloc_size.c | 13 char out[256]; member 41 struct core_reloc_size_output *out = (void *)&data.out; in test_core_size() local 43 out->int_sz = bpf_core_field_size(in->int_field); in test_core_size() 44 out->struct_sz = bpf_core_field_size(in->struct_field); in test_core_size() 45 out->union_sz = bpf_core_field_size(in->union_field); in test_core_size() 46 out->arr_sz = bpf_core_field_size(in->arr_field); in test_core_size() 47 out->arr_elem_sz = bpf_core_field_size(in->arr_field[0]); in test_core_size() 48 out->ptr_sz = bpf_core_field_size(in->ptr_field); in test_core_size() 49 out->enum_sz = bpf_core_field_size(in->enum_field); in test_core_size() 50 out->float_sz = bpf_core_field_size(in->float_field); in test_core_size()
|
D | test_core_reloc_ints.c | 13 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()
|
D | test_core_reloc_kernel.c | 14 char out[256]; member 39 struct core_reloc_kernel_output *out = (void *)&data.out; in test_core_kernel() local 52 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel() 55 out->valid[1] = BPF_CORE_READ(task, in test_core_kernel() 57 out->valid[2] = BPF_CORE_READ(task, in test_core_kernel() 60 out->valid[3] = BPF_CORE_READ(task, in test_core_kernel() 63 out->valid[4] = BPF_CORE_READ(task, in test_core_kernel() 66 out->valid[5] = BPF_CORE_READ(task, in test_core_kernel() 70 out->valid[6] = BPF_CORE_READ(task, in test_core_kernel() 74 out->valid[7] = BPF_CORE_READ(task, in test_core_kernel() [all …]
|
D | test_core_reloc_mods.c | 13 char out[256]; member 51 struct core_reloc_mods_output *out = (void *)&data.out; in test_core_mods() local 53 if (CORE_READ(&out->a, &in->a) || in test_core_mods() 54 CORE_READ(&out->b, &in->b) || in test_core_mods() 55 CORE_READ(&out->c, &in->c) || in test_core_mods() 56 CORE_READ(&out->d, &in->d) || in test_core_mods() 57 CORE_READ(&out->e, &in->e[2]) || in test_core_mods() 58 CORE_READ(&out->f, &in->f[1]) || in test_core_mods() 59 CORE_READ(&out->g, &in->g.x) || in test_core_mods() 60 CORE_READ(&out->h, &in->h.y)) in test_core_mods()
|
D | test_core_reloc_bitfields_probed.c | 13 char out[256]; member 44 struct core_reloc_bitfields_output *out = (void *)&data.out; in test_core_bitfields() local 47 out->ub1 = BPF_CORE_READ_BITFIELD_PROBED(in, ub1); in test_core_bitfields() 48 out->ub2 = BPF_CORE_READ_BITFIELD_PROBED(in, ub2); in test_core_bitfields() 49 out->ub7 = BPF_CORE_READ_BITFIELD_PROBED(in, ub7); in test_core_bitfields() 50 out->sb4 = BPF_CORE_READ_BITFIELD_PROBED(in, sb4); in test_core_bitfields() 51 out->sb20 = BPF_CORE_READ_BITFIELD_PROBED(in, sb20); in test_core_bitfields() 52 out->u32 = BPF_CORE_READ_BITFIELD_PROBED(in, u32); in test_core_bitfields() 53 out->s32 = BPF_CORE_READ_BITFIELD_PROBED(in, s32); in test_core_bitfields()
|
D | test_core_reloc_bitfields_direct.c | 13 char out[256]; member 51 struct core_reloc_bitfields_output *out = (void *)&data.out; in test_core_bitfields_direct() local 53 out->ub1 = BPF_CORE_READ_BITFIELD(in, ub1); in test_core_bitfields_direct() 54 out->ub2 = BPF_CORE_READ_BITFIELD(in, ub2); in test_core_bitfields_direct() 55 out->ub7 = BPF_CORE_READ_BITFIELD(in, ub7); in test_core_bitfields_direct() 56 out->sb4 = BPF_CORE_READ_BITFIELD(in, sb4); in test_core_bitfields_direct() 57 out->sb20 = BPF_CORE_READ_BITFIELD(in, sb20); in test_core_bitfields_direct() 58 out->u32 = BPF_CORE_READ_BITFIELD(in, u32); in test_core_bitfields_direct() 59 out->s32 = BPF_CORE_READ_BITFIELD(in, s32); in test_core_bitfields_direct()
|
D | test_core_reloc_primitives.c | 13 char out[256]; member 35 struct core_reloc_primitives *out = (void *)&data.out; in test_core_primitives() local 37 if (CORE_READ(&out->a, &in->a) || in test_core_primitives() 38 CORE_READ(&out->b, &in->b) || in test_core_primitives() 39 CORE_READ(&out->c, &in->c) || in test_core_primitives() 40 CORE_READ(&out->d, &in->d) || in test_core_primitives() 41 CORE_READ(&out->f, &in->f)) in test_core_primitives()
|
D | test_core_reloc_arrays.c | 13 char out[256]; member 43 struct core_reloc_arrays_output *out = (void *)&data.out; in test_core_arrays() local 45 if (CORE_READ(&out->a2, &in->a[2])) in test_core_arrays() 47 if (CORE_READ(&out->b123, &in->b[1][2][3])) in test_core_arrays() 49 if (CORE_READ(&out->c1c, &in->c[1].c)) in test_core_arrays() 51 if (CORE_READ(&out->d00d, &in->d[0][0].d)) in test_core_arrays() 53 if (CORE_READ(&out->f01c, &in->f[0][1].c)) in test_core_arrays()
|
D | test_core_autosize.c | 90 struct test_struct___samesize *out = (void *)&output_samesized; in handle_samesize() local 98 out->ptr = in->ptr; in handle_samesize() 99 out->val1 = in->val1; in handle_samesize() 100 out->val2 = in->val2; in handle_samesize() 101 out->val3 = in->val3; in handle_samesize() 102 out->val4 = in->val4; in handle_samesize() 111 struct test_struct___downsize *out = (void *)&output_downsized; in handle_downsize() local 119 out->ptr = in->ptr; in handle_downsize() 120 out->val1 = in->val1; in handle_downsize() 121 out->val2 = in->val2; in handle_downsize() [all …]
|
/tools/testing/selftests/openat2/ |
D | resolve_test.c | 118 } 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/testing/selftests/bpf/prog_tests/ |
D | tailcalls.c | 26 goto out; in test_tailcall_1() 30 goto out; in test_tailcall_1() 34 goto out; in test_tailcall_1() 38 goto out; in test_tailcall_1() 45 goto out; in test_tailcall_1() 49 goto out; in test_tailcall_1() 53 goto out; in test_tailcall_1() 64 goto out; in test_tailcall_1() 77 goto out; in test_tailcall_1() 81 goto out; in test_tailcall_1() [all …]
|
D | pinning.c | 50 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 …]
|
D | core_autosize.c | 49 } out; variable 170 err = bpf_map_lookup_elem(bpf_map__fd(bss_map), &zero, (void *)&out); 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 …]
|
D | test_bpffs.c | 36 goto out; in fn() 40 goto out; in fn() 44 goto out; in fn() 48 goto out; in fn() 52 goto out; in fn() 55 goto out; in fn() 59 goto out; in fn() 62 goto out; in fn() 66 goto out; in fn() 69 goto out; in fn() [all …]
|
D | xdp_bonding.c | 279 goto out; in test_xdp_bonding_with_mode() 282 goto out; in test_xdp_bonding_with_mode() 326 out: in test_xdp_bonding_with_mode() 342 goto out; in test_xdp_bonding_redirect_multi() 346 goto out; in test_xdp_bonding_redirect_multi() 354 goto out; in test_xdp_bonding_redirect_multi() 358 goto out; in test_xdp_bonding_redirect_multi() 364 goto out; in test_xdp_bonding_redirect_multi() 369 goto out; in test_xdp_bonding_redirect_multi() 377 out: in test_xdp_bonding_redirect_multi() [all …]
|
/tools/build/tests/ |
D | run.sh | 5 make -C ex V=1 clean > ex.out 2>&1 6 make -C ex V=1 >> ex.out 2>&1 14 rm -f ex.out 18 make -C ex V=1 clean > ex.out 2>&1 21 make -rR -C ex V=1 ex.o >> ex.out 2>&1 22 make -rR -C ex V=1 ex.i >> ex.out 2>&1 23 make -rR -C ex V=1 ex.s >> ex.out 2>&1 36 rm -f ex.out 40 make -C ex V=1 clean > ex.out 2>&1 44 make -C ex V=1 CFLAGS=-DINCLUDE >> ex.out 2>&1 [all …]
|
/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 44 goto out; in get_vm_area() 51 goto out; in get_vm_area() 62 goto out; in get_vm_area() 65 out: in get_vm_area() 83 goto out; in is_vmflag_set() 96 goto out; in is_vmflag_set() 99 out: in is_vmflag_set() 120 goto out; in get_value_for_name() 134 goto out; in get_value_for_name() 139 out: in get_value_for_name() [all …]
|
/tools/bpf/bpftool/ |
D | json_writer.c | 22 FILE *out; /* output file */ member 33 fputs(" ", self->out); in jsonw_indent() 42 putc('\n', self->out); in jsonw_eol() 50 putc(self->sep, self->out); in jsonw_eor() 59 putc('"', self->out); in jsonw_puts() 63 fputs("\\t", self->out); in jsonw_puts() 66 fputs("\\n", self->out); in jsonw_puts() 69 fputs("\\r", self->out); in jsonw_puts() 72 fputs("\\f", self->out); in jsonw_puts() 75 fputs("\\b", self->out); in jsonw_puts() [all …]
|