Searched refs:refs (Results 1 – 14 of 14) sorted by relevance
/tools/bpf/bpftool/ |
D | pids.c | 30 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 …]
|
D | main.h | 133 struct obj_ref *refs; member
|
/tools/include/linux/ |
D | refcount.h | 53 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/ |
D | bpf_iter_ipv6_route.c | 51 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()
|
D | bpf_iter_netlink.c | 47 s->sk_wmem_alloc.refs.counter - 1, in dump_netlink() 48 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
|
D | bpf_iter_udp4.c | 63 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp4() 67 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
|
D | bpf_iter_udp6.c | 71 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp6() 75 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
|
D | kfree_skb.c | 36 atomic_t refs; member 75 users = skb->users.refs.counter; in BPF_PROG()
|
D | bpf_iter_tcp4.c | 134 sp->sk_refcnt.refs.counter); in dump_tcp_sock() 168 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
|
D | bpf_iter_tcp6.c | 138 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/ |
D | intel-bts.c | 283 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()
|
D | intel-pt.c | 928 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/ |
D | slabinfo.c | 31 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/ |
D | parse-events.l | 376 refs|Reference|ops|access |
|