]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Fix perf record in kernel/user space
authorMao Han <han_mao@c-sky.com>
Tue, 4 Jun 2019 10:54:49 +0000 (18:54 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Fri, 19 Jul 2019 06:21:36 +0000 (14:21 +0800)
commitbcc6a67ea944b2dad579c92aaf17956d37c771a1
tree540a4403883432901eb55b4ee166b281addeaa53
parentf14ff4d727d87cc2359c70d665bf41c330a305da
csky: Fix perf record in kernel/user space

csky_pmu_event_init is called several times during the perf record
initialzation. After configure the event counter in either kernel
space or user space, csky_pmu_event_init is called twice with no
attr specified. Configuration will be overwritten with sampling in
both kernel space and user space. --all-kernel/--all-user is
useless without this patch applied.

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/kernel/perf_event.c