diff options
author | Joe Jin <[email protected]> | 2011-01-07 14:50:12 +0800 |
---|---|---|
committer | Konrad Rzeszutek Wilk <[email protected]> | 2011-01-10 10:46:32 -0500 |
commit | 110e7c7e4f8a61a34e0ab88fc9bdf4d5c6d220b2 (patch) | |
tree | 9c489bc508c244fb43d97fd79a1618281845d91c /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | fc550e95921e109f3778a6b2dc560d63388810ab (diff) |
xen/event: validate irq before get evtchn by irq
When retrieving the event channel number from irq, the irq
number may not be valid under some conditions.
So far that can be when we suspend/resume and irq ends with -1.
Validate and return sanitized irq and provide diagnostics information.
[v3: added unlikely on the WARN path]
[v2: reworded the commit message]
Signed-off-by: Joe Jin <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Tested-by: Gurudas Pai <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>
Cc: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions