Home
last modified time | relevance | path

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

/tools/perf/util/
Dstat-shadow.c290 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
299 if (ratio > grc_table[type][0]) in get_ratio_color()
301 else if (ratio > grc_table[type][1]) in get_ratio_color()
303 else if (ratio > grc_table[type][2]) in get_ratio_color()
429 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
436 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
438 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
440 if (ratio) in print_stalled_cycles_frontend()
442 ratio); in print_stalled_cycles_frontend()
453 double total, ratio = 0.0; in print_stalled_cycles_backend() local
[all …]
/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh140 ratio=2
156 ratio=$OPTARG
157 if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
172 echo "Test scope: $ratio% hotplug memory"
194 target=`echo "a=$hotpluggable_num*$ratio; if ( a%100 ) a/100+1 else a/100" | bc`
195 echo -e "\t offline $ratio% hot-pluggable memory in online state"
259 if [ $((RANDOM % 100)) -lt $ratio ]; then
/tools/power/cpupower/utils/
Dcpufreq-info.c209 unsigned int ratio; in get_boost_mode_x86() local
220 ratio = (intel_turbo_ratio >> 24) & 0xFF; in get_boost_mode_x86()
221 if (ratio) in get_boost_mode_x86()
223 ratio * bclk); in get_boost_mode_x86()
225 ratio = (intel_turbo_ratio >> 16) & 0xFF; in get_boost_mode_x86()
226 if (ratio) in get_boost_mode_x86()
228 ratio * bclk); in get_boost_mode_x86()
230 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode_x86()
231 if (ratio) in get_boost_mode_x86()
233 ratio * bclk); in get_boost_mode_x86()
[all …]
/tools/power/x86/turbostat/
Dturbostat.c2072 unsigned int ratio; in dump_nhm_platform_info() local
2078 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info()
2080 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2082 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info()
2084 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2097 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local
2103 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits()
2104 if (ratio) in dump_hsw_turbo_ratio_limits()
2106 ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
2108 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits()
[all …]
/tools/thermal/tmon/
Dtmon.h99 void (*set_ratio)(unsigned long ratio);
100 unsigned long (*get_ratio)(unsigned long ratio);
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c118 int ratio_2_msr_perf(int ratio) in ratio_2_msr_perf() argument
123 return ratio; in ratio_2_msr_perf()
125 msr_perf = ratio * 255 / bdx_highest_ratio; in ratio_2_msr_perf()
128 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); in ratio_2_msr_perf()
134 int ratio; in msr_perf_2_ratio() local
142 ratio = (int)d; in msr_perf_2_ratio()
145 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); in msr_perf_2_ratio()
147 return ratio; in msr_perf_2_ratio()
804 int ratio_2_sysfs_khz(int ratio) in ratio_2_sysfs_khz() argument
808 return ratio * bclk_khz; in ratio_2_sysfs_khz()
[all …]
/tools/perf/
Dbuiltin-diff.c1483 double ratio; in hpp__entry_pair() local
1505 ratio = pair->diff.period_ratio; in hpp__entry_pair()
1507 ratio = compute_ratio(he, pair); in hpp__entry_pair()
1509 if (ratio > 0.0) in hpp__entry_pair()
1510 scnprintf(buf, size, "%14.6F", ratio); in hpp__entry_pair()
Dbuiltin-record.c1348 float ratio = 0; in __cmd_record() local
1679 ratio = (float)rec->session->bytes_transferred/(float)rec->session->bytes_compressed; in __cmd_record()
1680 session->header.env.comp_ratio = ratio + 0.5; in __cmd_record()
1732 if (ratio) { in __cmd_record()
1735 ratio); in __cmd_record()
Ddesign.txt169 Using these additional values one can establish the overcommit ratio for a
Dbuiltin-trace.c3777 double ratio; in trace__fprintf_thread() local
3782 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; in trace__fprintf_thread()
3786 printed += fprintf(fp, "%.1f%%", ratio); in trace__fprintf_thread()
/tools/perf/Documentation/
Dperf-diff.txt93 Differential computation selection - delta, ratio, wdiff, cycles,
256 ratio
Dperf.data-file-format.txt369 u32 ratio;
Dperf-config.txt529 Possible values are 'delta', 'delta-abs', 'ratio' and
Dintel-pt.txt784 "Power" events correspond to power event packets and CBR (core-to-bus ratio)