Home
last modified time | relevance | path

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

123

/linux-6.6.21/tools/virtio/ringtest/
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-6.6.21/tools/perf/arch/s390/annotate/
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()
57 char *s = strchr(ops->raw, ','), *target, *endptr; in s390_mov__parse() local
74 ops->target.addr = strtoull(target, &endptr, 16); in s390_mov__parse()
75 if (endptr == target) in s390_mov__parse()
78 s = strchr(endptr, '<'); in s390_mov__parse()
81 endptr = strchr(s + 1, '>'); in s390_mov__parse()
82 if (endptr == NULL) in s390_mov__parse()
85 *endptr = '\0'; in s390_mov__parse()
[all …]
/linux-6.6.21/tools/perf/arch/arm64/annotate/
Dinstructions.c16 char *s = strchr(ops->raw, ','), *target, *endptr; in arm64_mov__parse() local
33 ops->target.addr = strtoull(target, &endptr, 16); in arm64_mov__parse()
34 if (endptr == target) in arm64_mov__parse()
37 s = strchr(endptr, '<'); in arm64_mov__parse()
40 endptr = strchr(s + 1, '>'); in arm64_mov__parse()
41 if (endptr == NULL) in arm64_mov__parse()
44 *endptr = '\0'; in arm64_mov__parse()
48 *endptr = '>'; in arm64_mov__parse()
/linux-6.6.21/tools/mm/
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, 10); in get_tgid()
341 if (errno != 0 || endptr == tgid_str || *endptr != '\0') { in get_tgid()
355 char *endptr; in get_ts_nsec() local
[all …]
/linux-6.6.21/tools/bpf/bpftool/
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()
Dcommon.c708 char *endptr; in parse_u32_arg() local
717 *val = strtoul(**argv, &endptr, 0); in parse_u32_arg()
718 if (*endptr) { in parse_u32_arg()
806 char *endptr; in prog_parse_fds() local
810 id = strtoul(**argv, &endptr, 0); in prog_parse_fds()
811 if (*endptr) { in prog_parse_fds()
957 char *endptr; in map_parse_fds() local
961 id = strtoul(**argv, &endptr, 0); in map_parse_fds()
962 if (*endptr) { in map_parse_fds()
Dprog.c1305 char *endptr; in do_run() local
1311 test_attr.data_size_out = strtoul(*argv, &endptr, 0); in do_run()
1312 if (*endptr) { in do_run()
1333 char *endptr; in do_run() local
1339 test_attr.ctx_size_out = strtoul(*argv, &endptr, 0); in do_run()
1340 if (*endptr) { in do_run()
1347 char *endptr; in do_run() local
1353 repeat = strtoul(*argv, &endptr, 0); in do_run()
1354 if (*endptr) { in do_run()
1571 char *endptr, *name; in load_with_options() local
[all …]
Dfeature.c92 char *endptr; in print_kernel_option() local
101 res = strtol(value, &endptr, 0); in print_kernel_option()
102 if (!errno && *endptr == '\n') in print_kernel_option()
172 char *endptr, *line = NULL; in read_procfs() local
187 res = strtol(line, &endptr, 10); in read_procfs()
188 if (errno || *line == '\0' || *endptr != '\n') in read_procfs()
/linux-6.6.21/lib/
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-6.6.21/tools/power/cpupower/utils/
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-6.6.21/tools/perf/util/
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()
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()
Dauxtrace.c750 char *endptr; in auxtrace_parse_sample_options() local
761 sz = strtoul(str, &endptr, 0); in auxtrace_parse_sample_options()
762 if (*endptr || sz > UINT_MAX) { in auxtrace_parse_sample_options()
1466 char *endptr; in itrace_do_parse_synth_opts() local
1494 synth_opts->period = strtoull(p, &endptr, 10); in itrace_do_parse_synth_opts()
1496 p = endptr; in itrace_do_parse_synth_opts()
1583 val = strtoul(p, &endptr, 10); in itrace_do_parse_synth_opts()
1584 p = endptr; in itrace_do_parse_synth_opts()
1603 val = strtoul(p, &endptr, 10); in itrace_do_parse_synth_opts()
1604 p = endptr; in itrace_do_parse_synth_opts()
[all …]
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-6.6.21/arch/mips/sibyte/common/
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-6.6.21/tools/testing/vsock/
Dutil.c37 char *endptr = NULL; in parse_cid() local
41 n = strtoul(str, &endptr, 10); in parse_cid()
42 if (errno || *endptr != '\0') { in parse_cid()
381 char *endptr = NULL; in skip_test() local
384 test_id = strtoul(test_id_str, &endptr, 10); in skip_test()
385 if (errno || *endptr != '\0') { in skip_test()
Dvsock_perf.c54 char *endptr; in memparse() local
56 unsigned long long ret = strtoull(ptr, &endptr, 0); in memparse()
58 switch (*endptr) { in memparse()
77 endptr++; in memparse()
/linux-6.6.21/tools/testing/selftests/timens/
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-6.6.21/tools/power/acpi/tools/pfrut/
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-6.6.21/drivers/mtd/
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-6.6.21/drivers/staging/greybus/Documentation/firmware/
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-6.6.21/tools/perf/arch/loongarch/annotate/
Dinstructions.c10 char *c, *endptr, *tok, *name; in loongarch_call__parse() local
20 ops->target.addr = strtoull(c, &endptr, 16); in loongarch_call__parse()
22 name = strchr(endptr, '<'); in loongarch_call__parse()
/linux-6.6.21/scripts/dtc/libfdt/
Dfdt_overlay.c434 char *sep, *endptr; in overlay_fixup_phandle() local
464 poffset = strtoul(sep + 1, &endptr, 10); in overlay_fixup_phandle()
465 if ((*endptr != '\0') || (endptr <= (sep + 1))) in overlay_fixup_phandle()
/linux-6.6.21/tools/perf/arch/arm64/util/
Darm-spe.c266 char *endptr; in arm_spe_parse_snapshot_options() local
269 snapshot_size = strtoull(str, &endptr, 0); in arm_spe_parse_snapshot_options()
270 if (*endptr || snapshot_size > SIZE_MAX) in arm_spe_parse_snapshot_options()
/linux-6.6.21/drivers/pci/hotplug/
Drpaphp_core.c293 char *endptr; in is_php_type() local
296 simple_strtoul(drc_type, &endptr, 10); in is_php_type()
297 if (endptr == drc_type) in is_php_type()

123