aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJacob Pan <[email protected]>2016-11-28 13:53:11 -0800
committerRafael J. Wysocki <[email protected]>2016-11-29 00:02:29 +0100
commitcb43f81b8489dcb87555e16c17453f0a9fa690f2 (patch)
treec2adf0174613051b37795eda564ef537dada9727 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentb4005e9278a4e62819fb16ba4bc3430ca650d0ab (diff)
powercap/intel_rapl: fix and tidy up error handling
Commit e1399ba20eee ("powercap / RAPL: handle missing MSRs") added contraint_to_pl() function to return index into an array. But it can potentially return -EINVAL if powercap layer sends an out of range constraint ID. This patch adds sanity check. Unnecessary RAPL domain pointer check is removed since it must be initialized before calling rapl_unit_xlate(). Fixes: e1399ba20eee ("powercap / RAPL: handle missing MSRs") Reported-by: Odzioba, Lukasz <[email protected]> Reported-by: Koss, Marcin <[email protected]> Signed-off-by: Jacob Pan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions