Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 13 of 13) sorted by relevance

/tools/perf/util/
Dstat-shadow.c249 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
258 if (ratio > grc_table[type][0]) in get_ratio_color()
260 else if (ratio > grc_table[type][1]) in get_ratio_color()
262 else if (ratio > grc_table[type][2]) in get_ratio_color()
362 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
369 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
371 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
373 if (ratio) in print_stalled_cycles_frontend()
375 ratio); in print_stalled_cycles_frontend()
384 double total, ratio = 0.0; in print_stalled_cycles_backend() local
[all …]
/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh136 ratio=10
152 ratio=$OPTARG
153 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
168 echo "Test scope: $ratio% hotplug memory"
190 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc`
191 echo -e "\t offline $ratio% hot-pluggable memory in online state"
255 if [ $((RANDOM % 100)) -lt $ratio ]; then
/tools/power/cpupower/utils/
Dcpufreq-info.c217 unsigned int ratio; in get_boost_mode() local
228 ratio = (intel_turbo_ratio >> 24) & 0xFF; in get_boost_mode()
229 if (ratio) in get_boost_mode()
231 ratio * bclk); in get_boost_mode()
233 ratio = (intel_turbo_ratio >> 16) & 0xFF; in get_boost_mode()
234 if (ratio) in get_boost_mode()
236 ratio * bclk); in get_boost_mode()
238 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode()
239 if (ratio) in get_boost_mode()
241 ratio * bclk); in get_boost_mode()
[all …]
/tools/power/x86/turbostat/
Dturbostat.c1783 unsigned int ratio; in dump_nhm_platform_info() local
1789 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info()
1791 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
1793 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info()
1795 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
1808 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local
1814 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits()
1815 if (ratio) in dump_hsw_turbo_ratio_limits()
1817 ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
1819 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits()
[all …]
/tools/thermal/tmon/
Dtmon.h105 void (*set_ratio)(unsigned long ratio);
106 unsigned long (*get_ratio)(unsigned long ratio);
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c119 int ratio_2_msr_perf(int ratio) in ratio_2_msr_perf() argument
124 return ratio; in ratio_2_msr_perf()
126 msr_perf = ratio * 255 / bdx_highest_ratio; in ratio_2_msr_perf()
129 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); in ratio_2_msr_perf()
135 int ratio; in msr_perf_2_ratio() local
143 ratio = (int)d; in msr_perf_2_ratio()
146 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); in msr_perf_2_ratio()
148 return ratio; in msr_perf_2_ratio()
805 int ratio_2_sysfs_khz(int ratio) in ratio_2_sysfs_khz() argument
809 return ratio * bclk_khz; in ratio_2_sysfs_khz()
[all …]
/tools/perf/
Dbuiltin-diff.c985 double ratio; in hpp__entry_pair() local
1007 ratio = pair->diff.period_ratio; in hpp__entry_pair()
1009 ratio = compute_ratio(he, pair); in hpp__entry_pair()
1011 if (ratio > 0.0) in hpp__entry_pair()
1012 scnprintf(buf, size, "%14.6F", ratio); in hpp__entry_pair()
Dbuiltin-trace.c2717 double ratio; in trace__fprintf_thread() local
2722 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; in trace__fprintf_thread()
2726 printed += fprintf(fp, "%.1f%%", ratio); in trace__fprintf_thread()
Ddesign.txt169 Using these additional values one can establish the overcommit ratio for a
/tools/perf/Documentation/
Dperf-diff.txt93 Differential computation selection - delta, ratio, wdiff, delta-abs
197 ratio
Dperf-config.txt510 Possible values are 'delta', 'delta-abs', 'ratio' and
Dintel-pt.txt754 "Power" events correspond to power event packets and CBR (core-to-bus ratio)
/tools/testing/selftests/x86/
Dmpx-mini-test.c1160 int ratio = 1000; in cover_buf_with_bt_entries() local
1164 nr_to_fill = buf_len / (sizeof(unsigned long) * ratio); in cover_buf_with_bt_entries()