Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 18 of 18) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_tag.c68 static int __hex2bin(char ch) in __hex2bin() argument
70 if ((ch >= '0') && (ch <= '9')) in __hex2bin()
71 return ch - '0'; in __hex2bin()
72 ch = tolower(ch); in __hex2bin()
73 if ((ch >= 'a') && (ch <= 'f')) in __hex2bin()
74 return ch - 'a' + 10; in __hex2bin()
/tools/thermal/tmon/
Dtui.c406 static void handle_input_val(int ch) in handle_input_val() argument
418 if (ch == ptdata.nr_cooling_dev) { in handle_input_val()
430 CDEV, ptdata.cdi[ch].instance); in handle_input_val()
442 static void handle_input_choice(int ch) in handle_input_choice() argument
448 if ((ch >= 'A' && ch <= 'A' + ptdata.nr_cooling_dev) || in handle_input_choice()
449 (ch >= 'a' && ch <= 'a' + ptdata.nr_cooling_dev)) { in handle_input_choice()
450 base = (ch < 'a') ? 'A' : 'a'; in handle_input_choice()
451 cdev_id = ch - base; in handle_input_choice()
461 snprintf(buf, sizeof(buf), "Invalid selection %d", ch); in handle_input_choice()
468 int ch; in handle_tui_events() local
[all …]
Dsysfs.c150 char *ch; in get_instance_id() local
153 ch = strtok(name, "_"); in get_instance_id()
154 while (ch != NULL) { in get_instance_id()
156 syslog(LOG_INFO, "%s:%s:%s:%d", __func__, name, ch, i); in get_instance_id()
157 ch = strtok(NULL, "_"); in get_instance_id()
159 return atol(ch + skip); in get_instance_id()
/tools/perf/util/
Ddebug.c120 unsigned char ch = (unsigned char)val; in trace_event_printer() local
146 isprint(ch) && isascii(ch) ? ch : '.'); in trace_event_printer()
Dannotate.c817 static int __symbol__account_cycles(struct cyc_hist *ch, in __symbol__account_cycles() argument
830 ch[offset].num_aggr++; in __symbol__account_cycles()
831 ch[offset].cycles_aggr += cycles; in __symbol__account_cycles()
833 if (cycles > ch[offset].cycles_max) in __symbol__account_cycles()
834 ch[offset].cycles_max = cycles; in __symbol__account_cycles()
836 if (ch[offset].cycles_min) { in __symbol__account_cycles()
837 if (cycles && cycles < ch[offset].cycles_min) in __symbol__account_cycles()
838 ch[offset].cycles_min = cycles; in __symbol__account_cycles()
840 ch[offset].cycles_min = cycles; in __symbol__account_cycles()
842 if (!have_start && ch[offset].have_start) in __symbol__account_cycles()
[all …]
Dconfig.c189 int ch = get_next_char(); in get_extended_base_var() local
191 if (ch == '\n') in get_extended_base_var()
193 if (ch == '"') in get_extended_base_var()
195 if (ch == '\\') { in get_extended_base_var()
196 ch = get_next_char(); in get_extended_base_var()
197 if (ch == '\n') in get_extended_base_var()
200 name[baselen++] = ch; in get_extended_base_var()
Dtime-utils.c67 static int split_start_end(char **start, char **end, const char *ostr, char ch) in split_start_end() argument
81 d = strchr(start_str, ch); in split_start_end()
/tools/perf/tests/
Dattr.py348 ch = logging.StreamHandler()
349 ch.setLevel(level)
351 ch.setFormatter(formatter)
352 log.addHandler(ch)
/tools/spi/
Dspidev_test.c95 unsigned int ch; in unescape() local
99 match = sscanf(src + 2, "%2x", &ch); in unescape()
104 *dst++ = (unsigned char)ch; in unescape()
/tools/power/acpi/tools/acpidbg/
Dacpidbg.c382 int ch; in main() local
386 while ((ch = getopt(argc, argv, "b:f:h")) != -1) { in main()
387 switch (ch) { in main()
/tools/lib/traceevent/
Devent-parse.c937 static enum tep_event_type get_type(int ch) in get_type() argument
939 if (ch == '\n') in get_type()
941 if (isspace(ch)) in get_type()
943 if (isalnum(ch) || ch == '_') in get_type()
945 if (ch == '\'') in get_type()
947 if (ch == '"') in get_type()
949 if (!isprint(ch)) in get_type()
951 if (ch == '(' || ch == ')' || ch == ',') in get_type()
1007 int ch, last_ch, quote_ch, next_ch; in __read_token() local
1015 ch = __read_char(); in __read_token()
[all …]
/tools/perf/
Dbuiltin-diff.c604 struct cyc_hist *ch, int offset) in init_block_info() argument
607 bi->start = ch->start; in init_block_info()
609 bi->cycles = ch->cycles; in init_block_info()
610 bi->cycles_aggr = ch->cycles_aggr; in init_block_info()
611 bi->num = ch->num; in init_block_info()
612 bi->num_aggr = ch->num_aggr; in init_block_info()
618 struct cyc_hist *ch; in process_block_per_sym() local
631 ch = notes->src->cycles_hist; in process_block_per_sym()
633 if (ch[i].num_aggr) { in process_block_per_sym()
641 init_block_info(bi, he->ms.sym, &ch[i], i); in process_block_per_sym()
Dbuiltin-script.c1443 unsigned char ch = (unsigned char)val; in sample__fprintf_bpf_output() local
1468 if (printer_data->hit_nul && ch) in sample__fprintf_bpf_output()
1471 if (!isprint(ch)) { in sample__fprintf_bpf_output()
1477 if (ch == '\0') in sample__fprintf_bpf_output()
1482 printed += fprintf(fp, "%c", ch); in sample__fprintf_bpf_output()
Dbuiltin-trace.c2369 unsigned char ch = (unsigned char)val; in bpf_output__printer() local
2373 return fprintf(fp, "%c", isprint(ch) ? ch : '.'); in bpf_output__printer()
/tools/perf/arch/x86/util/
Dperf_regs.c74 SDT_NAME_REG(ch, cx),
/tools/testing/selftests/kvm/lib/
Dsparsebit.c2053 int ch; in get8() local
2055 ch = getchar(); in get8()
2056 if (ch == EOF) in get8()
2058 return ch; in get8()
/tools/power/cpupower/po/
Dcs.po354 " v těchto mezích.\n"
504 "Není-li při použití přepínačů označených * zadán parametr -c nebo --cpu,\n"
593 "Není-li při použití přepínačů označených * zadán parametr -c nebo --cpu,\n"
628 "Chyba při nastavování nových hodnot. Obvyklé problémy:\n"
/tools/testing/ktest/
Dktest.pl1979 my $ch;
2016 while (sysread $fp, $ch, 1) {
2017 $line .= $ch;
2018 last if ($ch eq "\n");