diff options
author | Kan Liang <[email protected]> | 2019-04-30 17:53:43 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-06-17 12:36:17 +0200 |
commit | 543ac280b3576c0009e8c0fcd4d6bfc9978d7bd0 (patch) | |
tree | bb62b6e61f94b638ad07b2e5d05218d1825c1c0c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | faaeff98666c24376cebd0b106504d05a36881d1 (diff) |
perf/x86/intel/uncore: Handle invalid event coding for free-running counter
Counting with invalid event coding for free-running counter may cause
OOPs, e.g. uncore_iio_free_running_0/event=1/.
Current code only validate the event with free-running event format,
event=0xff,umask=0xXY. Non-free-running event format never be checked
for the PMU with free-running counters.
Add generic hw_config() to check and reject the invalid event coding
for free-running PMU.
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Fixes: 0f519f0352e3 ("perf/x86/intel/uncore: Support IIO free-running counters on SKX")
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions