Skip to content
Commit 0bed8f37 authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

Merge branch 'Introduce access remote cpu elem support in BPF percpu map'



Feng zhou says:

====================

From: Feng Zhou <zhoufeng.zf@bytedance.com>

Trace some functions, such as enqueue_task_fair, need to access the
corresponding cpu, not the current cpu, and bpf_map_lookup_elem percpu map
cannot do it. So add bpf_map_lookup_percpu_elem to accomplish it for
percpu_array_map, percpu_hash_map, lru_percpu_hash_map.

v1->v2: Addressed comments from Alexei Starovoitov.
- add a selftest for bpf_map_lookup_percpu_elem.
====================

Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parents 571b8739 ed7c1377
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment