Home
last modified time | relevance | path

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

12

/tools/bpf/bpftool/
Dpids.c35 struct obj_ref *ref; in add_ref() local
47 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
54 ref = &refs->refs[refs->ref_cnt]; in add_ref()
55 ref->pid = e->pid; in add_ref()
56 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
77 ref = &refs->refs[0]; in add_ref()
78 ref->pid = e->pid; in add_ref()
79 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
216 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_json() local
219 jsonw_int_field(json_writer, "pid", ref->pid); in emit_obj_refs_json()
[all …]
Dmain.c229 const char *ref; in detect_common_prefix() local
235 while ((ref = va_arg(ap, const char *))) { in detect_common_prefix()
236 if (!is_prefix(arg, ref)) in detect_common_prefix()
241 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
/tools/testing/selftests/bpf/prog_tests/
Dmap_kptr.c54 skel->data->ref--; in test_map_kptr_success()
62 skel->data->ref--; in test_map_kptr_success()
69 skel->data->ref--; in test_map_kptr_success()
76 skel->data->ref--; in test_map_kptr_success()
83 skel->data->ref--; in test_map_kptr_success()
90 skel->data->ref--; in test_map_kptr_success()
97 skel->data->ref--; in test_map_kptr_success()
104 skel->data->ref--; in test_map_kptr_success()
111 skel->data->ref--; in test_map_kptr_success()
/tools/perf/util/
Dexpr.c42 } ref; member
183 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref() argument
194 name = strdup(ref->metric_name); in expr__add_ref()
206 data_ptr->ref.metric_name = ref->metric_name; in expr__add_ref()
207 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
215 ref->metric_name, ref->metric_expr); in expr__add_ref()
261 data->ref.metric_name); in expr__resolve_id()
264 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) { in expr__resolve_id()
268 pr_debug("processing metric: %s EXIT: %f\n", id, data->ref.val); in expr__resolve_id()
272 data->ref.val, data->ref.metric_name); in expr__resolve_id()
[all …]
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()
783 u64 timestamp, u64 ref, struct call_path *cp, in thread_stack__push_cp() argument
801 tse->ref = ref; in thread_stack__push_cp()
815 u64 ret_addr, u64 timestamp, u64 ref, in thread_stack__pop_cp() argument
828 timestamp, ref, false); in thread_stack__pop_cp()
834 timestamp, ref, false); in thread_stack__pop_cp()
846 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 …]
Dprobe-event.h52 struct probe_trace_arg_ref *ref; /* Referencing offset */ member
81 bool ref; /* Referencing flag */ member
Dprobe-event.c1718 (*fieldp)->ref = true; in parse_perf_probe_arg()
1730 (*fieldp)->ref = false; in parse_perf_probe_arg()
1733 (*fieldp)->ref = true; in parse_perf_probe_arg()
1747 pr_debug("%s(%d), ", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg()
1756 pr_debug("%s(%d)\n", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg()
1998 err = strbuf_addf(&buf, "%s%s", field->ref ? "->" : ".", in synthesize_perf_probe_arg()
2090 static int __synthesize_probe_trace_arg_ref(struct probe_trace_arg_ref *ref, in __synthesize_probe_trace_arg_ref() argument
2094 if (ref->next) { in __synthesize_probe_trace_arg_ref()
2095 depth = __synthesize_probe_trace_arg_ref(ref->next, buf, in __synthesize_probe_trace_arg_ref()
2100 if (ref->user_access) in __synthesize_probe_trace_arg_ref()
[all …]
Dexpr.h40 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref);
Dthread-stack.h107 struct addr_location *to_al, u64 ref,
Dparse-events.l258 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
311 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
Dsession.c2651 struct ref_reloc_sym *ref; in map__set_kallsyms_ref_reloc_sym() local
2654 ref = zalloc(sizeof(struct ref_reloc_sym)); in map__set_kallsyms_ref_reloc_sym()
2655 if (ref == NULL) in map__set_kallsyms_ref_reloc_sym()
2658 ref->name = strdup(symbol_name); in map__set_kallsyms_ref_reloc_sym()
2659 if (ref->name == NULL) { in map__set_kallsyms_ref_reloc_sym()
2660 free(ref); in map__set_kallsyms_ref_reloc_sym()
2664 bracket = strchr(ref->name, ']'); in map__set_kallsyms_ref_reloc_sym()
2668 ref->addr = addr; in map__set_kallsyms_ref_reloc_sym()
2672 kmap->ref_reloc_sym = ref; in map__set_kallsyms_ref_reloc_sym()
Dheader.c1775 u64 ref; in print_clock_data() local
1783 ref = ff->ph->env.clock.tod_ns; in print_clock_data()
1784 tod_ns.tv_sec = ref / NSEC_PER_SEC; in print_clock_data()
1785 ref -= tod_ns.tv_sec * NSEC_PER_SEC; in print_clock_data()
1786 tod_ns.tv_usec = ref / NSEC_PER_USEC; in print_clock_data()
1789 ref = ff->ph->env.clock.clockid_ns; in print_clock_data()
1790 clockid_ns.tv_sec = ref / NSEC_PER_SEC; in print_clock_data()
1791 ref -= clockid_ns.tv_sec * NSEC_PER_SEC; in print_clock_data()
1792 clockid_ns.tv_nsec = ref; in print_clock_data()
/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/selftests/bpf/progs/
Dmap_kptr.c293 int ref = 1; variable
305 ref++; in test_map_kptr_ref_pre()
308 if (p_st->cnt.refs.counter != ref) { in test_map_kptr_ref_pre()
318 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
325 ref--; in test_map_kptr_ref_pre()
326 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
332 ref++; in test_map_kptr_ref_pre()
338 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
344 ref--; in test_map_kptr_ref_pre()
355 if (!p_st || p_st->cnt.refs.counter != ref) in test_map_kptr_ref_post()
[all …]
/tools/testing/nvdimm/test/
Diomap.c103 percpu_ref_kill(&pgmap->ref); in nfit_test_kill()
106 percpu_ref_exit(&pgmap->ref); in nfit_test_kill()
109 static void dev_pagemap_percpu_release(struct percpu_ref *ref) in dev_pagemap_percpu_release() argument
111 struct dev_pagemap *pgmap = container_of(ref, struct dev_pagemap, ref); in dev_pagemap_percpu_release()
126 error = percpu_ref_init(&pgmap->ref, dev_pagemap_percpu_release, 0, in __wrap_devm_memremap_pages()
/tools/lib/bpf/
Dgen_loader.c593 kdesc->ref++; in get_ksym_desc()
606 kdesc->ref = 1; in get_ksym_desc()
673 if (kdesc->ref > 1) { in emit_relo_kfunc_btf()
727 relo->name, kdesc->ref); in emit_relo_kfunc_btf()
732 relo->name, kdesc->ref); in emit_relo_kfunc_btf()
736 int ref) in emit_ksym_relo_log() argument
745 relo->is_typeless, relo->is_weak, relo->name, ref); in emit_ksym_relo_log()
748 relo->is_typeless, relo->is_weak, relo->name, ref); in emit_ksym_relo_log()
763 if (kdesc->ref > 1) { in emit_relo_ksym_typeless()
784 emit_ksym_relo_log(gen, relo, kdesc->ref); in emit_relo_ksym_typeless()
[all …]
Dbpf_gen_internal.h19 int ref; member
/tools/tracing/rtla/src/
Dosnoise.h9 int ref; member
Dosnoise.c936 context->ref++; in osnoise_get_context()
988 if (--context->ref < 1) in osnoise_put_context()
/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/net/ynl/
Dynl-gen-c.py101 def free(self, ri, var, ref): argument
192 def setter(self, ri, space, direction, deref=False, ref=None): argument
193 ref = (ref if ref else []) + [self.c_name]
199 for i in range(0, len(ref)):
203 if i == len(ref) - 1 and self.presence_type() != 'bit':
253 def setter(self, ri, space, direction, deref=False, ref=None): argument
443 def free(self, ri, var, ref): argument
463 def setter(self, ri, space, direction, deref=False, ref=None): argument
464 ref = (ref if ref else []) + [self.c_name]
467 attr.setter(ri, self.nested_attrs, direction, deref=deref, ref=ref)
[all …]
/tools/mm/
Dslabinfo.c53 char *ref; member
1120 n1 = a1->ref; in sort_aliases()
1121 n2 = a2->ref; in sort_aliases()
1142 if (strcmp(a->ref, s->name) == 0) { in link_slabs()
1148 fatal("Unresolved alias %s\n", a->ref); in link_slabs()
1241 alias->ref = strdup(p); in read_slab_dir()
/tools/perf/arch/x86/util/
Dintel-pt.c1088 struct intel_pt_snapshot_ref *ref = &ptr->snapshot_refs[idx]; in intel_pt_wrapped() local
1091 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1095 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 | \

12