Home
last modified time | relevance | path

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

12345678

/tools/lib/bpf/
Dbtf_dump.c105 static const char *btf_name_of(const struct btf_dump *d, __u32 name_off) in btf_name_of() argument
107 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
110 static void btf_dump_printf(const struct btf_dump *d, const char *fmt, ...) in btf_dump_printf() argument
115 d->printf_fn(d->opts.ctx, fmt, args); in btf_dump_printf()
124 struct btf_dump *d; in btf_dump__new() local
127 d = calloc(1, sizeof(struct btf_dump)); in btf_dump__new()
128 if (!d) in btf_dump__new()
131 d->btf = btf; in btf_dump__new()
132 d->btf_ext = btf_ext; in btf_dump__new()
133 d->printf_fn = printf_fn; in btf_dump__new()
[all …]
Dbtf.c1078 static void btf_dedup_free(struct btf_dedup *d);
1079 static int btf_dedup_strings(struct btf_dedup *d);
1080 static int btf_dedup_prim_types(struct btf_dedup *d);
1081 static int btf_dedup_struct_types(struct btf_dedup *d);
1082 static int btf_dedup_ref_types(struct btf_dedup *d);
1083 static int btf_dedup_compact_types(struct btf_dedup *d);
1084 static int btf_dedup_remap_types(struct btf_dedup *d);
1226 struct btf_dedup *d = btf_dedup_new(btf, btf_ext, opts); in btf__dedup() local
1229 if (IS_ERR(d)) { in btf__dedup()
1230 pr_debug("btf_dedup_new failed: %ld", PTR_ERR(d)); in btf__dedup()
[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.c162 Elf_Data *d; in jit_add_eh_frame_info() local
176 d = elf_newdata(scn); in jit_add_eh_frame_info()
177 if (!d) { in jit_add_eh_frame_info()
182 d->d_align = 8; in jit_add_eh_frame_info()
183 d->d_off = 0LL; in jit_add_eh_frame_info()
184 d->d_buf = unwinding; in jit_add_eh_frame_info()
185 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info()
186 d->d_size = unwinding_table_size; in jit_add_eh_frame_info()
187 d->d_version = EV_CURRENT; in jit_add_eh_frame_info()
210 d = elf_newdata(scn); in jit_add_eh_frame_info()
[all …]
Dutil.c77 char *d = path; in mkdir_p() local
79 if (*d != '/') in mkdir_p()
85 while (*++d == '/'); in mkdir_p()
87 while ((d = strchr(d, '/'))) { in mkdir_p()
88 *d = '\0'; in mkdir_p()
90 *d++ = '/'; in mkdir_p()
93 while (*d == '/') in mkdir_p()
94 ++d; in mkdir_p()
134 struct dirent *d; in rm_rf_depth_pat() local
152 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 …]
Dfd-001-lookup.c109 DIR *d; in main() local
111 d = opendir("/proc/self/fd"); in main()
112 if (!d) in main()
115 de = xreaddir(d); in main()
119 de = xreaddir(d); in main()
123 de = xreaddir(d); in main()
136 if (fd == dirfd(d)) in main()
141 closedir(d); in main()
/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 …]
Dcore_reloc_types.h325 int d; member
332 struct core_reloc_arrays_substruct d[1][2]; member
340 struct core_reloc_arrays_substruct d[2][3]; member
354 int d; member
356 } d[1][2]; member
363 struct core_reloc_arrays_substruct d[1][2]; member
370 struct core_reloc_arrays_substruct d[1][2]; member
377 struct core_reloc_arrays_substruct d[1][2]; member
384 struct core_reloc_arrays_substruct d[1][2]; member
391 struct core_reloc_arrays_substruct d[1][2]; member
[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()
Dtest_core_reloc_arrays.c24 int d; member
31 struct core_reloc_arrays_substruct d[1][2]; member
50 if (BPF_CORE_READ(&out->d00d, &in->d[0][0].d)) in test_core_arrays()
/tools/bpf/bpftool/
Dbtf_dumper.c22 static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id,
34 static int btf_dumper_modifier(const struct btf_dumper *d, __u32 type_id, in btf_dumper_modifier() argument
39 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier()
43 return btf_dumper_do_type(d, actual_type_id, bit_offset, data); in btf_dumper_modifier()
51 static int btf_dumper_array(const struct btf_dumper *d, __u32 type_id, in btf_dumper_array() argument
54 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array()
60 elem_size = btf__resolve_size(d->btf, arr->type); in btf_dumper_array()
64 jsonw_start_array(d->jw); in btf_dumper_array()
66 ret = btf_dumper_do_type(d, arr->type, 0, in btf_dumper_array()
72 jsonw_end_array(d->jw); in btf_dumper_array()
[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()
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()
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()
/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/ftrace/test.d/
Dfunctions22 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["`
23 file=`echo $line | cut -f1 -d:`
28 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["`
29 file=`echo $line | cut -f1 -d:`
35 if [ -d events/synthetic ]; then
44 echo 0 > `echo $line | cut -f1 -d:`
54 tr=`echo $t | cut -d: -f2`
61 name=`echo $t | cut -d: -f1 | cut -d' ' -f1`
63 tr=`echo $t | cut -d: -f2-4`
64 limit=`echo $t | cut -d: -f5`
[all …]
/tools/perf/
Dbuiltin-diff.c78 #define data__for_each_file_start(i, d, s) \ argument
79 for (i = s, d = &data__files[s]; \
81 i++, d = &data__files[i])
83 #define data__for_each_file(i, d) data__for_each_file_start(i, d, 0) argument
84 #define data__for_each_file_new(i, d) data__for_each_file_start(i, d, 1) argument
484 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file() local
486 return d; in fmt_to_data_file()
490 get_pair_data(struct hist_entry *he, struct data__file *d) in get_pair_data() argument
496 if (pair->hists == d->hists) in get_pair_data()
506 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt() local
[all …]
/tools/virtio/linux/
Ddma-mapping.h16 #define dma_alloc_coherent(d, s, hp, f) ({ \ argument
22 #define dma_free_coherent(d, s, p, h) kfree(p) argument
24 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) argument
26 #define dma_map_single(d, p, s, dir) (virt_to_phys(p)) argument
/tools/testing/selftests/powerpc/dscr/
Ddscr_default_test.c24 unsigned long d, cur_dscr, cur_dscr_usr; in do_test() local
32 d = dscr; in do_test()
42 if (cur_dscr != d) { in do_test()
44 "but is %ld\n", thread, d, cur_dscr); in do_test()
49 if (cur_dscr_usr != d) { in do_test()
51 "but is %ld\n", thread, d, cur_dscr_usr); in do_test()
/tools/perf/arch/x86/util/
Dheader.c15 unsigned int *d) in cpuid() argument
22 "=d" (*d) in cpuid()
29 unsigned int a, b, c, d, lvl; in __get_cpuid() local
34 cpuid(0, &lvl, &b, &c, &d); in __get_cpuid()
36 strncpy(&vendor[4], (char *)(&d), 4); in __get_cpuid()
41 cpuid(1, &a, &b, &c, &d); in __get_cpuid()

12345678