Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Guo Ren <[email protected]>
- Loading branch information