/tools/bpf/bpftool/ |
D | pids.c | 31 struct obj_ref *ref; in add_ref() local 44 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref() 51 ref = &refs->refs[refs->ref_cnt]; in add_ref() 52 ref->pid = e->pid; in add_ref() 53 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 75 ref = &refs->refs[0]; in add_ref() 76 ref->pid = e->pid; in add_ref() 77 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 182 struct obj_ref *ref; in emit_obj_refs_json() local 197 ref = &refs->refs[i]; in emit_obj_refs_json() [all …]
|
D | main.c | 155 const char *ref; in detect_common_prefix() local 161 while ((ref = va_arg(ap, const char *))) { in detect_common_prefix() 162 if (!is_prefix(arg, ref)) in detect_common_prefix() 167 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
|
/tools/perf/util/ |
D | bpf-prologue.c | 250 struct probe_trace_arg_ref *ref = NULL; in gen_prologue_slowpath() local 279 ref = arg->ref; in gen_prologue_slowpath() 281 while (ref) { in gen_prologue_slowpath() 283 i, ref->offset); in gen_prologue_slowpath() 285 if (ref->user_access) in gen_prologue_slowpath() 289 ref->offset, probeid); in gen_prologue_slowpath() 295 ref = ref->next; in gen_prologue_slowpath() 301 if (ref) in gen_prologue_slowpath() 309 int insn_sz = (args[i].ref) ? argtype_to_ldx_size(args[i].type) : BPF_DW; in gen_prologue_slowpath() 404 struct probe_trace_arg_ref *ref = args[i].ref; in bpf__gen_prologue() local [all …]
|
D | expr.c | 83 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref() argument 94 name = strdup(ref->metric_name); in expr__add_ref() 115 data_ptr->ref.metric_name = ref->metric_name; in expr__add_ref() 116 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref() 117 data_ptr->ref.counted = false; in expr__add_ref() 126 ref->metric_name, ref->metric_expr); in expr__add_ref() 152 data->is_ref, data->ref.counted, data->val, id); in expr__resolve_id() 154 if (data->is_ref && !data->ref.counted) { in expr__resolve_id() 155 data->ref.counted = true; in expr__resolve_id() 157 if (expr__parse(&data->val, ctx, data->ref.metric_expr, 1)) { in expr__resolve_id()
|
D | thread-stack.c | 56 u64 ref; member 300 u64 timestamp, u64 ref, bool no_return) in thread_stack__call_return() argument 319 cr.call_ref = tse->ref; in thread_stack__call_return() 320 cr.return_ref = ref; in thread_stack__call_return() 782 u64 timestamp, u64 ref, struct call_path *cp, in thread_stack__push_cp() argument 800 tse->ref = ref; in thread_stack__push_cp() 814 u64 ret_addr, u64 timestamp, u64 ref, in thread_stack__pop_cp() argument 827 timestamp, ref, false); in thread_stack__pop_cp() 833 timestamp, ref, false); in thread_stack__pop_cp() 845 timestamp, ref, in thread_stack__pop_cp() [all …]
|
D | expr.h | 33 } ref; member 50 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref);
|
D | probe-finder.c | 157 struct probe_trace_arg_ref *ref; in alloc_trace_arg_ref() local 158 ref = zalloc(sizeof(struct probe_trace_arg_ref)); in alloc_trace_arg_ref() 159 if (ref != NULL) in alloc_trace_arg_ref() 160 ref->offset = offs; in alloc_trace_arg_ref() 161 return ref; in alloc_trace_arg_ref() 181 bool ref = false; in convert_variable_location() local 247 tvar->ref = alloc_trace_arg_ref((long)offs); in convert_variable_location() 248 if (tvar->ref == NULL) in convert_variable_location() 257 ref = true; in convert_variable_location() 265 ref = true; in convert_variable_location() [all …]
|
D | metricgroup.c | 351 struct metric_ref_node *ref; in metricgroup__setup_events() local 362 list_for_each_entry(ref, &m->metric_refs, list) { in metricgroup__setup_events() 369 metric_refs[i].metric_name = ref->metric_name; in metricgroup__setup_events() 370 metric_refs[i].metric_expr = ref->metric_expr; in metricgroup__setup_events() 694 struct metric_ref_node *ref; in __add_metric() local 735 ref = malloc(sizeof(*ref)); in __add_metric() 736 if (!ref) in __add_metric() 745 ref->metric_name = pe->metric_name; in __add_metric() 746 ref->metric_expr = pe->metric_expr; in __add_metric() 748 list_add(&ref->list, &m->metric_refs); in __add_metric() [all …]
|
D | probe-event.h | 51 struct probe_trace_arg_ref *ref; /* Referencing offset */ member 80 bool ref; /* Referencing flag */ member
|
D | probe-event.c | 1689 (*fieldp)->ref = true; in parse_perf_probe_arg() 1701 (*fieldp)->ref = false; in parse_perf_probe_arg() 1704 (*fieldp)->ref = true; in parse_perf_probe_arg() 1718 pr_debug("%s(%d), ", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg() 1727 pr_debug("%s(%d)\n", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg() 1969 err = strbuf_addf(&buf, "%s%s", field->ref ? "->" : ".", in synthesize_perf_probe_arg() 2057 static int __synthesize_probe_trace_arg_ref(struct probe_trace_arg_ref *ref, in __synthesize_probe_trace_arg_ref() argument 2061 if (ref->next) { in __synthesize_probe_trace_arg_ref() 2062 depth = __synthesize_probe_trace_arg_ref(ref->next, buf, in __synthesize_probe_trace_arg_ref() 2067 if (ref->user_access) in __synthesize_probe_trace_arg_ref() [all …]
|
D | thread-stack.h | 108 struct addr_location *to_al, u64 ref,
|
D | session.c | 2346 struct ref_reloc_sym *ref; in map__set_kallsyms_ref_reloc_sym() local 2349 ref = zalloc(sizeof(struct ref_reloc_sym)); in map__set_kallsyms_ref_reloc_sym() 2350 if (ref == NULL) in map__set_kallsyms_ref_reloc_sym() 2353 ref->name = strdup(symbol_name); in map__set_kallsyms_ref_reloc_sym() 2354 if (ref->name == NULL) { in map__set_kallsyms_ref_reloc_sym() 2355 free(ref); in map__set_kallsyms_ref_reloc_sym() 2359 bracket = strchr(ref->name, ']'); in map__set_kallsyms_ref_reloc_sym() 2363 ref->addr = addr; in map__set_kallsyms_ref_reloc_sym() 2367 kmap->ref_reloc_sym = ref; in map__set_kallsyms_ref_reloc_sym()
|
D | header.c | 1594 u64 ref; in print_clock_data() local 1602 ref = ff->ph->env.clock.tod_ns; in print_clock_data() 1603 tod_ns.tv_sec = ref / NSEC_PER_SEC; in print_clock_data() 1604 ref -= tod_ns.tv_sec * NSEC_PER_SEC; in print_clock_data() 1605 tod_ns.tv_usec = ref / NSEC_PER_USEC; in print_clock_data() 1608 ref = ff->ph->env.clock.clockid_ns; in print_clock_data() 1609 clockid_ns.tv_sec = ref / NSEC_PER_SEC; in print_clock_data() 1610 ref -= clockid_ns.tv_sec * NSEC_PER_SEC; in print_clock_data() 1611 clockid_ns.tv_nsec = ref; in print_clock_data()
|
D | parse-events.l | 337 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
|
D | bpf-loader.c | 498 ref1 = arg1->ref; in compare_tev_args() 499 ref2 = arg2->ref; in compare_tev_args()
|
D | auxtrace.c | 1659 u64 head, old = mm->prev, offset, ref; in __auxtrace_mmap__read() local 1696 ref = auxtrace_record__reference(itr); in __auxtrace_mmap__read() 1740 ev.auxtrace.reference = ref; in __auxtrace_mmap__read()
|
/tools/arch/x86/tools/ |
D | gen-insn-attr-x86.awk | 131 ref = "" 133 ref = ref $i 134 eid = escape[ref] 272 ref = "" 274 ref = ref $i 275 if (ref in escape) 276 semantic_error("Redefine escape (" ref ")") 277 escape[ref] = geid 279 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")"
|
/tools/testing/nvdimm/test/ |
D | iomap.c | 103 WARN_ON(!pgmap || !pgmap->ref); in nfit_test_kill() 108 percpu_ref_kill(pgmap->ref); in nfit_test_kill() 114 percpu_ref_exit(pgmap->ref); in nfit_test_kill() 118 static void dev_pagemap_percpu_release(struct percpu_ref *ref) in dev_pagemap_percpu_release() argument 121 container_of(ref, struct dev_pagemap, internal_ref); in dev_pagemap_percpu_release() 135 if (!pgmap->ref) { in __wrap_devm_memremap_pages() 144 pgmap->ref = &pgmap->internal_ref; in __wrap_devm_memremap_pages()
|
/tools/lib/traceevent/Documentation/ |
D | libtraceevent-handle.txt | 60 int ref = tep_get_ref(tep); 62 if ( (ref+1) != tep_get_ref(tep)) {
|
/tools/testing/kunit/test_data/ |
D | test_interrupted_tap_output.log | 13 [ 0.060000] Btrfs loaded, crc32c=crc32c-generic, debug=on, assert=on, integrity-checker=on, ref-…
|
/tools/vm/ |
D | slabinfo.c | 53 char *ref; member 1118 n1 = a1->ref; in sort_aliases() 1119 n2 = a2->ref; in sort_aliases() 1140 if (strcmp(a->ref, s->name) == 0) { in link_slabs() 1146 fatal("Unresolved alias %s\n", a->ref); in link_slabs() 1239 alias->ref = strdup(p); in read_slab_dir()
|
/tools/perf/arch/x86/util/ |
D | intel-pt.c | 1084 struct intel_pt_snapshot_ref *ref = &ptr->snapshot_refs[idx]; in intel_pt_wrapped() local 1087 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped() 1091 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
|
/tools/bpf/bpftool/bash-completion/ |
D | bpftool | 139 local keyword ref 144 ref=${words[$((idx))]} 156 [[ -z $ref ]] && return 0 159 type=$(bpftool -jp map show $keyword $ref | \
|
/tools/perf/ |
D | builtin-record.c | 1564 u64 ref; in record__init_clock() local 1584 ref = (u64) ref_tod.tv_sec * NSEC_PER_SEC + in record__init_clock() 1587 session->header.env.clock.tod_ns = ref; in record__init_clock() 1589 ref = (u64) ref_clockid.tv_sec * NSEC_PER_SEC + in record__init_clock() 1592 session->header.env.clock.clockid_ns = ref; in record__init_clock()
|
/tools/perf/Documentation/ |
D | perf-config.txt | 506 per event in the group, ref-cycles and cycles: 508 # group: {ref-cycles,cycles} 511 # Samples: 7K of event 'anon group { ref-cycles, cycles }'
|