Home
last modified time | relevance | path

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

/tools/perf/tests/
Dparse-metric.c192 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
194 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
206 double ratio; in test_ipc() local
214 compute_metric("IPC", vals, &ratio) == 0); in test_ipc()
217 ratio == 1.5); in test_ipc()
223 double ratio; in test_frontend() local
233 compute_metric("Frontend_Bound_SMT", vals, &ratio) == 0); in test_frontend()
236 ratio == 0.45); in test_frontend()
242 double ratio; in test_cache_miss_cycles() local
251 compute_metric("cache_miss_cycles", vals, &ratio) == 0); in test_cache_miss_cycles()
[all …]
/tools/perf/util/
Dstat-shadow.c302 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
311 if (ratio > grc_table[type][0]) in get_ratio_color()
313 else if (ratio > grc_table[type][1]) in get_ratio_color()
315 else if (ratio > grc_table[type][2]) in get_ratio_color()
454 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
463 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
465 if (ratio) in print_stalled_cycles_frontend()
467 ratio); in print_stalled_cycles_frontend()
478 double total, ratio = 0.0; in print_stalled_cycles_backend() local
[all …]
Dblock-info.c201 double ratio = 0.0; in block_total_cycles_pct_entry() local
204 ratio = (double)bi->cycles_aggr / (double)block_fmt->total_cycles; in block_total_cycles_pct_entry()
206 return color_pct(hpp, block_fmt->width, 100.0 * ratio); in block_total_cycles_pct_entry()
257 double ratio = 0.0; in block_cycles_pct_entry() local
262 ratio = (double)avg / (double)block_fmt->block_cycles; in block_cycles_pct_entry()
265 return color_pct(hpp, block_fmt->width, 100.0 * ratio); in block_cycles_pct_entry()
/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/testing/selftests/net/forwarding/
Dsch_ets_tests.sh54 local ratio=$(echo "scale=2; 100 * $d / $total" | bc -l)
56 test $(echo "$ratio > 95.0" | bc -l) -eq 1
59 log_info "Expected ratio >95% Measured ratio $ratio"
61 test $(echo "$ratio < 5" | bc -l) -eq 1
64 log_info "Expected ratio <5% Measured ratio $ratio"
/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.c2189 unsigned int ratio; in dump_nhm_platform_info() local
2195 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info()
2197 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2199 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info()
2201 ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2214 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local
2220 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits()
2221 if (ratio) in dump_hsw_turbo_ratio_limits()
2223 ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
2225 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()
857 int ratio_2_sysfs_khz(int ratio) in ratio_2_sysfs_khz() argument
861 return ratio * bclk_khz; in ratio_2_sysfs_khz()
[all …]
/tools/testing/selftests/powerpc/nx-gzip/
DREADME41 They are not intended for demonstrating performance or compression ratio.
/tools/perf/
Dbuiltin-diff.c1588 double ratio; in hpp__entry_pair() local
1610 ratio = pair->diff.period_ratio; in hpp__entry_pair()
1612 ratio = compute_ratio(he, pair); in hpp__entry_pair()
1614 if (ratio > 0.0) in hpp__entry_pair()
1615 scnprintf(buf, size, "%14.6F", ratio); in hpp__entry_pair()
Dbuiltin-record.c1618 float ratio = 0; in __cmd_record() local
1999 ratio = (float)rec->session->bytes_transferred/(float)rec->session->bytes_compressed; in __cmd_record()
2000 session->header.env.comp_ratio = ratio + 0.5; in __cmd_record()
2052 if (ratio) { in __cmd_record()
2055 ratio); in __cmd_record()
Ddesign.txt169 Using these additional values one can establish the overcommit ratio for a
Dbuiltin-trace.c4367 double ratio; local
4372 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0;
4376 printed += fprintf(fp, "%.1f%%", ratio);
/tools/perf/Documentation/
Dperf-diff.txt93 Differential computation selection - delta, ratio, wdiff, cycles,
265 ratio
Dtopdown.txt148 that represent a scaled ratio that represent the Level 1 bottleneck.
Dperf.data-file-format.txt369 u32 ratio;
Dperf-config.txt580 Possible values are 'delta', 'delta-abs', 'ratio' and
Dperf-intel-pt.txt894 "Power" events correspond to power event packets and CBR (core-to-bus ratio)