/tools/testing/selftests/bpf/ |
D | test_tag.c | 68 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/ |
D | tui.c | 415 static void handle_input_val(int ch) in handle_input_val() argument 427 if (ch == ptdata.nr_cooling_dev) { in handle_input_val() 439 CDEV, ptdata.cdi[ch].instance); in handle_input_val() 451 static void handle_input_choice(int ch) in handle_input_choice() argument 457 if ((ch >= 'A' && ch <= 'A' + ptdata.nr_cooling_dev) || in handle_input_choice() 458 (ch >= 'a' && ch <= 'a' + ptdata.nr_cooling_dev)) { in handle_input_choice() 459 base = (ch < 'a') ? 'A' : 'a'; in handle_input_choice() 460 cdev_id = ch - base; in handle_input_choice() 470 snprintf(buf, sizeof(buf), "Invalid selection %d", ch); in handle_input_choice() 477 int ch; in handle_tui_events() local [all …]
|
D | sysfs.c | 158 char *ch; in get_instance_id() local 161 ch = strtok(name, "_"); in get_instance_id() 162 while (ch != NULL) { in get_instance_id() 164 syslog(LOG_INFO, "%s:%s:%s:%d", __func__, name, ch, i); in get_instance_id() 165 ch = strtok(NULL, "_"); in get_instance_id() 167 return atol(ch + skip); in get_instance_id()
|
/tools/perf/util/ |
D | util.c | 329 static int hex(char ch) in hex() argument 331 if ((ch >= '0') && (ch <= '9')) in hex() 332 return ch - '0'; in hex() 333 if ((ch >= 'a') && (ch <= 'f')) in hex() 334 return ch - 'a' + 10; in hex() 335 if ((ch >= 'A') && (ch <= 'F')) in hex() 336 return ch - 'A' + 10; in hex()
|
D | config.c | 184 int ch = get_next_char(); in get_extended_base_var() local 186 if (ch == '\n') in get_extended_base_var() 188 if (ch == '"') in get_extended_base_var() 190 if (ch == '\\') { in get_extended_base_var() 191 ch = get_next_char(); in get_extended_base_var() 192 if (ch == '\n') in get_extended_base_var() 195 name[baselen++] = ch; in get_extended_base_var()
|
D | debug.c | 120 unsigned char ch = (unsigned char)val; in trace_event_printer() local 145 isprint(ch) ? ch : '.'); in trace_event_printer()
|
D | annotate.c | 676 struct cyc_hist *ch; in __symbol__account_cycles() local 678 ch = notes->src->cycles_hist; in __symbol__account_cycles() 687 ch[offset].num_aggr++; in __symbol__account_cycles() 688 ch[offset].cycles_aggr += cycles; in __symbol__account_cycles() 690 if (!have_start && ch[offset].have_start) in __symbol__account_cycles() 692 if (ch[offset].num) { in __symbol__account_cycles() 693 if (have_start && (!ch[offset].have_start || in __symbol__account_cycles() 694 ch[offset].start > start)) { in __symbol__account_cycles() 695 ch[offset].have_start = 0; in __symbol__account_cycles() 696 ch[offset].cycles = 0; in __symbol__account_cycles() [all …]
|
/tools/perf/ui/browsers/ |
D | annotate.c | 984 struct cyc_hist *ch) in count_and_fill() argument 990 if (n_insn && ch->num && ch->cycles) { in count_and_fill() 991 float ipc = n_insn / ((double)ch->cycles / (double)ch->num); in count_and_fill() 994 if (ch->reset >= 0x7fff || ch->reset >= ch->num / 2) in count_and_fill() 1022 struct cyc_hist *ch; in annotate__compute_ipc() local 1024 ch = ¬es->src->cycles_hist[offset]; in annotate__compute_ipc() 1025 if (ch && ch->cycles) { in annotate__compute_ipc() 1028 if (ch->have_start) in annotate__compute_ipc() 1029 count_and_fill(browser, ch->start, offset, ch); in annotate__compute_ipc() 1031 if (dl && ch->num_aggr) in annotate__compute_ipc() [all …]
|
/tools/perf/tests/ |
D | attr.py | 343 ch = logging.StreamHandler() 344 ch.setLevel(level) 346 ch.setFormatter(formatter) 347 log.addHandler(ch)
|
/tools/spi/ |
D | spidev_test.c | 98 unsigned int ch; in unescape() local 102 match = sscanf(src + 2, "%2x", &ch); in unescape() 107 *dst++ = (unsigned char)ch; in unescape()
|
/tools/power/acpi/tools/acpidbg/ |
D | acpidbg.c | 385 int ch; in main() local 389 while ((ch = getopt(argc, argv, "b:f:h")) != -1) { in main() 390 switch (ch) { in main()
|
/tools/lib/traceevent/ |
D | event-parse.c | 878 static enum event_type get_type(int ch) in get_type() argument 880 if (ch == '\n') in get_type() 882 if (isspace(ch)) in get_type() 884 if (isalnum(ch) || ch == '_') in get_type() 886 if (ch == '\'') in get_type() 888 if (ch == '"') in get_type() 890 if (!isprint(ch)) in get_type() 892 if (ch == '(' || ch == ')' || ch == ',') in get_type() 948 int ch, last_ch, quote_ch, next_ch; in __read_token() local 956 ch = __read_char(); in __read_token() [all …]
|
/tools/perf/arch/x86/util/ |
D | perf_regs.c | 56 SDT_NAME_REG(ch, cx),
|
/tools/power/cpupower/po/ |
D | cs.po | 354 " 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/ |
D | ktest.pl | 1889 my $ch; 1921 while (sysread $fp, $ch, 1) { 1922 $line .= $ch; 1923 last if ($ch eq "\n");
|
/tools/perf/ |
D | builtin-script.c | 1149 unsigned char ch = (unsigned char)val; in print_sample_bpf_output_printer() local 1173 if (printer_data->hit_nul && ch) in print_sample_bpf_output_printer() 1176 if (!isprint(ch)) { in print_sample_bpf_output_printer() 1182 if (ch == '\0') in print_sample_bpf_output_printer() 1187 printf("%c", ch); in print_sample_bpf_output_printer()
|
D | builtin-trace.c | 1843 unsigned char ch = (unsigned char)val; in bpf_output__printer() local 1847 fprintf(output, "%c", isprint(ch) ? ch : '.'); in bpf_output__printer()
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 2305 char *ch; in get_num_ht_siblings() local 2318 ch = strchr(str, character); in get_num_ht_siblings() 2319 while (ch != NULL) { in get_num_ht_siblings() 2321 ch = strchr(ch+1, character); in get_num_ht_siblings()
|