Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
A Dpids.c43 if (refs->refs[i].pid == e->pid) in add_ref()
47 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref()
53 refs->refs = tmp; in add_ref()
54 ref = &refs->refs[refs->ref_cnt]; in add_ref()
64 refs = calloc(1, sizeof(*refs)); in add_ref()
71 refs->refs = malloc(sizeof(*refs->refs)); in add_ref()
72 if (!refs->refs) { in add_ref()
78 ref = &refs->refs[0]; in add_ref()
195 free(refs->refs); in delete_obj_refs_table()
223 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_json()
[all …]
A Dmain.h109 struct obj_ref *refs; member
/tools/include/linux/
A 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 atomic_set(&r->refs, n); in refcount_set_release()
70 return atomic_read(&r->refs); in refcount_read()
83 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero()
94 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
128 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test()
140 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
/tools/testing/selftests/net/
A Dnl_netdev.py198 refs = sum([pp["inflight"] for pp in pp_list])
199 ksft_eq(refs, 0)
210 refs = sum([pp["inflight"] for pp in pp_list if pp.get("ifindex") == nsim.ifindex])
211 ksft_ge(refs, 1)
217 refs = sum([pp["inflight"] for pp in pp_list])
218 ksft_eq(refs, 1)
/tools/net/ynl/samples/
A Dpage-pool.c18 size_t refs, bytes; member
52 s->live[l].refs += pp->inflight; in count()
127 s->live[1].refs, s->live[1].bytes, in main()
128 s->live[0].refs, s->live[0].bytes); in main()
/tools/testing/selftests/bpf/progs/
A Dbpf_iter_ipv6_route.c50 rt->fib6_ref.refs.counter, 0, flags, dev->name); in dump_ipv6_route()
53 rt->fib6_ref.refs.counter, 0, flags); in dump_ipv6_route()
A Dbpf_iter_netlink.c46 s->sk_wmem_alloc.refs.counter - 1, in dump_netlink()
47 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
A Dmap_kptr.c318 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()
336 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
348 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_pre()
365 if (!p_st || p_st->cnt.refs.counter != ref) in test_map_kptr_ref_post()
371 if (p_st->cnt.refs.counter != ref) { in test_map_kptr_ref_post()
381 if (p_st->cnt.refs.counter != ref) in test_map_kptr_ref_post()
481 if (p->cnt.refs.counter != ref) { in test_map_kptr_ref3()
A Dbpf_iter_udp4.c62 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp4()
66 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
A Dbpf_iter_udp6.c70 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp6()
74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
A Dkfree_skb.c36 atomic_t refs; member
75 users = skb->users.refs.counter; in BPF_PROG()
A Dbpf_iter_unix.c42 sk->sk_refcnt.refs.counter, in dump_unix()
A Dbpf_iter_tcp4.c133 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
167 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
A Dbpf_iter_tcp6.c137 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
176 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
/tools/testing/selftests/hid/tests/
A Dbase.py389 self.refs = 0
393 self.refs += 1
394 if self.refs == 2 and self.rulesfile is None:
399 self.refs -= 1
400 if self.refs == 0 and self.rulesfile:
/tools/perf/arch/x86/util/
A Dintel-bts.c284 struct intel_bts_snapshot_ref *refs; in intel_bts_alloc_snapshot_refs() local
292 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs()
293 if (!refs) in intel_bts_alloc_snapshot_refs()
296 memcpy(refs, btsr->snapshot_refs, cnt * sz); in intel_bts_alloc_snapshot_refs()
298 btsr->snapshot_refs = refs; in intel_bts_alloc_snapshot_refs()
A Dintel-pt.c927 struct intel_pt_snapshot_ref *refs; in intel_pt_alloc_snapshot_refs() local
935 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs()
936 if (!refs) in intel_pt_alloc_snapshot_refs()
939 memcpy(refs, ptr->snapshot_refs, cnt * sz); in intel_pt_alloc_snapshot_refs()
941 ptr->snapshot_refs = refs; in intel_pt_alloc_snapshot_refs()
/tools/mm/
A Dslabinfo.c31 int refs; member
1144 s->refs++; in link_slabs()
1162 if (!show_single_ref && a->slab->refs == 1) in alias()
1192 if (s->refs > 1 && !show_first_alias) in rename_slabs()
1253 slab->refs = 0; in read_slab_dir()
/tools/testing/selftests/ublk/
A Dkublk.h116 unsigned short refs; /* used by target code only */ member
/tools/perf/util/
A Dparse-events.l260 …|store|stores|write|prefetch|prefetches|speculative-read|speculative-load|refs|Reference|ops|acces…
/tools/testing/selftests/iommu/
A Diommufd_utils.h92 .refs = _refs }, \

Completed in 31 milliseconds