aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2023-10-20 21:31:57 +0800
committerAlexei Starovoitov <[email protected]>2023-10-20 14:15:06 -0700
commitb460bc8302f222d346f0c15bba980eb8c36d6278 (patch)
tree73bd8effe56c8dcae3d9bfd166ff6772d5abb604 /tools/perf/scripts/python/sched-migration.py
parent394e6869f0185e89cb815db29bf819474df858ae (diff)
mm/percpu.c: introduce pcpu_alloc_size()
Introduce pcpu_alloc_size() to get the size of the dynamic per-cpu area. It will be used by bpf memory allocator in the following patches. BPF memory allocator maintains per-cpu area caches for multiple area sizes and its free API only has the to-be-freed per-cpu pointer, so it needs the size of dynamic per-cpu area to select the corresponding cache when bpf program frees the dynamic per-cpu pointer. Acked-by: Dennis Zhou <[email protected]> Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions