Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 25) sorted by relevance

/tools/power/cpupower/utils/
Dcpufreq-set.c65 const struct freq_units *unit; in string_to_frequency() local
83 for (unit = def_units; unit->str_unit; unit++) { in string_to_frequency()
85 scan[i] && tolower(scan[i]) == unit->str_unit[i]; in string_to_frequency()
91 power = unit->power_of_ten; in string_to_frequency()
/tools/perf/util/
Dpmu.c151 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit()
157 alias->unit[sret] = '\0'; in perf_pmu__parse_unit()
162 alias->unit[0] = '\0'; in perf_pmu__parse_unit()
183 alias->unit[0] = '\0'; in perf_pmu__new_alias()
622 const char **unit, double *scale) in check_unit_scale() argument
629 if ((*unit && alias->unit) || in check_unit_scale()
633 if (alias->unit) in check_unit_scale()
634 *unit = alias->unit; in check_unit_scale()
657 info->unit = NULL; in perf_pmu__check_alias()
668 ret = check_unit_scale(alias, &info->unit, &info->scale); in perf_pmu__check_alias()
[all …]
Dpmu.h29 const char *unit; member
39 char unit[UNIT_MAX_LEN+1]; member
Dutil.c149 unsigned long convert_unit(unsigned long value, char *unit) in convert_unit() argument
151 *unit = ' '; in convert_unit()
155 *unit = 'K'; in convert_unit()
160 *unit = 'M'; in convert_unit()
165 *unit = 'G'; in convert_unit()
Dutil.h262 unsigned long convert_unit(unsigned long value, char *unit);
Devsel.h71 const char *unit; member
Dparse-events.c682 evsel->unit = info.unit; in parse_events_add_pmu()
Devsel.c202 evsel->unit = ""; in perf_evsel__init()
/tools/testing/selftests/vm/
Drun_vmtests10 while read name size unit; do
/tools/perf/
Dbuiltin-stat.c590 l = strlen(counter->unit); in __run_perf_stat()
753 fprintf(output, "%s%s", evsel->unit, csv_sep); in nsec_printout()
755 fprintf(output, "%-*s%s", unit_width, evsel->unit, csv_sep); in nsec_printout()
974 if (evsel->unit) in abs_printout()
977 evsel->unit, csv_sep); in abs_printout()
1100 char unit = 'M'; in abs_printout() local
1108 unit = 'K'; in abs_printout()
1111 fprintf(output, " # %8.3f %c/sec ", ratio, unit); in abs_printout()
1154 counter->unit, csv_sep); in print_aggr()
1207 counter->unit, csv_sep); in print_counter_aggr()
[all …]
Dbuiltin-report.c279 char unit; in hists__fprintf_nr_sample_events() local
310 nr_samples = convert_unit(nr_samples, &unit); in hists__fprintf_nr_sample_events()
311 ret = fprintf(fp, "# Samples: %lu%c", nr_samples, unit); in hists__fprintf_nr_sample_events()
Dbuiltin-timechart.c1895 char unit = 'n'; in parse_time() local
1898 if (sscanf(arg, "%" PRIu64 "%cs", value, &unit) > 0) { in parse_time()
1899 switch (unit) { in parse_time()
Ddesign.txt269 A counter group is scheduled onto the CPU as a unit, that is, it will
/tools/perf/ui/browsers/
Dhists.c1220 char unit; in hists__browser_title() local
1255 nr_samples = convert_unit(nr_samples, &unit); in hists__browser_title()
1258 nr_samples, unit, ev_name, nr_events); in hists__browser_title()
1823 char bf[256], unit; in perf_evsel_menu__write() local
1841 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write()
1843 unit, unit == ' ' ? "" : " ", ev_name); in perf_evsel_menu__write()
1851 nr_events = convert_unit(nr_events, &unit); in perf_evsel_menu__write()
1853 nr_events, unit, unit == ' ' ? "" : " "); in perf_evsel_menu__write()
/tools/testing/selftests/
DREADME.txt4 directory. These are intended to be small unit tests to exercise individual
/tools/testing/selftests/ftrace/
DREADME34 These are to be unit tests.
/tools/perf/Documentation/
Dperf-trace.txt69 specification with appended unit character - B/K/M/G. The
Dperf-kvm.txt125 specification with appended unit character - B/K/M/G. The
Dperf-top.txt71 specification with appended unit character - B/K/M/G. The
Dperf-record.txt92 specification with appended unit character - B/K/M/G. The
/tools/power/cpupower/po/
Dfr.po601 " by postfixing the value with the wanted unit name, without any space\n"
607 "3. on pourra pr�ciser l'unit� des fr�quences en postfixant sans aucune "
Dit.po608 " by postfixing the value with the wanted unit name, without any space\n"
618 " postponendo l'unità di misura al valore senza nessuno spazio fra loro\n"
Dde.po613 " by postfixing the value with the wanted unit name, without any space\n"
Dcs.po603 " by postfixing the value with the wanted unit name, without any space\n"
Dpt.po610 " by postfixing the value with the wanted unit name, without any space\n"