| /tools/lib/bpf/ |
| A D | btf_dump.c | 143 d->printf_fn(d->cb_ctx, fmt, args); in btf_dump_printf() 165 if (!d) in btf_dump__new() 168 d->btf = btf; in btf_dump__new() 190 return d; in btf_dump__new() 260 free(d); in btf_dump__free() 387 if (d->emit_queue_cnt >= d->emit_queue_cap) { in btf_dump_add_emit_queue_id() 396 d->emit_queue[d->emit_queue_cnt++] = id; in btf_dump_add_emit_queue_id() 1216 if (d->decl_stack_cnt >= d->decl_stack_cap) { in btf_dump_push_decl_stack_id() 1225 d->decl_stack[d->decl_stack_cnt++] = id; in btf_dump_push_decl_stack_id() 1965 double d; member [all …]
|
| A D | btf.c | 3675 if (d->hypot_cnt == d->hypot_cap) { in btf_dedup_hypot_map_add() 3684 d->hypot_list[d->hypot_cnt++] = from_id; in btf_dedup_hypot_map_add() 3713 free(d); in btf_dedup_free() 3737 if (!d) in btf_dedup_new() 3785 return d; in btf_dedup_new() 3893 d->btf->strs_set = d->strs_set; in btf_dedup_strings() 5273 d->btf->type_offs[next_type_id - d->btf->start_id] = p - d->btf->types_data; in btf_dedup_compact_types() 5280 d->btf->type_offs_cap = d->btf->nr_types; in btf_dedup_compact_types() 5281 d->btf->hdr->type_len = p - d->btf->types_data; in btf_dedup_compact_types() 5287 d->btf->hdr->str_off = d->btf->hdr->type_len; in btf_dedup_compact_types() [all …]
|
| /tools/perf/util/ |
| A D | dlfilter.c | 152 if (!d->ctx_valid && !d->in_start && !d->in_stop) in dlfilter__args() 385 memset(d, 0, sizeof(*d)); in dlfilter__init() 401 d->handle = dlopen(d->file, RTLD_NOW); in dlfilter__open() 406 d->start = dlsym(d->handle, "start"); in dlfilter__open() 409 d->stop = dlsym(d->handle, "stop"); in dlfilter__open() 423 struct dlfilter *d = malloc(sizeof(*d)); in dlfilter__new() local 459 ret = d->start(&d->data, d); in dlfilter__start() 469 if (d && d->stop) { in dlfilter__stop() 473 ret = d->stop(d->data, d); in dlfilter__stop() 572 ret = d->filter_event_early(d->data, &d_sample, d); in dlfilter__do_filter_event() [all …]
|
| A D | genelf.c | 79 Elf_Data *d; in jit_add_eh_frame_info() local 94 if (!d) { in jit_add_eh_frame_info() 99 d->d_align = 8; in jit_add_eh_frame_info() 100 d->d_off = 0LL; in jit_add_eh_frame_info() 128 if (!d) { in jit_add_eh_frame_info() 169 Elf_Data *d; in jit_write_elf() local 230 if (!d) { in jit_write_elf() 277 if (!d) { in jit_write_elf() 313 if (!d) { in jit_write_elf() 356 if (!d) { in jit_write_elf() [all …]
|
| A D | string.c | 312 if (!d) in strdup_esc() 360 if (!d) in strdup_esq() 367 d = ret; in strdup_esq() 369 d = strpbrk(d, "\\\"\'"); in strdup_esq() 370 if (!d) in strdup_esq() 373 if (*d == '"' || *d == '\'') { in strdup_esq() 383 memmove(d, d + 1, len); in strdup_esq() 384 d = remove_consumed_esc(d, len, quote); in strdup_esq() 387 memmove(d, d + 1, strlen(d + 1) + 1); in strdup_esq() 390 memmove(d, d + 1, strlen(d + 1) + 1); in strdup_esq() [all …]
|
| A D | sha1.c | 18 #define SHA1_ROUND(i, a, b, c, d, e) \ argument 26 e += (b & (c ^ d)) ^ d; \ 28 e += b ^ c ^ d; \ 30 e += (c & d) ^ (b & (c ^ d)); \ 37 SHA1_ROUND((i) + 0, a, b, c, d, e); \ 38 SHA1_ROUND((i) + 1, e, a, b, c, d); \ 39 SHA1_ROUND((i) + 2, d, e, a, b, c); \ 40 SHA1_ROUND((i) + 3, c, d, e, a, b); \ 41 SHA1_ROUND((i) + 4, b, c, d, e, a); \ 58 u32 d = h[3]; in sha1_blocks() local [all …]
|
| A D | dlfilter.h | 56 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()
|
| A D | util.c | 104 char *d = path; in mkdir_p() local 106 if (*d != '/') in mkdir_p() 112 while (*++d == '/'); in mkdir_p() 114 while ((d = strchr(d, '/'))) { in mkdir_p() 115 *d = '\0'; in mkdir_p() 117 *d++ = '/'; in mkdir_p() 120 while (*d == '/') in mkdir_p() 121 ++d; in mkdir_p() 161 struct dirent *d; in rm_rf_depth_pat() local 181 if (!strcmp(d->d_name, ".") || !strcmp(d->d_name, "..")) in rm_rf_depth_pat() [all …]
|
| /tools/testing/selftests/powerpc/include/ |
| A D | instructions.h | 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 121 #define PLWA(t, a, r, d) PREFIX_8LS(0xa4000000, t, a, r, d) argument 122 #define PLD(t, a, r, d) PREFIX_8LS(0xe4000000, t, a, r, d) argument 123 #define PLQ(t, a, r, d) PREFIX_8LS(0xe0000000, t, a, r, d) argument 127 #define PSTD(s, a, r, d) PREFIX_8LS(0xf4000000, s, a, r, d) argument 128 #define PSTQ(s, a, r, d) PREFIX_8LS(0xf0000000, s, a, r, d) argument 139 #define PLXV0(s, a, r, d) PREFIX_8LS(0xc8000000, s, a, r, d) argument [all …]
|
| /tools/hv/ |
| A D | lsvmbus | 78 d = VMBus_Dev() 80 d.vmbus_id = vmbus_id 81 d.class_id = class_id 82 d.device_id = device_id 83 d.dev_desc = dev_desc 85 if d.chn_vp_mapping: 91 vmbus_dev_list = sorted(vmbus_dev_list, key=lambda d: int(d.vmbus_id)) 99 print(('VMBUS ID ' + format0) % (d.vmbus_id, d.dev_desc)) 103 (d.vmbus_id, d.class_id, d.dev_desc, d.chn_vp_mapping) 109 d.vmbus_id, d.class_id, d.dev_desc, [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf_dump.c | 29 struct btf_dump *d; in btf_dump_all_types() local 44 btf_dump__free(d); in btf_dump_all_types() 131 struct btf_dump *d; member 141 btf_dump__free(t->d); in test_ctx__free() 884 struct btf_dump *d; member 966 struct btf_dump *d; in test_btf_dump_string_data() local 987 ctx.d = d; in test_btf_dump_string_data() 994 btf_dump__free(d); in test_btf_dump_string_data() 1028 struct btf_dump *d; in test_btf_dump_datasec_data() local 1042 btf_dump__free(d); in test_btf_dump_datasec_data() [all …]
|
| /tools/net/ynl/samples/ |
| A D | netdev.c | 24 if (!d->_present.ifindex) in netdev_print_device() 30 printf("[%d]\t", d->ifindex); in netdev_print_device() 32 if (!d->_present.xdp_features) in netdev_print_device() 37 if (d->xdp_features & (1U << i)) in netdev_print_device() 89 struct netdev_dev_get_rsp *d; in main() local 94 d = netdev_dev_get(ys, req); in main() 96 if (!d) in main() 99 netdev_print_device(d, 0); in main() 100 netdev_dev_get_rsp_free(d); in main() 108 ynl_dump_foreach(devs, d) in main() [all …]
|
| /tools/testing/selftests/proc/ |
| A D | read.c | 81 de = xreaddir(d); in f() 85 de = xreaddir(d); in f() 89 while ((de = xreaddir(d))) { in f() 99 f_reg_write(d, de->d_name, "h", 1); in f() 105 f_reg(d, de->d_name); in f() 119 f_lnk(d, de->d_name); in f() 129 DIR *d; in main() local 132 d = opendir("/proc"); in main() 133 if (!d) in main() 137 if (fstatfs(dirfd(d), &sfs) == -1) { in main() [all …]
|
| /tools/perf/tests/ |
| A D | time-utils-test.c | 84 if (strchr(d->str, '%')) in test__perf_time__parse_for_ranges() 86 d->first, d->last); in test__perf_time__parse_for_ranges() 95 if (range_size < d->num || range_num != d->num) { in test__perf_time__parse_for_ranges() 105 i, d->ptime[i].start, d->ptime[i].end); in test__perf_time__parse_for_ranges() 116 if (d->skip[i] && in test__perf_time__parse_for_ranges() 117 !perf_time__ranges_skip_sample(ptime, d->num, d->skip[i])) { in test__perf_time__parse_for_ranges() 121 if (d->noskip[i] && in test__perf_time__parse_for_ranges() 122 perf_time__ranges_skip_sample(ptime, d->num, d->noskip[i])) { in test__perf_time__parse_for_ranges() 160 struct test_data d = { in test__time_utils() local 175 struct test_data d = { in test__time_utils() local [all …]
|
| /tools/virtio/linux/ |
| A D | dma-mapping.h | 16 #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 30 #define dma_unmap_single(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0) argument 31 #define dma_unmap_page(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0) argument 36 #define dma_unmap_single_attrs(d, a, s, r, t) do { \ argument 37 (void)(d); (void)(a); (void)(s); (void)(r); (void)(t); \ 39 #define dma_sync_single_range_for_cpu(d, a, o, s, r) do { \ argument 40 (void)(d); (void)(a); (void)(o); (void)(s); (void)(r); \ [all …]
|
| /tools/perf/arch/x86/tests/ |
| A D | intel-pt-test.c | 213 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed() 219 decoding_failed(d); in fail() 221 if (len != d->len) in fail() 223 d->len, len); in fail() 253 decoding_failed(d); in test_ctx_unchanged() 270 ret = intel_pt_get_packet(d->bytes, d->len, &packet, &ctx); in test_one() 293 if (ret != d->len || packet.type != d->packet.type || in test_one() 295 packet.payload != d->packet.payload || ctx != d->new_ctx) in test_one() 299 ret = dump_packet(&d->packet, d->bytes, d->len); in test_one() 313 for (d = data; d->len; d++) { in test__intel_pt_pkt_decoder() [all …]
|
| /tools/crypto/ccp/ |
| A D | test_dbc.py | 35 self.d = None 41 self.d = open(DEVICE_NODE) 45 if self.d: 46 self.d.close() 61 get_nonce(self.d, None) 132 get_nonce(self.d, None) 137 get_nonce(self.d, None) 141 get_nonce(self.d, None) 143 get_nonce(self.d, self.signature) 148 get_nonce(self.d, None) [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | sockmap_verdict_prog.c | 41 __u8 *d = data; in bpf_prog2() local 50 map = d[0]; in bpf_prog2() 51 sk = d[1]; in bpf_prog2() 53 d[0] = 0xd; in bpf_prog2() 54 d[1] = 0xe; in bpf_prog2() 55 d[2] = 0xa; in bpf_prog2() 56 d[3] = 0xd; in bpf_prog2() 57 d[4] = 0xb; in bpf_prog2() 58 d[5] = 0xe; in bpf_prog2() 59 d[6] = 0xe; in bpf_prog2() [all …]
|
| A D | test_siphash.h | 14 #define SIPHASH_PERMUTATION(a, b, c, d) ( \ argument 16 (c) += (d), (d) = rol64((d), 16), (d) ^= (c), \ 17 (a) += (d), (d) = rol64((d), 21), (d) ^= (a), \
|
| A D | tracing_struct_many_args.c | 15 long d; member 23 int BPF_PROG2(test_struct_many_args_1, __u64, a, void *, b, short, c, int, d, in BPF_PROG2() argument 29 t7_d = d; in BPF_PROG2() 37 int BPF_PROG2(test_struct_many_args_2, __u64, a, void *, b, short, c, int, d, in BPF_PROG2() argument 45 int BPF_PROG2(test_struct_many_args_3, __u64, a, void *, b, short, c, int, d, in BPF_PROG2() argument 51 t8_d = d; in BPF_PROG2() 60 int BPF_PROG2(test_struct_many_args_4, __u64, a, void *, b, short, c, int, d, in BPF_PROG2() argument 69 int BPF_PROG2(test_struct_many_args_5, __u64, a, void *, b, short, c, int, d, void *, e, in BPF_PROG2() argument 75 t9_d = d; in BPF_PROG2() 82 t9_h_d = h.d; in BPF_PROG2() [all …]
|
| /tools/bpf/bpftool/ |
| A D | btf_dumper.c | 129 if (d->is_plain_text) in btf_dumper_ptr() 174 jsonw_string(d->jw, in btf_dumper_enum() 181 jsonw_int(d->jw, value); in btf_dumper_enum() 200 jsonw_string(d->jw, in btf_dumper_enum64() 207 jsonw_int(d->jw, value); in btf_dumper_enum64() 273 jsonw_end_array(d->jw); in btf_dumper_array() 493 jsonw_name(d->jw, btf__name_by_offset(d->btf, m[i].name_off)); in btf_dumper_struct() 498 data_off, d->jw, d->is_plain_text); in btf_dumper_struct() 520 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var() 542 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec() [all …]
|
| /tools/testing/selftests/ftrace/test.d/00basic/ |
| A D | test_ownership.tc | 59 …for d in "." "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable… 60 test "$d" $other_group 65 …for d in "." "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary… 66 test "$d" $other_group 71 for d in "." "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do 72 test "$d" $other_group 77 for d in "." "events/sched/sched_switch/enable" $canary; do 78 test "$d" $other_group 83 for d in "." $canary; do 84 test "$d" $other_group [all …]
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | functions.sh | 134 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/testing/selftests/sync/ |
| A D | sync_fence.c | 78 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/perf/dlfilters/ |
| A D | dlfilter-test-api-v0.c | 151 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() 188 .ip = d->ip, in check_sample() 192 .addr = d->addr, in check_sample() 311 CHECK(!d->filter_cnt); in do_checks() 313 CHECK(d->do_early != 2); in do_checks() 314 d->filter_cnt += 1; in do_checks() [all …]
|