Lines Matching +full:- +full:_
1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.de>
32 …printf(_("Couldn't count the number of CPUs (%s: %s), assuming 1\n"), "/proc/stat", strerror(errno… in count_cpus()
39 value[LINE_LEN - 1] = '\0'; in count_cpus()
40 if (strlen(value) < (LINE_LEN - 2)) in count_cpus()
64 printf(_(" minimum CPU frequency - maximum CPU frequency - governor\n")); in proc_cpufreq_output()
75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output()
76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output()
78 printf("CPU%3d %9lu kHz (%3d %%) - %9lu kHz (%3d %%) - %s\n", in proc_cpufreq_output()
79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output()
80 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output()
133 printf(_("Error while evaluating Boost Capabilities" in get_boost_mode_x86()
134 " on CPU %d -- are you root?\n"), cpu); in get_boost_mode_x86()
143 printf(_(" boost state support:\n")); in get_boost_mode_x86()
145 printf(_(" Supported: %s\n"), support ? _("yes") : _("no")); in get_boost_mode_x86()
146 printf(_(" Active: %s\n"), active ? _("yes") : _("no")); in get_boost_mode_x86()
158 printf(_(" Boost States: %d\n"), b_states); in get_boost_mode_x86()
159 printf(_(" Total States: %d\n"), pstate_no); in get_boost_mode_x86()
164 printf(_(" Pstate-Pb%d: %luMHz (boost state)" in get_boost_mode_x86()
167 printf(_(" Pstate-P%d: %luMHz\n"), in get_boost_mode_x86()
168 i - b_states, pstates[i]); in get_boost_mode_x86()
181 dprint (" Ratio: 0x%llx - bclk: %f\n", in get_boost_mode_x86()
186 printf(_(" %.0f MHz max turbo 4 active cores\n"), in get_boost_mode_x86()
191 printf(_(" %.0f MHz max turbo 3 active cores\n"), in get_boost_mode_x86()
196 printf(_(" %.0f MHz max turbo 2 active cores\n"), in get_boost_mode_x86()
201 printf(_(" %.0f MHz max turbo 1 active cores\n"), in get_boost_mode_x86()
212 printf(_(" boost state support:\n")); in get_boost_mode_generic()
213 printf(_(" Active: %s\n"), active ? _("yes") : _("no")); in get_boost_mode_generic()
219 /* --boost / -b */
234 printf(_(" boost frequency steps: ")); in get_boost_mode()
235 while (freqs->next) { in get_boost_mode()
236 print_speed(freqs->frequency, no_rounding); in get_boost_mode()
238 freqs = freqs->next; in get_boost_mode()
240 print_speed(freqs->frequency, no_rounding); in get_boost_mode()
248 /* --freq / -f */
253 printf(_(" current CPU frequency: ")); in get_freq_kernel()
255 printf(_(" Unable to call to kernel\n")); in get_freq_kernel()
256 return -EINVAL; in get_freq_kernel()
262 printf(_(" (asserted by call to kernel)\n")); in get_freq_kernel()
267 /* --hwfreq / -w */
274 return -EINVAL; in get_freq_hardware()
277 printf(_(" current CPU frequency: ")); in get_freq_hardware()
280 return -EINVAL; in get_freq_hardware()
286 printf(_(" (asserted by call to hardware)\n")); in get_freq_hardware()
290 /* --hwlimits / -l */
297 printf(_("Not Available\n")); in get_hardware_limits()
298 return -EINVAL; in get_hardware_limits()
302 printf(_(" hardware limits: ")); in get_hardware_limits()
304 printf(" - "); in get_hardware_limits()
313 /* --driver / -d */
319 printf(_(" no or unknown cpufreq driver is active on this CPU\n")); in get_driver()
320 return -EINVAL; in get_driver()
327 /* --policy / -p */
333 printf(_(" Unable to determine current policy\n")); in get_policy()
334 return -EINVAL; in get_policy()
336 printf(_(" current policy: frequency should be within ")); in get_policy()
337 print_speed(policy->min, no_rounding); in get_policy()
338 printf(_(" and ")); in get_policy()
339 print_speed(policy->max, no_rounding); in get_policy()
342 printf(_("The governor \"%s\" may decide which speed to use\n" in get_policy()
344 policy->governor); in get_policy()
349 /* --governors / -g */
356 printf(_(" available cpufreq governors: ")); in get_available_governors()
358 printf(_("Not Available\n")); in get_available_governors()
359 return -EINVAL; in get_available_governors()
362 while (governors->next) { in get_available_governors()
363 printf("%s ", governors->governor); in get_available_governors()
364 governors = governors->next; in get_available_governors()
366 printf("%s\n", governors->governor); in get_available_governors()
372 /* --affected-cpus / -a */
378 printf(_(" CPUs which need to have their frequency coordinated by software: ")); in get_affected_cpus()
380 printf(_("Not Available\n")); in get_affected_cpus()
381 return -EINVAL; in get_affected_cpus()
384 while (cpus->next) { in get_affected_cpus()
385 printf("%d ", cpus->cpu); in get_affected_cpus()
386 cpus = cpus->next; in get_affected_cpus()
388 printf("%d\n", cpus->cpu); in get_affected_cpus()
393 /* --related-cpus / -r */
399 printf(_(" CPUs which run at the same hardware frequency: ")); in get_related_cpus()
401 printf(_("Not Available\n")); in get_related_cpus()
402 return -EINVAL; in get_related_cpus()
405 while (cpus->next) { in get_related_cpus()
406 printf("%d ", cpus->cpu); in get_related_cpus()
407 cpus = cpus->next; in get_related_cpus()
409 printf("%d\n", cpus->cpu); in get_related_cpus()
414 /* --stats / -s */
423 print_speed(stats->frequency, no_rounding); in get_freq_stats()
425 (100.0 * stats->time_in_state) / total_time); in get_freq_stats()
428 stats->frequency, stats->time_in_state); in get_freq_stats()
429 stats = stats->next; in get_freq_stats()
439 /* --epp / -z */
447 return -EINVAL; in get_epp()
449 printf(_(" energy performance preference: %s\n"), epp); in get_epp()
456 /* --latency / -y */
463 return -EINVAL; in get_latency()
465 printf(_(" maximum transition latency: ")); in get_latency()
467 printf(_(" Cannot determine or is not supported.\n")); in get_latency()
468 return -EINVAL; in get_latency()
479 /* --performance / -c */
503 printf(_(" available frequency steps: ")); in debug_output_one()
504 while (freqs->next) { in debug_output_one()
505 print_speed(freqs->frequency, no_rounding); in debug_output_one()
507 freqs = freqs->next; in debug_output_one()
509 print_speed(freqs->frequency, no_rounding); in debug_output_one()
531 {"related-cpus", no_argument, NULL, 'r'},
532 {"affected-cpus", no_argument, NULL, 'a'},
537 {"no-rounding", no_argument, NULL, 'n'},
560 case -1: in cmd_freq_info()
579 output_param = -1; in cmd_freq_info()
587 output_param = -1; in cmd_freq_info()
605 printf(_("The argument passed to this tool can't be " in cmd_freq_info()
606 "combined with passing a --cpu argument\n")); in cmd_freq_info()
607 return -EINVAL; in cmd_freq_info()
621 case -1: in cmd_freq_info()
622 printf(_("You can't specify more than one --cpu parameter and/or\n" in cmd_freq_info()
623 "more than one output-specific argument\n")); in cmd_freq_info()
624 return -EINVAL; in cmd_freq_info()
626 printf(_("invalid or unknown argument\n")); in cmd_freq_info()
627 return -EINVAL; in cmd_freq_info()
639 printf(_("analyzing CPU %d:\n"), cpu); in cmd_freq_info()
642 printf(_(" *is offline\n")); in cmd_freq_info()