Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dsk_bypass_prot_mem.c17 long *memory_allocated; member
27 *sk_prot_ctx->memory_allocated += *memory_per_cpu_fw_alloc; in drain_memory_per_cpu_fw_alloc()
36 long memory_allocated; in get_memory_allocated() local
39 memory_allocated = sk->__sk_common.skc_prot->memory_allocated->counter; in get_memory_allocated()
41 sk_prot_ctx.memory_allocated = &memory_allocated; in get_memory_allocated()
46 return memory_allocated; in get_memory_allocated()
50 long *memory_allocated, int *memory_per_cpu_fw_alloc) in fentry_init_sock() argument
55 *memory_allocated = get_memory_allocated(sk, memory_per_cpu_fw_alloc); in fentry_init_sock()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsk_bypass_prot_mem.c94 bool *activated, long *memory_allocated) in get_memory_allocated()
100 /* AF_INET and AF_INET6 share the same memory_allocated. in get_memory_allocated()
110 return *memory_allocated; in tcp_get_memory_allocated()
131 long memory_allocated[2]; in check_bypass()
142 memory_allocated[0] = test_case->get_memory_allocated(test_case, skel); in check_bypass()
160 memory_allocated[1] = test_case->get_memory_allocated(test_case, skel); in check_bypass()
163 ASSERT_LE(memory_allocated[1], memory_allocated[0] + 10, "bypass"); in check_bypass()
165 ASSERT_GT(memory_allocated[1], memory_allocated[ in check_bypass()
89 get_memory_allocated(struct test_case * test_case,bool * activated,long * memory_allocated) get_memory_allocated() argument
126 long memory_allocated[2]; check_bypass() local
[all...]
/linux/include/net/
H A Dproto_memory.h47 return max(0L, atomic_long_read(prot->memory_allocated)); in proto_memory_allocated()
61 atomic_long_add(val, proto->memory_allocated); in proto_memory_pcpu_drain()
H A Dsock.h1355 atomic_long_t *memory_allocated; /* Current allocated memory. */ member
1570 return !!sk->sk_prot->memory_allocated; in sk_has_account()
/linux/net/ipv4/
H A Dudplite.c62 .memory_allocated = &net_aligned_data.udp_memory_allocated,
H A Dtcp_ipv4.c3449 .memory_allocated = &net_aligned_data.tcp_memory_allocated,
H A Dudp.c3289 .memory_allocated = &net_aligned_data.udp_memory_allocated,
/linux/net/ipv6/
H A Dudplite.c61 .memory_allocated = &net_aligned_data.udp_memory_allocated,
H A Dudp.c1929 .memory_allocated = &net_aligned_data.udp_memory_allocated,
H A Dtcp_ipv6.c2311 .memory_allocated = &net_aligned_data.tcp_memory_allocated,
/linux/drivers/md/dm-vdo/indexer/
H A Ddelta-index.h184 size_t memory_allocated; member
/linux/net/core/
H A Dsock.c4187 if (prot->memory_allocated && !prot->sysctl_mem) { in proto_register()
4191 if (prot->memory_allocated && !prot->per_cpu_fw_alloc) { in proto_register()
4308 return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L; in sock_prot_memory_allocated()
/linux/net/sctp/
H A Dsocket.c9658 .memory_allocated = &sctp_memory_allocated,
9714 .memory_allocated = &sctp_memory_allocated,
/linux/net/mptcp/
H A Dprotocol.c4040 .memory_allocated = &net_aligned_data.tcp_memory_allocated,