| /tools/bpf/bpftool/ |
| A D | pids.c | 35 struct obj_ref *ref; in add_ref() local 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() 57 ref->comm[sizeof(ref->comm) - 1] = '\0'; in add_ref() 78 ref = &refs->refs[0]; in add_ref() 79 ref->pid = e->pid; in add_ref() 80 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 81 ref->comm[sizeof(ref->comm) - 1] = '\0'; in add_ref() 223 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_json() local [all …]
|
| A D | main.c | 229 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/progs/ |
| A D | verifier_kfunc_prog_types.c | 72 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()
|
| A D | map_kptr.c | 303 int ref = 1; variable 315 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() 480 ref++; in test_map_kptr_ref3() 481 if (p->cnt.refs.counter != ref) { in test_map_kptr_ref3() [all …]
|
| A D | rbtree_search.c | 10 struct bpf_refcount ref; member
|
| /tools/perf/util/ |
| A D | expr.c | 35 } ref; member 180 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref() argument 191 name = strdup(ref->metric_name); in expr__add_ref() 203 data_ptr->ref.metric_name = ref->metric_name; in expr__add_ref() 204 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref() 212 ref->metric_name, ref->metric_expr); in expr__add_ref() 260 data->ref.metric_name); in expr__resolve_id() 263 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) { in expr__resolve_id() 267 pr_debug("processing metric: %s EXIT: %f\n", id, data->ref.val); in expr__resolve_id() 271 data->ref.val, data->ref.metric_name); in expr__resolve_id() [all …]
|
| A D | thread-stack.c | 56 u64 ref; member 319 cr.call_ref = tse->ref; in thread_stack__call_return() 320 cr.return_ref = ref; in thread_stack__call_return() 801 tse->ref = ref; in thread_stack__push_cp() 834 timestamp, ref, false); in thread_stack__pop_cp() 846 timestamp, ref, in thread_stack__pop_cp() 895 tm, ref, true); in thread_stack__pop_ks() 952 tm, ref, false); in thread_stack__no_call_return() 999 u64 ref) in thread_stack__trace_begin() argument 1011 timestamp, ref, false); in thread_stack__trace_begin() [all …]
|
| A D | probe-finder.c | 59 if (ref != NULL) in alloc_trace_arg_ref() 60 ref->offset = offs; in alloc_trace_arg_ref() 61 return ref; in alloc_trace_arg_ref() 81 bool ref = false; in convert_variable_location() local 157 ref = true; in convert_variable_location() 165 ref = true; in convert_variable_location() 171 ref = true; in convert_variable_location() 194 if (ref) { in convert_variable_location() 384 if (ref == NULL) in convert_variable_fields() 389 *ref_ptr = ref; in convert_variable_fields() [all …]
|
| A D | probe-event.h | 52 struct probe_trace_arg_ref *ref; /* Referencing offset */ member 82 bool ref; /* Referencing flag */ member
|
| A D | probe-event.c | 2147 if (ref->next) { in __synthesize_probe_trace_arg_ref() 2153 if (ref->user_access) in __synthesize_probe_trace_arg_ref() 2163 struct probe_trace_arg_ref *ref = arg->ref; in synthesize_probe_trace_arg() local 2176 ref = ref->next; in synthesize_probe_trace_arg() 2179 if (ref) { in synthesize_probe_trace_arg() 2460 (*ppfield)->ref = field->ref; in perf_probe_arg__copy() 2511 ref = tev->args[i].ref; in clear_probe_trace_event() 2512 while (ref) { in clear_probe_trace_event() 2513 next = ref->next; in clear_probe_trace_event() 2514 free(ref); in clear_probe_trace_event() [all …]
|
| A D | expr.h | 40 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref);
|
| A D | thread-stack.h | 107 struct addr_location *to_al, u64 ref,
|
| A D | parse-events.l | 348 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); } 403 ref-cycles { return sym(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
|
| A D | session.c | 2477 struct ref_reloc_sym *ref; in map__set_kallsyms_ref_reloc_sym() local 2480 ref = zalloc(sizeof(struct ref_reloc_sym)); in map__set_kallsyms_ref_reloc_sym() 2481 if (ref == NULL) in map__set_kallsyms_ref_reloc_sym() 2484 ref->name = strdup(symbol_name); in map__set_kallsyms_ref_reloc_sym() 2485 if (ref->name == NULL) { in map__set_kallsyms_ref_reloc_sym() 2486 free(ref); in map__set_kallsyms_ref_reloc_sym() 2490 bracket = strchr(ref->name, ']'); in map__set_kallsyms_ref_reloc_sym() 2494 ref->addr = addr; in map__set_kallsyms_ref_reloc_sym() 2498 kmap->ref_reloc_sym = ref; in map__set_kallsyms_ref_reloc_sym()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | map_kptr.c | 54 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/arch/x86/tools/ |
| A D | gen-insn-attr-x86.awk | 138 ref = "" 140 ref = ref $i 141 eid = escape[ref] 279 ref = "" 281 ref = ref $i 282 if (ref in escape) 283 semantic_error("Redefine escape (" ref ")") 284 escape[ref] = geid 286 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")"
|
| /tools/testing/selftests/arm64/fp/ |
| A D | kernel-test.c | 27 static char *ref; variable 189 ref = malloc(digest_len); in create_socket() 190 if (!ref) { in create_socket() 304 if (!compute_digest(ref)) { in main() 317 if (memcmp(ref, digest, digest_len) != 0) { in main()
|
| /tools/testing/nvdimm/test/ |
| A D | iomap.c | 102 percpu_ref_kill(&pgmap->ref); in nfit_test_kill() 105 percpu_ref_exit(&pgmap->ref); in nfit_test_kill() 108 static void dev_pagemap_percpu_release(struct percpu_ref *ref) in dev_pagemap_percpu_release() argument 110 struct dev_pagemap *pgmap = container_of(ref, struct dev_pagemap, ref); in dev_pagemap_percpu_release() 125 error = percpu_ref_init(&pgmap->ref, dev_pagemap_percpu_release, 0, in __wrap_devm_memremap_pages()
|
| /tools/lib/bpf/ |
| A D | gen_loader.c | 627 kdesc->ref++; in get_ksym_desc() 640 kdesc->ref = 1; in get_ksym_desc() 707 if (kdesc->ref > 1) { in emit_relo_kfunc_btf() 761 relo->name, kdesc->ref); in emit_relo_kfunc_btf() 766 relo->name, kdesc->ref); in emit_relo_kfunc_btf() 770 int ref) in emit_ksym_relo_log() argument 779 relo->is_typeless, relo->is_weak, relo->name, ref); in emit_ksym_relo_log() 797 if (kdesc->ref > 1) { in emit_relo_ksym_typeless() 818 emit_ksym_relo_log(gen, relo, kdesc->ref); in emit_relo_ksym_typeless() 844 if (kdesc->ref > 1) { in emit_relo_ksym_btf() [all …]
|
| A D | bpf_gen_internal.h | 19 int ref; member
|
| /tools/testing/kunit/test_data/ |
| A D | test_interrupted_tap_output.log | 13 [ 0.060000] Btrfs loaded, crc32c=crc32c-generic, debug=on, assert=on, integrity-checker=on, ref-…
|
| /tools/tracing/rtla/src/ |
| A D | osnoise.h | 58 int ref; member
|
| /tools/net/ynl/pyynl/ |
| A D | ynl_gen_c.py | 177 def _free_lines(self, ri, var, ref): argument 182 def free(self, ri, var, ref): argument 183 lines = self._free_lines(ri, var, ref) 279 ref = (ref if ref else []) + [self.c_name] 288 for i in range(0, len(ref)): 296 ref_path = '.'.join(ref[:-1]) 666 def _free_lines(self, ri, var, ref): argument 698 ref = (ref if ref else []) + [self.c_name] 703 attr.setter(ri, self.nested_attrs, direction, deref=deref, ref=ref, 741 def _free_lines(self, ri, var, ref): argument [all …]
|
| /tools/mm/ |
| A D | slabinfo.c | 53 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() 1243 alias->ref = strdup(p); in read_slab_dir()
|
| /tools/perf/arch/x86/util/ |
| A D | intel-pt.c | 1083 struct intel_pt_snapshot_ref *ref = &ptr->snapshot_refs[idx]; in intel_pt_wrapped() local 1086 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped() 1090 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
|