Home
last modified time | relevance | path

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

12

/tools/testing/selftests/bpf/progs/
Dverifier_kfunc_prog_types.c72 struct cgroup *cgrp, *ref; in cgrp_kfunc_load_test() local
78 ref = bpf_cgroup_acquire(cgrp); in cgrp_kfunc_load_test()
79 if (!ref) { in cgrp_kfunc_load_test()
84 bpf_cgroup_release(ref); in cgrp_kfunc_load_test()
126 struct bpf_cpumask *alloc, *ref; in cpumask_kfunc_load_test() local
132 ref = bpf_cpumask_acquire(alloc); in cpumask_kfunc_load_test()
134 bpf_cpumask_test_cpu(0, (const struct cpumask *)ref); in cpumask_kfunc_load_test()
136 bpf_cpumask_release(ref); in cpumask_kfunc_load_test()
Dmap_kptr.c303 int ref = 1; variable
315 ref++; in test_map_kptr_ref_pre()
318 if (p_st->cnt.refs.counter != ref) { in test_map_kptr_ref_pre()
328 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
335 ref--; in test_map_kptr_ref_pre()
336 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
342 ref++; in test_map_kptr_ref_pre()
348 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
354 ref--; in test_map_kptr_ref_pre()
365 if (!p_st || p_st->cnt.refs.counter != ref) in test_map_kptr_ref_post()
[all …]
/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()
221 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_json() local
224 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.c38 } ref; member
179 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref() argument
190 name = strdup(ref->metric_name); in expr__add_ref()
202 data_ptr->ref.metric_name = ref->metric_name; in expr__add_ref()
203 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
211 ref->metric_name, ref->metric_expr); in expr__add_ref()
257 data->ref.metric_name); in expr__resolve_id()
260 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) { in expr__resolve_id()
264 pr_debug("processing metric: %s EXIT: %f\n", id, data->ref.val); in expr__resolve_id()
268 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.c44 struct probe_trace_arg_ref *ref; in alloc_trace_arg_ref() local
45 ref = zalloc(sizeof(struct probe_trace_arg_ref)); in alloc_trace_arg_ref()
46 if (ref != NULL) in alloc_trace_arg_ref()
47 ref->offset = offs; in alloc_trace_arg_ref()
48 return ref; in alloc_trace_arg_ref()
68 bool ref = false; in convert_variable_location() local
134 tvar->ref = alloc_trace_arg_ref((long)offs); in convert_variable_location()
135 if (tvar->ref == NULL) in convert_variable_location()
144 ref = true; in convert_variable_location()
152 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.c1730 (*fieldp)->ref = true; in parse_perf_probe_arg()
1742 (*fieldp)->ref = false; in parse_perf_probe_arg()
1745 (*fieldp)->ref = true; in parse_perf_probe_arg()
1759 pr_debug("%s(%d), ", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg()
1768 pr_debug("%s(%d)\n", (*fieldp)->name, (*fieldp)->ref); in parse_perf_probe_arg()
2010 err = strbuf_addf(&buf, "%s%s", field->ref ? "->" : ".", in synthesize_perf_probe_arg()
2102 static int __synthesize_probe_trace_arg_ref(struct probe_trace_arg_ref *ref, in __synthesize_probe_trace_arg_ref() argument
2106 if (ref->next) { in __synthesize_probe_trace_arg_ref()
2107 depth = __synthesize_probe_trace_arg_ref(ref->next, buf, in __synthesize_probe_trace_arg_ref()
2112 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.l343 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
396 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
Dsession.c2398 struct ref_reloc_sym *ref; in map__set_kallsyms_ref_reloc_sym() local
2401 ref = zalloc(sizeof(struct ref_reloc_sym)); in map__set_kallsyms_ref_reloc_sym()
2402 if (ref == NULL) in map__set_kallsyms_ref_reloc_sym()
2405 ref->name = strdup(symbol_name); in map__set_kallsyms_ref_reloc_sym()
2406 if (ref->name == NULL) { in map__set_kallsyms_ref_reloc_sym()
2407 free(ref); in map__set_kallsyms_ref_reloc_sym()
2411 bracket = strchr(ref->name, ']'); in map__set_kallsyms_ref_reloc_sym()
2415 ref->addr = addr; in map__set_kallsyms_ref_reloc_sym()
2419 kmap->ref_reloc_sym = ref; in map__set_kallsyms_ref_reloc_sym()
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk136 ref = ""
138 ref = ref $i
139 eid = escape[ref]
277 ref = ""
279 ref = ref $i
280 if (ref in escape)
281 semantic_error("Redefine escape (" ref ")")
282 escape[ref] = geid
284 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")"
/tools/testing/selftests/arm64/fp/
Dkernel-test.c27 static char *ref; variable
191 ref = malloc(digest_len); in create_socket()
192 if (!ref) { in create_socket()
302 if (!compute_digest(ref)) { in main()
315 if (memcmp(ref, digest, digest_len) != 0) { in main()
/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.py129 def free(self, ri, var, ref): argument
222 def setter(self, ri, space, direction, deref=False, ref=None): argument
223 ref = (ref if ref else []) + [self.c_name]
229 for i in range(0, len(ref)):
233 if i == len(ref) - 1 and self.presence_type() != 'bit':
269 def setter(self, ri, space, direction, deref=False, ref=None): argument
292 def setter(self, ri, space, direction, deref=False, ref=None): argument
531 def free(self, ri, var, ref): argument
556 def setter(self, ri, space, direction, deref=False, ref=None): argument
557 ref = (ref if ref else []) + [self.c_name]
[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.c1080 struct intel_pt_snapshot_ref *ref = &ptr->snapshot_refs[idx]; in intel_pt_wrapped() local
1083 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1087 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()

12