Home
last modified time | relevance | path

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

12

/tools/lib/api/
Dio.h73 int ch = io__get_char(io); in io__get_hex() local
75 if (ch < 0) in io__get_hex()
76 return ch; in io__get_hex()
77 if (ch >= '0' && ch <= '9') in io__get_hex()
78 *hex = (*hex << 4) | (ch - '0'); in io__get_hex()
79 else if (ch >= 'a' && ch <= 'f') in io__get_hex()
80 *hex = (*hex << 4) | (ch - 'a' + 10); in io__get_hex()
81 else if (ch >= 'A' && ch <= 'F') in io__get_hex()
82 *hex = (*hex << 4) | (ch - 'A' + 10); in io__get_hex()
86 return ch; in io__get_hex()
[all …]
/tools/perf/tests/
Dapi-io.c91 int ch, ret = 0; in do_test_get_char() local
98 ch = io__get_char(&io); in do_test_get_char()
100 EXPECT_EQUAL(ch, test_string[i]); in do_test_get_char()
103 ch = io__get_char(&io); in do_test_get_char()
104 EXPECT_EQUAL(ch, -1); in do_test_get_char()
138 int ch, ret = 0; in do_test_get_hex() local
144 ch = io__get_hex(&io, &hex); in do_test_get_hex()
146 EXPECT_EQUAL(ch, ch1); in do_test_get_hex()
148 ch = io__get_hex(&io, &hex); in do_test_get_hex()
150 EXPECT_EQUAL(ch, ch2); in do_test_get_hex()
[all …]
Dattr.py348 ch = logging.StreamHandler()
349 ch.setLevel(level)
351 ch.setFormatter(formatter)
352 log.addHandler(ch)
/tools/lib/symbol/
Dkallsyms.c22 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/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()
DMakefile170 $(OUTPUT)/bpf_testmod.ko: $(VMLINUX_BTF) $(wildcard bpf_testmod/Makefile bpf_testmod/*.[ch])
204 $(DEFAULT_BPFTOOL): $(wildcard $(BPFTOOLDIR)/*.[ch] $(BPFTOOLDIR)/Makefile) \
224 $(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
232 $(HOST_BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
/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/
Dblock-info.c100 struct cyc_hist *ch, int offset, in init_block_info() argument
104 bi->start = ch->start; in init_block_info()
106 bi->cycles = ch->cycles; in init_block_info()
107 bi->cycles_aggr = ch->cycles_aggr; in init_block_info()
108 bi->num = ch->num; in init_block_info()
109 bi->num_aggr = ch->num_aggr; in init_block_info()
112 memcpy(bi->cycles_spark, ch->cycles_spark, in init_block_info()
120 struct cyc_hist *ch; in block_info__process_sym() local
134 ch = notes->src->cycles_hist; in block_info__process_sym()
136 if (ch[i].num_aggr) { in block_info__process_sym()
[all …]
Ddebug.c156 unsigned char ch = (unsigned char)val; in trace_event_printer() local
182 isprint(ch) && isascii(ch) ? ch : '.'); in trace_event_printer()
Dannotate.c829 static int __symbol__account_cycles(struct cyc_hist *ch, in __symbol__account_cycles() argument
842 ch[offset].num_aggr++; in __symbol__account_cycles()
843 ch[offset].cycles_aggr += cycles; in __symbol__account_cycles()
845 if (cycles > ch[offset].cycles_max) in __symbol__account_cycles()
846 ch[offset].cycles_max = cycles; in __symbol__account_cycles()
848 if (ch[offset].cycles_min) { in __symbol__account_cycles()
849 if (cycles && cycles < ch[offset].cycles_min) in __symbol__account_cycles()
850 ch[offset].cycles_min = cycles; in __symbol__account_cycles()
852 ch[offset].cycles_min = cycles; in __symbol__account_cycles()
854 if (!have_start && ch[offset].have_start) in __symbol__account_cycles()
[all …]
Dconfig.c190 int ch = get_next_char(); in get_extended_base_var() local
192 if (ch == '\n') in get_extended_base_var()
194 if (ch == '"') in get_extended_base_var()
196 if (ch == '\\') { in get_extended_base_var()
197 ch = get_next_char(); in get_extended_base_var()
198 if (ch == '\n') in get_extended_base_var()
201 name[baselen++] = ch; in get_extended_base_var()
Dsynthetic-events.c300 int ch; in read_proc_maps_line() local
310 ch = io__get_char(io); in read_proc_maps_line()
311 if (ch == 'r') in read_proc_maps_line()
313 else if (ch != '-') in read_proc_maps_line()
315 ch = io__get_char(io); in read_proc_maps_line()
316 if (ch == 'w') in read_proc_maps_line()
318 else if (ch != '-') in read_proc_maps_line()
320 ch = io__get_char(io); in read_proc_maps_line()
321 if (ch == 'x') in read_proc_maps_line()
323 else if (ch != '-') in read_proc_maps_line()
[all …]
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/testing/selftests/arm64/signal/
D.gitignore5 !*.[ch]
/tools/testing/selftests/resctrl/
DMakefile10 $(OUTPUT)/resctrl_tests: $(wildcard *.[ch])
/tools/spi/
Dspidev_test.c100 unsigned int ch; in unescape() local
104 match = sscanf(src + 2, "%2x", &ch); in unescape()
109 *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/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c422 int ch, pat; in arm_spe_pkt_desc_addr() local
442 ch = !!SPE_ADDR_PKT_GET_CH(payload); in arm_spe_pkt_desc_addr()
447 payload, ns, ch, pat); in arm_spe_pkt_desc_addr()
/tools/lib/traceevent/
Devent-parse.c931 static enum tep_event_type get_type(int ch) in get_type() argument
933 if (ch == '\n') in get_type()
935 if (isspace(ch)) in get_type()
937 if (isalnum(ch) || ch == '_') in get_type()
939 if (ch == '\'') in get_type()
941 if (ch == '"') in get_type()
943 if (!isprint(ch)) in get_type()
945 if (ch == '(' || ch == ')' || ch == ',') in get_type()
996 int ch, last_ch, quote_ch, next_ch; in __read_token() local
1004 ch = __read_char(); in __read_token()
[all …]
/tools/bpf/resolve_btfids/
DMakefile49 $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(OUTPUT)/libbpf
/tools/bpf/runqslower/
DMakefile83 $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OUTPUT)
/tools/perf/arch/x86/util/
Dperf_regs.c76 SDT_NAME_REG(ch, cx),
/tools/testing/selftests/kvm/lib/
Dsparsebit.c2052 int ch; in get8() local
2054 ch = getchar(); in get8()
2055 if (ch == EOF) in get8()
2057 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"

12