Home
last modified time | relevance | path

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

12345678910

/tools/lib/bpf/
Dbtf_dump.c131 static const char *btf_name_of(const struct btf_dump *d, __u32 name_off) in btf_name_of() argument
133 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
136 static void btf_dump_printf(const struct btf_dump *d, const char *fmt, ...) in btf_dump_printf() argument
141 d->printf_fn(d->opts.ctx, fmt, args); in btf_dump_printf()
145 static int btf_dump_mark_referenced(struct btf_dump *d);
146 static int btf_dump_resize(struct btf_dump *d);
153 struct btf_dump *d; in btf_dump__new() local
156 d = calloc(1, sizeof(struct btf_dump)); in btf_dump__new()
157 if (!d) in btf_dump__new()
160 d->btf = btf; in btf_dump__new()
[all …]
Dbtf.c2779 static void btf_dedup_free(struct btf_dedup *d);
2780 static int btf_dedup_prep(struct btf_dedup *d);
2781 static int btf_dedup_strings(struct btf_dedup *d);
2782 static int btf_dedup_prim_types(struct btf_dedup *d);
2783 static int btf_dedup_struct_types(struct btf_dedup *d);
2784 static int btf_dedup_ref_types(struct btf_dedup *d);
2785 static int btf_dedup_compact_types(struct btf_dedup *d);
2786 static int btf_dedup_remap_types(struct btf_dedup *d);
2928 struct btf_dedup *d = btf_dedup_new(btf, btf_ext, opts); in btf__dedup() local
2931 if (IS_ERR(d)) { in btf__dedup()
[all …]
Dbpf_core_read.h243 #define ___last5(a, b, c, d, x) x argument
244 #define ___last6(a, b, c, d, e, x) x argument
245 #define ___last7(a, b, c, d, e, f, x) x argument
246 #define ___last8(a, b, c, d, e, f, g, x) x argument
247 #define ___last9(a, b, c, d, e, f, g, h, x) x argument
248 #define ___last10(a, b, c, d, e, f, g, h, i, x) x argument
254 #define ___nolast5(a, b, c, d, _) a, b, c, d argument
255 #define ___nolast6(a, b, c, d, e, _) a, b, c, d, e argument
256 #define ___nolast7(a, b, c, d, e, f, _) a, b, c, d, e, f argument
257 #define ___nolast8(a, b, c, d, e, f, g, _) a, b, c, d, e, f, g argument
[all …]
/tools/perf/util/
Ddlfilter.c68 static struct addr_location *get_al(struct dlfilter *d) in get_al() argument
70 struct addr_location *al = d->al; in get_al()
72 if (!al->thread && machine__resolve(d->machine, al, d->sample) < 0) in get_al()
77 static struct thread *get_thread(struct dlfilter *d) in get_thread() argument
79 struct addr_location *al = get_al(d); in get_thread()
86 struct dlfilter *d = (struct dlfilter *)ctx; in dlfilter__resolve_ip() local
87 struct perf_dlfilter_al *d_al = d->d_ip_al; in dlfilter__resolve_ip()
90 if (!d->ctx_valid) in dlfilter__resolve_ip()
97 al = get_al(d); in dlfilter__resolve_ip()
103 d_al->is_kernel_ip = machine__kernel_ip(d->machine, d->sample->ip); in dlfilter__resolve_ip()
[all …]
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 …]
Ddlfilter.h56 int dlfilter__start(struct dlfilter *d, struct perf_session *session);
58 int dlfilter__do_filter_event(struct dlfilter *d,
67 void dlfilter__cleanup(struct dlfilter *d);
69 static inline int dlfilter__filter_event(struct dlfilter *d, in dlfilter__filter_event() argument
77 if (!d || !d->filter_event) in dlfilter__filter_event()
79 return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, false); in dlfilter__filter_event()
82 static inline int dlfilter__filter_event_early(struct dlfilter *d, in dlfilter__filter_event_early() argument
90 if (!d || !d->filter_event_early) in dlfilter__filter_event_early()
92 return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, true); in dlfilter__filter_event_early()
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/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/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 err = libbpf_get_error(d); in btf_dump_all_types()
40 err = btf_dump__dump_type(d, id); in btf_dump_all_types()
46 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()
214 err = btf_dump__dump_type(d, i); in test_btf_dump_incremental()
[all …]
/tools/perf/arch/x86/tests/
Dintel-pt-pkt-decoder-test.c201 static void decoding_failed(struct test_data *d) in decoding_failed() argument
205 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
208 static int fail(struct test_data *d, struct intel_pt_pkt *packet, int len, in fail() argument
211 decoding_failed(d); in fail()
213 if (len != d->len) in fail()
215 d->len, len); in fail()
217 if (packet->type != d->packet.type) in fail()
219 d->packet.type, packet->type); in fail()
221 if (packet->count != d->packet.count) in fail()
223 d->packet.count, packet->count); in fail()
[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()
55 static void f_reg_write(DIR *d, const char *filename, const char *buf, size_t len) in f_reg_write() argument
60 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
68 static void f_lnk(DIR *d, const char *filename) in f_lnk() argument
73 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk()
77 static void f(DIR *d, unsigned int level) in f() argument
81 de = xreaddir(d); in f()
85 de = xreaddir(d); in f()
89 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/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 …]
/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()
93 jsonw_string(d->jw, prog_str); in dump_prog_id_as_func_ptr()
99 static void btf_dumper_ptr(const struct btf_dumper *d, in btf_dumper_ptr() argument
107 if (!d->prog_id_as_func_ptr || value > UINT32_MAX) in btf_dumper_ptr()
110 ptr_type_id = btf__resolve_type(d->btf, t->type); in btf_dumper_ptr()
113 ptr_type = btf__type_by_id(d->btf, ptr_type_id); in btf_dumper_ptr()
117 if (!dump_prog_id_as_func_ptr(d, ptr_type, value)) in btf_dumper_ptr()
121 if (d->is_plain_text) in btf_dumper_ptr()
[all …]
/tools/testing/selftests/rcutorture/bin/
Dfunctions.sh134 printf "%dd %d:%02d:%02d\n", d, h, m, s
136 printf "%d:%02d:%02d\n", h, m, s
138 printf "%d:%02d.0\n", m, s
/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/perf/dlfilters/
Ddlfilter-test-api-v0.c151 struct filter_data *d; in start() local
159 d = calloc(1, sizeof(*d)); in start()
160 if (!d) in start()
162 filt_dat = d; in start()
163 *data = d; in start()
170 d->ip = strtoull(dlargv[2], NULL, 0); in start()
171 d->addr = strtoull(dlargv[3], NULL, 0); in start()
172 d->do_early = strtol(dlargv[4], NULL, 0); in start()
185 static int check_sample(struct filter_data *d, const struct perf_dlfilter_sample *sample) in check_sample() argument
188 .ip = d->ip, in check_sample()
[all …]
/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/include/linux/
Doverflow.h44 #define check_add_overflow(a, b, d) ({ \ argument
47 typeof(d) __d = (d); \
53 #define check_sub_overflow(a, b, d) ({ \ argument
56 typeof(d) __d = (d); \
62 #define check_mul_overflow(a, b, d) ({ \ argument
65 typeof(d) __d = (d); \
/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/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 …]

12345678910