Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 31) sorted by relevance

12

/tools/bpf/bpftool/
Dpids.c31 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 …]
Dmain.c159 const char *ref; in detect_common_prefix() local
165 while ((ref = va_arg(ap, const char *))) { in detect_common_prefix()
166 if (!is_prefix(arg, ref)) in detect_common_prefix()
171 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
/tools/perf/util/
Dbpf-prologue.c250 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 …]
Dexpr.c27 } ref; member
107 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref() argument
118 name = strdup(ref->metric_name); in expr__add_ref()
139 data_ptr->ref.metric_name = ref->metric_name; in expr__add_ref()
140 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
149 ref->metric_name, ref->metric_expr); in expr__add_ref()
183 data->ref.metric_name); in expr__resolve_id()
186 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr, 1)) { in expr__resolve_id()
194 data->ref.val, data->ref.metric_name); in expr__resolve_id()
286 return data->ref.val; in expr_id_data__value()
Dthread-stack.c56 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 …]
Dprobe-finder.c162 struct probe_trace_arg_ref *ref; in alloc_trace_arg_ref() local
163 ref = zalloc(sizeof(struct probe_trace_arg_ref)); in alloc_trace_arg_ref()
164 if (ref != NULL) in alloc_trace_arg_ref()
165 ref->offset = offs; in alloc_trace_arg_ref()
166 return ref; in alloc_trace_arg_ref()
186 bool ref = false; in convert_variable_location() local
252 tvar->ref = alloc_trace_arg_ref((long)offs); in convert_variable_location()
253 if (tvar->ref == NULL) in convert_variable_location()
262 ref = true; in convert_variable_location()
270 ref = true; in convert_variable_location()
[all …]
Dmetricgroup.c360 struct metric_ref_node *ref; in metricgroup__setup_events() local
371 list_for_each_entry(ref, &m->metric_refs, list) { in metricgroup__setup_events()
378 metric_refs[i].metric_name = ref->metric_name; in metricgroup__setup_events()
379 metric_refs[i].metric_expr = ref->metric_expr; in metricgroup__setup_events()
790 struct metric_ref_node *ref; in __add_metric() local
831 ref = malloc(sizeof(*ref)); in __add_metric()
832 if (!ref) in __add_metric()
841 ref->metric_name = pe->metric_name; in __add_metric()
842 ref->metric_expr = pe->metric_expr; in __add_metric()
844 list_add(&ref->list, &m->metric_refs); in __add_metric()
[all …]
Dprobe-event.h52 struct probe_trace_arg_ref *ref; /* Referencing offset */ member
81 bool ref; /* Referencing flag */ member
Dexpr.h38 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref);
Dprobe-event.c1704 (*fieldp)->ref = true; in parse_perf_probe_arg()
1716 (*fieldp)->ref = false; in parse_perf_probe_arg()
1719 (*fieldp)->ref = true; in parse_perf_probe_arg()
1733 pr_debug("%s(%d), ", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg()
1742 pr_debug("%s(%d)\n", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg()
1984 err = strbuf_addf(&buf, "%s%s", field->ref ? "->" : ".", in synthesize_perf_probe_arg()
2072 static int __synthesize_probe_trace_arg_ref(struct probe_trace_arg_ref *ref, in __synthesize_probe_trace_arg_ref() argument
2076 if (ref->next) { in __synthesize_probe_trace_arg_ref()
2077 depth = __synthesize_probe_trace_arg_ref(ref->next, buf, in __synthesize_probe_trace_arg_ref()
2082 if (ref->user_access) in __synthesize_probe_trace_arg_ref()
[all …]
Dthread-stack.h107 struct addr_location *to_al, u64 ref,
Dsession.c2370 struct ref_reloc_sym *ref; in map__set_kallsyms_ref_reloc_sym() local
2373 ref = zalloc(sizeof(struct ref_reloc_sym)); in map__set_kallsyms_ref_reloc_sym()
2374 if (ref == NULL) in map__set_kallsyms_ref_reloc_sym()
2377 ref->name = strdup(symbol_name); in map__set_kallsyms_ref_reloc_sym()
2378 if (ref->name == NULL) { in map__set_kallsyms_ref_reloc_sym()
2379 free(ref); in map__set_kallsyms_ref_reloc_sym()
2383 bracket = strchr(ref->name, ']'); in map__set_kallsyms_ref_reloc_sym()
2387 ref->addr = addr; in map__set_kallsyms_ref_reloc_sym()
2391 kmap->ref_reloc_sym = ref; in map__set_kallsyms_ref_reloc_sym()
Dheader.c1661 u64 ref; in print_clock_data() local
1669 ref = ff->ph->env.clock.tod_ns; in print_clock_data()
1670 tod_ns.tv_sec = ref / NSEC_PER_SEC; in print_clock_data()
1671 ref -= tod_ns.tv_sec * NSEC_PER_SEC; in print_clock_data()
1672 tod_ns.tv_usec = ref / NSEC_PER_USEC; in print_clock_data()
1675 ref = ff->ph->env.clock.clockid_ns; in print_clock_data()
1676 clockid_ns.tv_sec = ref / NSEC_PER_SEC; in print_clock_data()
1677 ref -= clockid_ns.tv_sec * NSEC_PER_SEC; in print_clock_data()
1678 clockid_ns.tv_nsec = ref; in print_clock_data()
Dparse-events.l337 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk131 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/
Diomap.c103 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/testing/selftests/bpf/
Dtest_bpftool_synctypes.py450 ref = bpf_info.get_map_types()
456 verify(ref, map_types_enum,
487 ref = bpf_info.get_prog_types()
492 verify(ref, prog_types,
497 ref = bpf_info.get_attach_types()
503 verify(ref, attach_types,
/tools/lib/traceevent/Documentation/
Dlibtraceevent-handle.txt60 int ref = tep_get_ref(tep);
62 if ( (ref+1) != tep_get_ref(tep)) {
/tools/testing/kunit/test_data/
Dtest_interrupted_tap_output.log13 [ 0.060000] Btrfs loaded, crc32c=crc32c-generic, debug=on, assert=on, integrity-checker=on, ref-…
/tools/perf/tests/
Dpmu-events.c785 struct metric_ref *ref; in resolve_metric_simple() local
809 ref = &metric->metric_ref; in resolve_metric_simple()
810 ref->metric_name = pe->metric_name; in resolve_metric_simple()
811 ref->metric_expr = pe->metric_expr; in resolve_metric_simple()
/tools/vm/
Dslabinfo.c53 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/
Dintel-pt.c1090 struct intel_pt_snapshot_ref *ref = &ptr->snapshot_refs[idx]; in intel_pt_wrapped() local
1093 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1097 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
/tools/bpf/bpftool/bash-completion/
Dbpftool139 local keyword ref
144 ref=${words[$((idx))]}
156 [[ -z $ref ]] && return 0
159 type=$(bpftool -jp map show $keyword $ref | \
/tools/perf/
Dbuiltin-record.c1544 u64 ref; in record__init_clock() local
1564 ref = (u64) ref_tod.tv_sec * NSEC_PER_SEC + in record__init_clock()
1567 session->header.env.clock.tod_ns = ref; in record__init_clock()
1569 ref = (u64) ref_clockid.tv_sec * NSEC_PER_SEC + in record__init_clock()
1572 session->header.env.clock.clockid_ns = ref; in record__init_clock()
/tools/perf/Documentation/
Dperf-config.txt520 per event in the group, ref-cycles and cycles:
522 # group: {ref-cycles,cycles}
525 # Samples: 7K of event 'anon group { ref-cycles, cycles }'

12