Home
last modified time | relevance | path

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

123

/linux/tools/virtio/ringtest/
H A Dmain.c82 char *endptr; in set_affinity() local
87 cpu = strtol(arg, &endptr, 0); in set_affinity()
88 assert(!*endptr); in set_affinity()
299 char *endptr; in main() local
322 ring_size = strtol(optarg, &endptr, 0); in main()
324 assert(!*endptr); in main()
327 c = strtol(optarg, &endptr, 0); in main()
328 assert(!*endptr); in main()
333 c = strtol(optarg, &endptr, 0); in main()
334 assert(!*endptr); in main()
[all …]
/linux/tools/perf/arch/s390/annotate/
H A Dinstructions.c7 char *endptr, *tok, *name; in s390_call__parse() local
17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse()
19 name = strchr(endptr, '<'); in s390_call__parse()
58 char *s = strchr(ops->raw, ','), *target, *endptr; in s390_mov__parse() local
75 ops->target.addr = strtoull(target, &endptr, 16); in s390_mov__parse()
76 if (endptr == target) in s390_mov__parse()
79 s = strchr(endptr, '<'); in s390_mov__parse()
82 endptr = strchr(s + 1, '>'); in s390_mov__parse()
83 if (endptr == NULL) in s390_mov__parse()
86 *endptr in s390_mov__parse()
[all...]
/linux/tools/perf/arch/arm64/annotate/
H A Dinstructions.c17 char *s = strchr(ops->raw, ','), *target, *endptr; in arm64_mov__parse() local
34 ops->target.addr = strtoull(target, &endptr, 16); in arm64_mov__parse()
35 if (endptr == target) in arm64_mov__parse()
38 s = strchr(endptr, '<'); in arm64_mov__parse()
41 endptr = strchr(s + 1, '>'); in arm64_mov__parse()
42 if (endptr == NULL) in arm64_mov__parse()
45 *endptr = '\0'; in arm64_mov__parse()
49 *endptr = '>'; in arm64_mov__parse()
/linux/tools/include/nolibc/
H A Dstdlib.h442 uintmax_t __strtox(const char *nptr, char **endptr, int base, intmax_t lower_limit, uintmax_t upper… in __strtox() argument
509 if (endptr) in __strtox()
510 *endptr = (char *)nptr; in __strtox()
515 long strtol(const char *nptr, char **endptr, int base) in strtol() argument
517 return __strtox(nptr, endptr, base, LONG_MIN, LONG_MAX); in strtol()
521 unsigned long strtoul(const char *nptr, char **endptr, int base) in strtoul() argument
523 return __strtox(nptr, endptr, base, 0, ULONG_MAX); in strtoul()
527 long long strtoll(const char *nptr, char **endptr, int base) in strtoll() argument
529 return __strtox(nptr, endptr, base, LLONG_MIN, LLONG_MAX); in strtoll()
533 unsigned long long strtoull(const char *nptr, char **endptr, int base) in strtoull() argument
[all …]
/linux/tools/lib/
H A Dcmdline.c15 char *endptr; /* local pointer to end of parsed string */ in memparse() local
17 unsigned long long ret = strtoll(ptr, &endptr, 0); in memparse()
19 switch (*endptr) { in memparse()
43 endptr++; in memparse()
50 *retptr = endptr; in memparse()
/linux/tools/mm/
H A Dpage_owner_sort.c299 char *endptr; in get_page_num() local
303 order_val = strtol(order_str, &endptr, 10); in get_page_num()
304 if (order_val > 64 || errno != 0 || endptr == order_str || *endptr != '\0') { in get_page_num()
317 char *endptr; in get_pid() local
321 pid = strtol(pid_str, &endptr, 10); in get_pid()
322 if (errno != 0 || endptr == pid_str || *endptr != '\0') { in get_pid()
336 char *endptr; in get_tgid() local
340 tgid = strtol(tgid_str, &endptr, 1 in get_tgid()
355 char *endptr; get_ts_nsec() local
606 char *endptr = NULL; parse_nums_list() local
[all...]
/linux/tools/bpf/bpftool/
H A Dmap_perf_ring.c147 char *endptr; in do_event_pipe() local
150 ctx.cpu = strtoul(*argv, &endptr, 0); in do_event_pipe()
151 if (*endptr) { in do_event_pipe()
158 char *endptr; in do_event_pipe() local
161 ctx.idx = strtoul(*argv, &endptr, 0); in do_event_pipe()
162 if (*endptr) { in do_event_pipe()
H A Dcommon.c780 char *endptr; in parse_u32_arg() local
789 *val = strtoul(**argv, &endptr, 0); in parse_u32_arg()
790 if (*endptr) { in parse_u32_arg()
878 char *endptr; in prog_parse_fds() local
882 id = strtoul(**argv, &endptr, 0); in prog_parse_fds()
883 if (*endptr) { in prog_parse_fds()
1029 char *endptr; in map_parse_fds() local
1033 id = strtoul(**argv, &endptr, 0); in map_parse_fds()
1034 if (*endptr) { in map_parse_fds()
H A Dprog.c1316 char *endptr; in do_run()
1322 test_attr.data_size_out = strtoul(*argv, &endptr, 0); in do_run()
1323 if (*endptr) { in do_run()
1344 char *endptr; in do_run()
1350 test_attr.ctx_size_out = strtoul(*argv, &endptr, 0); in do_run()
1351 if (*endptr) { in do_run() local
1358 char *endptr; in do_run()
1364 repeat = strtoul(*argv, &endptr, 0); in do_run()
1365 if (*endptr) { in do_run()
1582 char *endptr, *nam in load_with_options()
1309 char *endptr; do_run() local
1337 char *endptr; do_run() local
1575 char *endptr, *name; load_with_options() local
2356 char *endptr; do_profile() local
[all...]
/linux/lib/
H A Dcmdline.c152 char *endptr; /* local pointer to end of parsed string */ in memparse() local
154 unsigned long long ret = simple_strtoull(ptr, &endptr, 0); in memparse()
156 switch (*endptr) { in memparse()
180 endptr++; in memparse()
187 *retptr = endptr; in memparse()
/linux/tools/power/cpupower/utils/
H A Dcpuidle-set.c32 char *endptr; in cmd_idle_set() local
51 strtol(optarg, &endptr, 10); in cmd_idle_set()
52 if (*endptr != '\0') { in cmd_idle_set()
66 latency = strtoull(optarg, &endptr, 10); in cmd_idle_set()
67 if (*endptr != '\0') { in cmd_idle_set()
/linux/samples/cgroup/
H A Dmemcg_event_listener.c65 char *endptr; in get_memcg_counter() local
78 tmp = strtol(&line[len], &endptr, 10); in get_memcg_counter()
85 if (endptr == &line[len]) { in get_memcg_counter()
90 if (!(*endptr == '\0' || (*endptr == '\n' && *++endptr == '\0'))) { in get_memcg_counter()
91 warnx("Further characters after number: %s", endptr); in get_memcg_counter()
/linux/arch/mips/sibyte/common/
H A Dcfe.c154 char *tmp, *endptr; in initrd_setup() local
180 initrd_size = simple_strtoul(str, &endptr, 16); in initrd_setup()
181 if (*endptr) { in initrd_setup()
186 initrd_start = simple_strtoul(tmp, &endptr, 16); in initrd_setup()
187 if (*endptr) { in initrd_setup()
/linux/tools/perf/util/
H A Dunits.c19 char *endptr; in parse_tag_value() local
21 value = strtoul(str, &endptr, 10); in parse_tag_value()
22 if (s != endptr) in parse_tag_value()
H A Dtarget.c114 char *endptr; in target__parse_uid() local
115 int uid = strtol(str, &endptr, 10); in target__parse_uid()
117 if (*endptr != '\0') in target__parse_uid()
H A Dauxtrace.c755 char *endptr; in auxtrace_parse_sample_options() local
766 sz = strtoul(str, &endptr, 0); in auxtrace_parse_sample_options()
767 if (*endptr || sz > UINT_MAX) { in auxtrace_parse_sample_options()
1471 char *endptr; in itrace_do_parse_synth_opts() local
1501 synth_opts->period = strtoull(p, &endptr, 10); in itrace_do_parse_synth_opts()
1503 p = endptr; in itrace_do_parse_synth_opts()
1590 val = strtoul(p, &endptr, 10); in itrace_do_parse_synth_opts()
1591 p = endptr; in itrace_do_parse_synth_opts()
1610 val = strtoul(p, &endptr, 10); in itrace_do_parse_synth_opts()
1611 p = endptr; in itrace_do_parse_synth_opts()
[all …]
H A Dcallchain.c145 char *endptr; in get_stack_size() local
149 size = strtoul(str, &endptr, 0); in get_stack_size()
152 if (*endptr) in get_stack_size()
173 char *endptr, *saveptr = NULL; in __parse_callchain_report_opt() local
221 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt()
222 if (tok == endptr) in __parse_callchain_report_opt()
227 callchain_param.print_limit = strtoul(tok, &endptr, 0); in __parse_callchain_report_opt()
228 if (tok == endptr) in __parse_callchain_report_opt()
322 char *endptr; in perf_callchain_config() local
361 callchain_param.min_percent = strtod(value, &endptr); in perf_callchain_config()
[all …]
/linux/tools/testing/selftests/timens/
H A Dvfork_exec.c84 char *endptr; in main() local
87 now.tv_sec = strtoul(argv[1], &endptr, 0); in main()
88 if (*endptr != 0) in main()
/linux/tools/power/acpi/tools/pfrut/
H A Dpfrut.c100 char *pathname, *endptr; in parse_options() local
128 log_type = strtol(optarg, &endptr, 0); in parse_options()
129 if (*endptr || (log_type != 0 && log_type != 1)) { in parse_options()
137 log_level = strtol(optarg, &endptr, 0); in parse_options()
138 if (*endptr || in parse_options()
/linux/drivers/mtd/
H A Dmtdsuper.c135 char *endptr; in get_tree_mtd() local
137 mtdnr = simple_strtoul(fc->source + 3, &endptr, 0); in get_tree_mtd()
138 if (!*endptr) { in get_tree_mtd()
/linux/drivers/staging/greybus/Documentation/firmware/
H A Dfirmware.c163 char *endptr; in main() local
175 fw_update_type = strtoul(argv[2], &endptr, 10); in main()
185 fw_timeout = strtoul(argv[4], &endptr, 10); in main()
/linux/tools/perf/arch/loongarch/annotate/
H A Dinstructions.c11 char *c, *endptr, *tok, *name; in loongarch_call__parse() local
21 ops->target.addr = strtoull(c, &endptr, 16); in loongarch_call__parse()
23 name = strchr(endptr, '<'); in loongarch_call__parse()
/linux/tools/testing/vsock/
H A Dvsock_perf.c58 char *endptr; in memparse() local
60 unsigned long long ret = strtoull(ptr, &endptr, 0); in memparse()
62 switch (*endptr) { in memparse()
81 endptr++; in memparse()
H A Dutil.c38 char *endptr = NULL; in parse_uint() local
42 n = strtoul(str, &endptr, 10); in parse_uint()
43 if (errno || *endptr != '\0') { in parse_uint()
493 char *endptr = NULL; in skip_test() local
496 test_id = strtoul(test_id_str, &endptr, 10); in skip_test()
497 if (errno || *endptr != '\0') { in skip_test()
/linux/samples/landlock/
H A Dsandboxer.c65 char *endptr = NULL; in str2num() local
70 num = strtoull(numstr, &endptr, 10); in str2num()
74 else if ((*numstr == '\0') || (*endptr != '\0')) in str2num()

123