Commit eef6c034 authored by Junhao He's avatar Junhao He Committed by Ma Wupeng
Browse files

perf cs-etm: add error logging to cs_etm_is_etmv4()

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I79882


CVE: NA

----------------------------------------------------------------------

When setting up SMT, not every process has an ETM, so the path
".../cs_etm/cpux/trcidr/trcidr0" does not exist, and the function
perf_pmu__scan_file() will return an error.
Log a error when read fails.

Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
parent 3561c168
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment