Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 209) sorted by relevance

123456789

/tools/lib/bpf/
Dbtf_dump.c104 static const char *btf_name_of(const struct btf_dump *d, __u32 name_off) in btf_name_of() argument
106 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
109 static void btf_dump_printf(const struct btf_dump *d, const char *fmt, ...) in btf_dump_printf() argument
114 d->printf_fn(d->opts.ctx, fmt, args); in btf_dump_printf()
118 static int btf_dump_mark_referenced(struct btf_dump *d);
119 static int btf_dump_resize(struct btf_dump *d);
126 struct btf_dump *d; in btf_dump__new() local
129 d = calloc(1, sizeof(struct btf_dump)); in btf_dump__new()
130 if (!d) in btf_dump__new()
133 d->btf = btf; in btf_dump__new()
[all …]
Dbpf_core_read.h238 #define ___last5(a, b, c, d, x) x argument
239 #define ___last6(a, b, c, d, e, x) x argument
240 #define ___last7(a, b, c, d, e, f, x) x argument
241 #define ___last8(a, b, c, d, e, f, g, x) x argument
242 #define ___last9(a, b, c, d, e, f, g, h, x) x argument
243 #define ___last10(a, b, c, d, e, f, g, h, i, x) x argument
249 #define ___nolast5(a, b, c, d, _) a, b, c, d argument
250 #define ___nolast6(a, b, c, d, e, _) a, b, c, d, e argument
251 #define ___nolast7(a, b, c, d, e, f, _) a, b, c, d, e, f argument
252 #define ___nolast8(a, b, c, d, e, f, g, _) a, b, c, d, e, f, g argument
[all …]
Dbtf.c2651 static void btf_dedup_free(struct btf_dedup *d);
2652 static int btf_dedup_strings(struct btf_dedup *d);
2653 static int btf_dedup_prim_types(struct btf_dedup *d);
2654 static int btf_dedup_struct_types(struct btf_dedup *d);
2655 static int btf_dedup_ref_types(struct btf_dedup *d);
2656 static int btf_dedup_compact_types(struct btf_dedup *d);
2657 static int btf_dedup_remap_types(struct btf_dedup *d);
2799 struct btf_dedup *d = btf_dedup_new(btf, btf_ext, opts); in btf__dedup() local
2802 if (IS_ERR(d)) { in btf__dedup()
2803 pr_debug("btf_dedup_new failed: %ld", PTR_ERR(d)); in btf__dedup()
[all …]
/tools/testing/selftests/powerpc/include/
Dinstructions.h98 #define PREFIX_MLS(instr, t, a, r, d) stringify_in_c(.balign 64, , 4;) \ argument
101 (((d) >> 16) & 0x3ffff);) \
105 ((d) & 0xffff);\n)
107 #define PREFIX_8LS(instr, t, a, r, d) stringify_in_c(.balign 64, , 4;) \ argument
110 (((d) >> 16) & 0x3ffff);) \
114 ((d) & 0xffff);\n)
117 #define PLBZ(t, a, r, d) PREFIX_MLS(PPC_INST_LBZ, t, a, r, d) argument
118 #define PLHZ(t, a, r, d) PREFIX_MLS(PPC_INST_LHZ, t, a, r, d) argument
119 #define PLHA(t, a, r, d) PREFIX_MLS(PPC_INST_LHA, t, a, r, d) argument
120 #define PLWZ(t, a, r, d) PREFIX_MLS(PPC_INST_LWZ, t, a, r, d) argument
[all …]
/tools/hv/
Dlsvmbus78 d = VMBus_Dev()
79 d.sysfs_path = '%s/%s' % (vmbus_sys_path, f)
80 d.vmbus_id = vmbus_id
81 d.class_id = class_id
82 d.device_id = device_id
83 d.dev_desc = dev_desc
84 d.chn_vp_mapping = '\n'.join(chn_vp_mapping)
85 if d.chn_vp_mapping:
86 d.chn_vp_mapping += '\n'
88 vmbus_dev_list.append(d)
[all …]
/tools/perf/arch/x86/tests/
Dintel-pt-pkt-decoder-test.c193 static void decoding_failed(struct test_data *d) in decoding_failed() argument
197 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
200 static int fail(struct test_data *d, struct intel_pt_pkt *packet, int len, in fail() argument
203 decoding_failed(d); in fail()
205 if (len != d->len) in fail()
207 d->len, len); in fail()
209 if (packet->type != d->packet.type) in fail()
211 d->packet.type, packet->type); in fail()
213 if (packet->count != d->packet.count) in fail()
215 d->packet.count, packet->count); in fail()
[all …]
/tools/perf/util/
Dgenelf.c161 Elf_Data *d; in jit_add_eh_frame_info() local
175 d = elf_newdata(scn); in jit_add_eh_frame_info()
176 if (!d) { in jit_add_eh_frame_info()
181 d->d_align = 8; in jit_add_eh_frame_info()
182 d->d_off = 0LL; in jit_add_eh_frame_info()
183 d->d_buf = unwinding; in jit_add_eh_frame_info()
184 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info()
185 d->d_size = unwinding_table_size; in jit_add_eh_frame_info()
186 d->d_version = EV_CURRENT; in jit_add_eh_frame_info()
209 d = elf_newdata(scn); in jit_add_eh_frame_info()
[all …]
Dutil.c95 char *d = path; in mkdir_p() local
97 if (*d != '/') in mkdir_p()
103 while (*++d == '/'); in mkdir_p()
105 while ((d = strchr(d, '/'))) { in mkdir_p()
106 *d = '\0'; in mkdir_p()
108 *d++ = '/'; in mkdir_p()
111 while (*d == '/') in mkdir_p()
112 ++d; in mkdir_p()
152 struct dirent *d; in rm_rf_depth_pat() local
170 while ((d = readdir(dir)) != NULL && !ret) { in rm_rf_depth_pat()
[all …]
Dgenelf_debug.c486 Elf_Data *d; in jit_add_debug_info() local
508 d = elf_newdata(scn); in jit_add_debug_info()
509 if (!d) { in jit_add_debug_info()
514 d->d_align = 1; in jit_add_debug_info()
515 d->d_off = 0LL; in jit_add_debug_info()
516 d->d_buf = buffer_ext_addr(&dl); in jit_add_debug_info()
517 d->d_type = ELF_T_BYTE; in jit_add_debug_info()
518 d->d_size = buffer_ext_size(&dl); in jit_add_debug_info()
519 d->d_version = EV_CURRENT; in jit_add_debug_info()
542 d = elf_newdata(scn); in jit_add_debug_info()
[all …]
/tools/testing/selftests/proc/
Dread.c38 static void f_reg(DIR *d, const char *filename) in f_reg() argument
45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
53 static void f_reg_write(DIR *d, const char *filename, const char *buf, size_t len) in f_reg_write() argument
58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
66 static void f_lnk(DIR *d, const char *filename) in f_lnk() argument
71 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk()
75 static void f(DIR *d, unsigned int level) in f() argument
79 de = xreaddir(d); in f()
83 de = xreaddir(d); in f()
87 while ((de = xreaddir(d))) { in f()
[all …]
/tools/perf/tests/
Dtime-utils-test.c70 static bool test__perf_time__parse_for_ranges(struct test_data *d) in test__perf_time__parse_for_ranges() argument
73 .first_sample_time = d->first, in test__perf_time__parse_for_ranges()
74 .last_sample_time = d->last, in test__perf_time__parse_for_ranges()
82 pr_debug("\nperf_time__parse_for_ranges(\"%s\")\n", d->str); in test__perf_time__parse_for_ranges()
84 if (strchr(d->str, '%')) in test__perf_time__parse_for_ranges()
86 d->first, d->last); in test__perf_time__parse_for_ranges()
88 err = perf_time__parse_for_ranges(d->str, &session, &ptime, &range_size, in test__perf_time__parse_for_ranges()
95 if (range_size < d->num || range_num != d->num) { in test__perf_time__parse_for_ranges()
97 range_size, range_num, d->num); in test__perf_time__parse_for_ranges()
101 for (i = 0; i < d->num; i++) { in test__perf_time__parse_for_ranges()
[all …]
/tools/include/linux/
Doverflow.h49 #define check_add_overflow(a, b, d) ({ \ argument
52 typeof(d) __d = (d); \
58 #define check_sub_overflow(a, b, d) ({ \ argument
61 typeof(d) __d = (d); \
67 #define check_mul_overflow(a, b, d) ({ \ argument
70 typeof(d) __d = (d); \
80 #define __unsigned_add_overflow(a, b, d) ({ \ argument
83 typeof(d) __d = (d); \
89 #define __unsigned_sub_overflow(a, b, d) ({ \ argument
92 typeof(d) __d = (d); \
[all …]
/tools/testing/selftests/bpf/progs/
Dsockmap_verdict_prog.c42 __u8 *d = data; in bpf_prog2() local
48 map = d[0]; in bpf_prog2()
49 sk = d[1]; in bpf_prog2()
51 d[0] = 0xd; in bpf_prog2()
52 d[1] = 0xe; in bpf_prog2()
53 d[2] = 0xa; in bpf_prog2()
54 d[3] = 0xd; in bpf_prog2()
55 d[4] = 0xb; in bpf_prog2()
56 d[5] = 0xe; in bpf_prog2()
57 d[6] = 0xe; in bpf_prog2()
[all …]
Dsockmap_tcp_msg_prog.c14 char *d; in bpf_prog1() local
20 d = (char *)data; in bpf_prog1()
21 bpf_printk("hello sendmsg hook %i %i\n", d[0], d[1]); in bpf_prog1()
Dfentry_test.c35 int BPF_PROG(test4, void *a, char b, int c, __u64 d) in BPF_PROG() argument
37 test4_result = a == (void *)7 && b == 8 && c == 9 && d == 10; in BPF_PROG()
43 int BPF_PROG(test5, __u64 a, void *b, short c, int d, __u64 e) in BPF_PROG() argument
45 test5_result = a == 11 && b == (void *)12 && c == 13 && d == 14 && in BPF_PROG()
52 int BPF_PROG(test6, __u64 a, void *b, short c, int d, void * e, __u64 f) in BPF_PROG() argument
54 test6_result = a == 16 && b == (void *)17 && c == 18 && d == 19 && in BPF_PROG()
Dfexit_test.c35 int BPF_PROG(test4, void *a, char b, int c, __u64 d, int ret) in BPF_PROG() argument
37 test4_result = a == (void *)7 && b == 8 && c == 9 && d == 10 && in BPF_PROG()
44 int BPF_PROG(test5, __u64 a, void *b, short c, int d, __u64 e, int ret) in BPF_PROG() argument
46 test5_result = a == 11 && b == (void *)12 && c == 13 && d == 14 && in BPF_PROG()
53 int BPF_PROG(test6, __u64 a, void *b, short c, int d, void *e, __u64 f, int ret) in BPF_PROG() argument
55 test6_result = a == 16 && b == (void *)17 && c == 18 && d == 19 && in BPF_PROG()
/tools/bpf/bpftool/
Dbtf_dumper.c24 static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id,
31 static int dump_prog_id_as_func_ptr(const struct btf_dumper *d, in dump_prog_id_as_func_ptr() argument
45 func_sig_len = btf_dump_func(d->btf, prog_str, func_proto, NULL, 0, in dump_prog_id_as_func_ptr()
91 jsonw_string(d->jw, prog_str); in dump_prog_id_as_func_ptr()
97 static void btf_dumper_ptr(const struct btf_dumper *d, in btf_dumper_ptr() argument
105 if (!d->prog_id_as_func_ptr || value > UINT32_MAX) in btf_dumper_ptr()
108 ptr_type_id = btf__resolve_type(d->btf, t->type); in btf_dumper_ptr()
111 ptr_type = btf__type_by_id(d->btf, ptr_type_id); in btf_dumper_ptr()
115 if (!dump_prog_id_as_func_ptr(d, ptr_type, value)) in btf_dumper_ptr()
119 if (d->is_plain_text) in btf_dumper_ptr()
[all …]
/tools/lib/lockdep/tests/
DABCDBDDA.c7 pthread_mutex_t a, b, c, d; in main() local
12 pthread_mutex_init(&d, NULL); in main()
15 LOCK_UNLOCK_2(c, d); in main()
16 LOCK_UNLOCK_2(b, d); in main()
17 LOCK_UNLOCK_2(d, a); in main()
19 pthread_mutex_destroy(&d); in main()
DABCDBCDA.c7 pthread_mutex_t a, b, c, d; in main() local
12 pthread_mutex_init(&d, NULL); in main()
15 LOCK_UNLOCK_2(c, d); in main()
17 LOCK_UNLOCK_2(d, a); in main()
19 pthread_mutex_destroy(&d); in main()
DABBCCDDA.c7 pthread_mutex_t a, b, c, d; in main() local
12 pthread_mutex_init(&d, NULL); in main()
16 LOCK_UNLOCK_2(c, d); in main()
17 LOCK_UNLOCK_2(d, a); in main()
19 pthread_mutex_destroy(&d); in main()
/tools/testing/selftests/sync/
Dsync_fence.c78 int a, b, c, d, valid; in test_fence_one_timeline_merge() local
91 d = sync_merge("mergeFence", b, a); in test_fence_one_timeline_merge()
92 d = sync_merge("mergeFence", c, d); in test_fence_one_timeline_merge()
93 valid = sw_sync_fence_is_valid(d); in test_fence_one_timeline_merge()
110 ASSERT(sync_fence_count_with_status(d, FENCE_STATUS_ACTIVE) == 1, in test_fence_one_timeline_merge()
116 ASSERT(sync_fence_count_with_status(d, FENCE_STATUS_ACTIVE) == 1, in test_fence_one_timeline_merge()
122 ASSERT(sync_fence_count_with_status(d, FENCE_STATUS_ACTIVE) == 0 && in test_fence_one_timeline_merge()
123 sync_fence_count_with_status(d, FENCE_STATUS_SIGNALED) == 1, in test_fence_one_timeline_merge()
126 sw_sync_fence_destroy(d); in test_fence_one_timeline_merge()
/tools/testing/selftests/powerpc/math/
Dfpu_denormal.c21 volatile double d; in test_denormal_fpu() local
27 d = f; in test_denormal_fpu()
28 memcpy(&m64, (double *)&d, sizeof(d)); in test_denormal_fpu()
/tools/testing/selftests/net/forwarding/
Dsch_ets_tests.sh42 local d=$1; shift
54 local ratio=$(echo "scale=2; 100 * $d / $total" | bc -l)
84 local -a t0 t1 d
102 d=($(for ((i = 0; i < ${#streams[@]}; i++)); do
105 total=$(echo ${d[@]} | sed 's/ /+/g' | bc)
110 notraf_eval "band $stream" ${d[$i]} $total
112 strict_eval "band $stream" ${d[$i]} $total
120 ${d[0]} ${d[$i]}
/tools/perf/
Dbuiltin-diff.c84 #define data__for_each_file_start(i, d, s) \ argument
85 for (i = s, d = &data__files[s]; \
87 i++, d = &data__files[i])
89 #define data__for_each_file(i, d) data__for_each_file_start(i, d, 0) argument
90 #define data__for_each_file_new(i, d) data__for_each_file_start(i, d, 1) argument
512 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file() local
514 return d; in fmt_to_data_file()
518 get_pair_data(struct hist_entry *he, struct data__file *d) in get_pair_data() argument
524 if (pair->hists == d->hists) in get_pair_data()
534 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt() local
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c31 struct btf_dump *d; in btf_dump_all_types() local
34 d = btf_dump__new(btf, NULL, opts, btf_dump_printf); in btf_dump_all_types()
35 if (IS_ERR(d)) in btf_dump_all_types()
36 return PTR_ERR(d); in btf_dump_all_types()
39 err = btf_dump__dump_type(d, id); in btf_dump_all_types()
45 btf_dump__free(d); in btf_dump_all_types()
139 struct btf_dump *d = NULL; in test_btf_dump_incremental() local
150 d = btf_dump__new(btf, NULL, &opts, btf_dump_printf); in test_btf_dump_incremental()
151 if (!ASSERT_OK(libbpf_get_error(d), "btf_dump__new")) in test_btf_dump_incremental()
175 err = btf_dump__dump_type(d, i); in test_btf_dump_incremental()
[all …]

123456789