Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dsk_bypass_prot_mem.c18 int *memory_per_cpu_fw_alloc; member
23 int *memory_per_cpu_fw_alloc; in drain_memory_per_cpu_fw_alloc() local
25 memory_per_cpu_fw_alloc = bpf_per_cpu_ptr(sk_prot_ctx->memory_per_cpu_fw_alloc, i); in drain_memory_per_cpu_fw_alloc()
26 if (memory_per_cpu_fw_alloc) in drain_memory_per_cpu_fw_alloc()
27 *sk_prot_ctx->memory_allocated += *memory_per_cpu_fw_alloc; in drain_memory_per_cpu_fw_alloc()
32 static long get_memory_allocated(struct sock *_sk, int *memory_per_cpu_fw_alloc) in get_memory_allocated() argument
42 sk_prot_ctx.memory_per_cpu_fw_alloc = memory_per_cpu_fw_alloc; 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()