| /tools/lib/api/ |
| A D | io.h | 110 if (ch < 0) in io__get_hex() 111 return ch; in io__get_hex() 112 if (ch >= '0' && ch <= '9') in io__get_hex() 114 else if (ch >= 'a' && ch <= 'f') in io__get_hex() 116 else if (ch >= 'A' && ch <= 'F') in io__get_hex() 121 return ch; in io__get_hex() 139 if (ch < 0) in io__get_dec() 140 return ch; in io__get_dec() 141 if (ch >= '0' && ch <= '9') in io__get_dec() 146 return ch; in io__get_dec() [all …]
|
| /tools/lib/symbol/ |
| A D | kallsyms.c | 22 int ch; in read_to_eol() local 25 ch = io__get_char(io); in read_to_eol() 26 if (ch < 0 || ch == '\n') in read_to_eol() 49 int ch; in kallsyms__parse() local 64 ch = io__get_char(&io); in kallsyms__parse() 65 if (ch < 0 || ch == '\n') in kallsyms__parse() 67 symbol_name[i] = ch; in kallsyms__parse()
|
| /tools/perf/tests/ |
| A D | api-io.c | 92 int ch, ret = 0; in do_test_get_char() local 104 ch = io__get_char(&io); in do_test_get_char() 105 EXPECT_EQUAL(ch, -1); in do_test_get_char() 139 int ch, ret = 0; in do_test_get_hex() local 147 EXPECT_EQUAL(ch, ch1); in do_test_get_hex() 151 EXPECT_EQUAL(ch, ch2); in do_test_get_hex() 155 EXPECT_EQUAL(ch, ch3); in do_test_get_hex() 220 int ch, ret = 0; in do_test_get_dec() local 228 EXPECT_EQUAL(ch, ch1); in do_test_get_dec() 232 EXPECT_EQUAL(ch, ch2); in do_test_get_dec() [all …]
|
| A D | tests-scripts.c | 82 int ch, pos = 0; in shell_test__description() local 94 ch = io__get_char(&io); in shell_test__description() 95 if (ch < 0) in shell_test__description() 97 } while (ch != '\n'); in shell_test__description() 100 ch = io__get_char(&io); in shell_test__description() 101 if (ch < 0) in shell_test__description() 103 } while (ch == '#' || isspace(ch)); in shell_test__description() 104 while (ch > 0 && ch != '\n') { in shell_test__description() 105 desc[pos++] = ch; in shell_test__description() 108 ch = io__get_char(&io); in shell_test__description()
|
| /tools/testing/selftests/bpf/ |
| A 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/perf/util/ |
| A D | demangle-rust-v0.c | 64 return ch < 0x20 || (ch >= 0x7f && ch < 0xa0); in unicode_iscontrol() 73 if (ch < 0x20) { in unicode_isprint() 76 if (ch < 0x7f) { in unicode_isprint() 83 (void)ch; in unicode_isgraphemextend() 505 switch (ch) { in char_to_string() 726 if (!(('0' <= ch && ch <= '9') || ('a' <= ch && ch <= 'f'))) { in parser_hex_nibbles() 737 if ('0' <= ch && ch <= '9') { in parser_digit_10() 748 if ('0' <= ch && ch <= '9') { in parser_digit_62() 752 } else if ('a' <= ch && ch <= 'z') { in parser_digit_62() 756 } else if ('A' <= ch && ch <= 'Z') { in parser_digit_62() [all …]
|
| A D | block-info.c | 104 struct cyc_hist *ch, int offset, in init_block_info() argument 109 bi->start = ch->start; in init_block_info() 111 bi->cycles = ch->cycles; in init_block_info() 112 bi->cycles_aggr = ch->cycles_aggr; in init_block_info() 113 bi->num = ch->num; in init_block_info() 114 bi->num_aggr = ch->num_aggr; in init_block_info() 117 memcpy(bi->cycles_spark, ch->cycles_spark, in init_block_info() 133 struct cyc_hist *ch; in block_info__process_sym() local 147 ch = notes->branch->cycles_hist; in block_info__process_sym() 149 if (ch[i].num_aggr) { in block_info__process_sym() [all …]
|
| A D | annotate.c | 176 ch[offset].num_aggr++; in __symbol__account_cycles() 190 if (ch[offset].num) { in __symbol__account_cycles() 195 ch[offset].num = 0; in __symbol__account_cycles() 204 ch[offset].cycles_spark[ch[offset].num] = cycles; in __symbol__account_cycles() 209 ch[offset].num++; in __symbol__account_cycles() 474 if (n_insn && ch->num && ch->cycles) { in annotation__count_and_fill() 477 float ipc = n_insn / ((double)ch->cycles / (double)ch->num); in annotation__count_and_fill() 527 if (ch && ch->cycles) { in annotation__compute_ipc() 539 annotation__count_and_fill(notes, ch->start, offset, ch); in annotation__compute_ipc() 541 al->cycles->avg = ch->cycles_aggr / ch->num_aggr; in annotation__compute_ipc() [all …]
|
| A D | srcline.c | 515 int ch; in addr2line_configure() local 522 ch = io__get_char(&io); in addr2line_configure() 523 if (ch == ',') { in addr2line_configure() 528 } else if (ch == '0') { in addr2line_configure() 547 ch = io__get_char(&io); in addr2line_configure() 548 if (ch <= 0) in addr2line_configure() 550 if (ch == '\n') in addr2line_configure() 619 int ch; in read_addr2line_record() local 631 ch = io__get_char(io); in read_addr2line_record() 632 } while (ch > 0 && ch != '\n'); in read_addr2line_record() [all …]
|
| A D | debug.c | 181 unsigned char ch = (unsigned char)val; in trace_event_printer() local 207 isprint(ch) && isascii(ch) ? ch : '.'); in trace_event_printer()
|
| A D | config.c | 207 int ch = get_next_char(); in get_extended_base_var() local 209 if (ch == '\n') in get_extended_base_var() 211 if (ch == '"') in get_extended_base_var() 213 if (ch == '\\') { in get_extended_base_var() 214 ch = get_next_char(); in get_extended_base_var() 215 if (ch == '\n') in get_extended_base_var() 218 name[baselen++] = ch; in get_extended_base_var()
|
| A D | synthetic-events.c | 301 int ch; in read_proc_maps_line() local 312 if (ch == 'r') in read_proc_maps_line() 314 else if (ch != '-') in read_proc_maps_line() 317 if (ch == 'w') in read_proc_maps_line() 319 else if (ch != '-') in read_proc_maps_line() 322 if (ch == 'x') in read_proc_maps_line() 327 if (ch == 's') in read_proc_maps_line() 347 if (ch != ' ') { in read_proc_maps_line() 355 if (ch < 0) in read_proc_maps_line() 357 if (ch == '\0' || ch == '\n' || in read_proc_maps_line() [all …]
|
| /tools/thermal/tmon/ |
| A D | tui.c | 418 if (ch == ptdata.nr_cooling_dev) { in handle_input_val() 430 CDEV, ptdata.cdi[ch].instance); in handle_input_val() 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() 468 int ch; in handle_tui_events() local 485 handle_input_choice(ch); in handle_tui_events() 487 if (ch == 'q' || ch == 'Q') in handle_tui_events() 488 ch = 0; in handle_tui_events() [all …]
|
| A D | sysfs.c | 150 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/testing/selftests/cgroup/ |
| A D | memcg_protection.m | 41 ch = []; variable 83 ch = [ch ; c]; variable
|
| /tools/testing/selftests/arm64/signal/ |
| A D | .gitignore | 13 !*.[ch]
|
| /tools/include/nolibc/ |
| A D | stdio.h | 138 unsigned char ch; in fgetc() local 140 if (read(fileno(stream), &ch, 1) <= 0) in fgetc() 142 return ch; in fgetc() 159 unsigned char ch = c; in fputc() local 161 if (write(fileno(stream), &ch, 1) <= 0) in fputc() 163 return ch; in fputc()
|
| /tools/testing/selftests/kvm/lib/ |
| A D | guest_sprintf.c | 12 static int isdigit(int ch) in isdigit() argument 14 return (ch >= '0') && (ch <= '9'); in isdigit()
|
| /tools/perf/tests/shell/lib/ |
| A D | attr.py | 421 ch = logging.StreamHandler() 422 ch.setLevel(level) 424 ch.setFormatter(formatter) 425 log.addHandler(ch)
|
| /tools/spi/ |
| A D | spidev_test.c | 101 unsigned int ch; in unescape() local 105 match = sscanf(src + 2, "%2x", &ch); in unescape() 110 *dst++ = (unsigned char)ch; in unescape()
|
| /tools/testing/selftests/net/ |
| A D | bpf.mk | 45 $(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
|
| /tools/testing/selftests/hid/ |
| A D | Makefile | 122 $(DEFAULT_BPFTOOL): $(wildcard $(BPFTOOLDIR)/*.[ch] $(BPFTOOLDIR)/Makefile) \ 132 $(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \ 139 $(HOST_BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
|
| /tools/sched_ext/ |
| A D | Makefile | 136 $(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \ 145 $(HOST_BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \ 154 $(DEFAULT_BPFTOOL): $(wildcard $(BPFTOOLDIR)/*.[ch] $(BPFTOOLDIR)/Makefile) \
|
| /tools/power/acpi/tools/acpidbg/ |
| A D | acpidbg.c | 382 int ch; in main() local 386 while ((ch = getopt(argc, argv, "b:f:h")) != -1) { in main() 387 switch (ch) { in main()
|
| /tools/perf/util/arm-spe-decoder/ |
| A D | arm-spe-pkt-decoder.c | 426 int ch, pat; in arm_spe_pkt_desc_addr() local 448 ch = !!SPE_ADDR_PKT_GET_CH(payload); in arm_spe_pkt_desc_addr() 453 payload, ns, ch, pat); in arm_spe_pkt_desc_addr()
|