Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 14 of 14) sorted by relevance

/tools/bpf/bpftool/
Dpids.c30 struct obj_refs *refs; in add_ref() local
35 hash_for_each_possible(table->table, refs, node, e->id) { in add_ref()
36 if (refs->id != e->id) in add_ref()
39 for (i = 0; i < refs->ref_cnt; i++) { in add_ref()
40 if (refs->refs[i].pid == e->pid) in add_ref()
44 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
50 refs->refs = tmp; in add_ref()
51 ref = &refs->refs[refs->ref_cnt]; in add_ref()
54 refs->ref_cnt++; in add_ref()
60 refs = calloc(1, sizeof(*refs)); in add_ref()
[all …]
Dmain.h133 struct obj_ref *refs; member
/tools/include/linux/
Drefcount.h53 atomic_t refs; member
56 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), }
60 atomic_set(&r->refs, n); in refcount_set()
65 return atomic_read(&r->refs); in refcount_read()
78 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero()
89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
123 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test()
135 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
/tools/testing/selftests/bpf/progs/
Dbpf_iter_ipv6_route.c51 rt->fib6_ref.refs.counter, 0, flags, dev->name); in dump_ipv6_route()
54 rt->fib6_ref.refs.counter, 0, flags); in dump_ipv6_route()
Dbpf_iter_netlink.c47 s->sk_wmem_alloc.refs.counter - 1, in dump_netlink()
48 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
Dbpf_iter_udp4.c63 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp4()
67 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
Dbpf_iter_udp6.c71 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp6()
75 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
Dkfree_skb.c36 atomic_t refs; member
75 users = skb->users.refs.counter; in BPF_PROG()
Dbpf_iter_tcp4.c134 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
168 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
Dbpf_iter_tcp6.c138 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
177 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
/tools/perf/arch/x86/util/
Dintel-bts.c283 struct intel_bts_snapshot_ref *refs; in intel_bts_alloc_snapshot_refs() local
291 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs()
292 if (!refs) in intel_bts_alloc_snapshot_refs()
295 memcpy(refs, btsr->snapshot_refs, cnt * sz); in intel_bts_alloc_snapshot_refs()
297 btsr->snapshot_refs = refs; in intel_bts_alloc_snapshot_refs()
Dintel-pt.c928 struct intel_pt_snapshot_ref *refs; in intel_pt_alloc_snapshot_refs() local
936 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs()
937 if (!refs) in intel_pt_alloc_snapshot_refs()
940 memcpy(refs, ptr->snapshot_refs, cnt * sz); in intel_pt_alloc_snapshot_refs()
942 ptr->snapshot_refs = refs; in intel_pt_alloc_snapshot_refs()
/tools/vm/
Dslabinfo.c31 int refs; member
1142 s->refs++; in link_slabs()
1160 if (!show_single_ref && a->slab->refs == 1) in alias()
1190 if (s->refs > 1 && !show_first_alias) in rename_slabs()
1247 slab->refs = 0; in read_slab_dir()
/tools/perf/util/
Dparse-events.l376 refs|Reference|ops|access |