]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Introduce access remote cpu elem support in BPF percpu map'
authorAlexei Starovoitov <ast@kernel.org>
Thu, 12 May 2022 01:16:55 +0000 (18:16 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 12 May 2022 01:16:55 +0000 (18:16 -0700)
commit1982e72d9a4b866d4ef018f30430438b4fb5ea97
tree838c1e08c3b57feea8ff26e4c648e36bce8d9cc2
parent28d77454c8b52b6636bec4f03184812d035ed644
parent566c02346f345c9ae27b10e7a6124c5a989718b4
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: Alexei Starovoitov <ast@kernel.org>