Skip to contentSkip to conversation

tools/power/x86/intel_pstate_tracer: fix a broken y-axis scale

PATCH Applied Doug Smythies 2 participants 2 messages Mar 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/power/x86/intel_pstate_tracer: fix a broken y-axis scale

A fixed y-axis scale was missed during a change to autoscale. Correct it.

Fixes 709bd70d070ee6d775c6e77e40e8444bd5fa123f

"tools/power/x86/intel_pstate_tracer: change several graphs to autoscale y-axis"

---
 tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py | 1 -
 1 file changed, 1 deletion(-)
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py +0 -1
index 256199c7a182..3c47865bb247 100755
@@ -235,7 +235,6 @@ def plot_duration_cpu():
     output_png = 'all_cpu_durations.png'
     g_plot = common_all_gnuplot_settings(output_png)
 #   autoscale this one, no set y range
-    g_plot('set ytics 0, 500')
     g_plot('set ylabel "Timer Duration (MilliSeconds)"')
     g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now()))
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 17 lines · Doug Smythies

A fixed y-axis scale was missed during a change to autoscale. Correct it.

Fixes 709bd70d070ee6d775c6e77e40e8444bd5fa123f

"tools/power/x86/intel_pstate_tracer: change several graphs to autoscale y-axis"

---
 tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py | 1 -
 1 file changed, 1 deletion(-)
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py +0 -0
index 256199c7a182..3c47865bb247 100755

tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py def plot_duration_cpu():

Quoted 8 lines
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py +0 -2
@@ -235,7 +235,6 @@ def plot_duration_cpu():
     output_png = 'all_cpu_durations.png'
     g_plot = common_all_gnuplot_settings(output_png)
 #   autoscale this one, no set y range
-    g_plot('set ytics 0, 500')
     g_plot('set ylabel "Timer Duration (MilliSeconds)"')
     g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now()))
 
--

Applied as 5.7 material, thanks!