| /tools/bpf/bpftool/ |
| A D | pids.c | 43 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 D | main.h | 109 struct obj_ref *refs; member
|
| /tools/include/linux/ |
| A 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 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 D | nl_netdev.py | 198 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 D | page-pool.c | 18 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 D | bpf_iter_ipv6_route.c | 50 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 D | bpf_iter_netlink.c | 46 s->sk_wmem_alloc.refs.counter - 1, in dump_netlink() 47 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
|
| A D | map_kptr.c | 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() 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 D | bpf_iter_udp4.c | 62 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp4() 66 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
|
| A D | bpf_iter_udp6.c | 70 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp6() 74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
|
| A D | kfree_skb.c | 36 atomic_t refs; member 75 users = skb->users.refs.counter; in BPF_PROG()
|
| A D | bpf_iter_unix.c | 42 sk->sk_refcnt.refs.counter, in dump_unix()
|
| A D | bpf_iter_tcp4.c | 133 sp->sk_refcnt.refs.counter); in dump_tcp_sock() 167 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
|
| A D | bpf_iter_tcp6.c | 137 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 D | base.py | 389 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 D | intel-bts.c | 284 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 D | intel-pt.c | 927 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 D | slabinfo.c | 31 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 D | kublk.h | 116 unsigned short refs; /* used by target code only */ member
|
| /tools/perf/util/ |
| A D | parse-events.l | 260 …|store|stores|write|prefetch|prefetches|speculative-read|speculative-load|refs|Reference|ops|acces…
|
| /tools/testing/selftests/iommu/ |
| A D | iommufd_utils.h | 92 .refs = _refs }, \
|