]> git.baikalelectronics.ru Git - kernel.git/commit
perf core: Allocate perf_event in the target node memory
authorNamhyung Kim <namhyung@kernel.org>
Thu, 11 Mar 2021 11:54:13 +0000 (20:54 +0900)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 16 Mar 2021 20:44:43 +0000 (21:44 +0100)
commitcf158cab5ec2d642ab72dba3876e27c135cf0484
tree038304f39554a28108481e82015246969e35328a
parentf3e4efe1bff850058c4eed90eb66fee386e83b15
perf core: Allocate perf_event in the target node memory

For cpu events, it'd better allocating them in the corresponding node
memory as they would be mostly accessed by the target cpu.  Although
perf tools sets the cpu affinity before calling perf_event_open, there
are places it doesn't (notably perf record) and we should consider
other external users too.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210311115413.444407-2-namhyung@kernel.org
kernel/events/core.c