diff options
author | 2022-05-10 15:56:57 +0530 | |
---|---|---|
committer | 2022-05-10 12:14:27 +0100 | |
commit | 33835e8dfb3c79821cdc6e2a9b48ae05bd4820dc (patch) | |
tree | 2683cfe1750bab8b6c6c37841fc6dd32007a26a7 /scripts/gdb/linux/utils.py | |
parent | drivers/perf: hisi: Add Support for CPA PMU (diff) | |
download | wireguard-linux-33835e8dfb3c79821cdc6e2a9b48ae05bd4820dc.tar.xz wireguard-linux-33835e8dfb3c79821cdc6e2a9b48ae05bd4820dc.zip |
perf/marvell_cn10k: Fix tad_pmu_event_init() to check pmu type first
Make sure to check the pmu type first and then check event->attr.disabled.
Doing so would avoid reading the disabled attribute of an event that is
not handled by TAD PMU.
Signed-off-by: Tanmay Jagdale <tanmay@marvell.com>
Link: https://lore.kernel.org/r/20220510102657.487539-1-tanmay@marvell.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions