Home
last modified time | relevance | path

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

12

/linux/tools/virtio/ringtest/
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
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()
340 assert(!*endptr); in main()
[all …]
/linux/tools/perf/arch/s390/annotate/
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()
60 char *s = strchr(ops->raw, ','), *target, *endptr; in s390_mov__parse() local
77 ops->target.addr = strtoull(target, &endptr, 16); in s390_mov__parse()
78 if (endptr == target) in s390_mov__parse()
81 s = strchr(endptr, '<'); in s390_mov__parse()
84 endptr = strchr(s + 1, '>'); in s390_mov__parse()
85 if (endptr == NULL) in s390_mov__parse()
88 *endptr = '\0'; in s390_mov__parse()
[all …]
/linux/tools/perf/arch/arm64/annotate/
A 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/lib/
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/bpf/bpftool/
A Dmap_perf_ring.c154 char *endptr; in do_event_pipe() local
157 ctx.cpu = strtoul(*argv, &endptr, 0); in do_event_pipe()
158 if (*endptr) { in do_event_pipe()
165 char *endptr; in do_event_pipe() local
168 ctx.idx = strtoul(*argv, &endptr, 0); in do_event_pipe()
169 if (*endptr) { in do_event_pipe()
A Dcommon.c632 char *endptr; in parse_u32_arg() local
641 *val = strtoul(**argv, &endptr, 0); in parse_u32_arg()
642 if (*endptr) { in parse_u32_arg()
721 char *endptr; in prog_parse_fds() local
725 id = strtoul(**argv, &endptr, 0); in prog_parse_fds()
726 if (*endptr) { in prog_parse_fds()
872 char *endptr; in map_parse_fds() local
876 id = strtoul(**argv, &endptr, 0); in map_parse_fds()
877 if (*endptr) { in map_parse_fds()
A Dfeature.c86 char *endptr; in print_kernel_option() local
95 res = strtol(value, &endptr, 0); in print_kernel_option()
96 if (!errno && *endptr == '\n') in print_kernel_option()
140 char *endptr, *line = NULL; in read_procfs() local
155 res = strtol(line, &endptr, 10); in read_procfs()
156 if (errno || *line == '\0' || *endptr != '\n') in read_procfs()
A Dprog.c1227 char *endptr; in do_run() local
1234 if (*endptr) { in do_run()
1255 char *endptr; in do_run() local
1262 if (*endptr) { in do_run()
1269 char *endptr; in do_run() local
1276 if (*endptr) { in do_run()
1442 char *endptr, *name; in load_with_options() local
1453 idx = strtoul(*argv, &endptr, 0); in load_with_options()
1454 if (*endptr) { in load_with_options()
2134 char *endptr; in do_profile() local
[all …]
A Dbtf.c526 char *endptr; in do_dump() local
528 btf_id = strtoul(*argv, &endptr, 0); in do_dump()
529 if (*endptr) { in do_dump()
620 char *endptr; in btf_parse_fd() local
629 id = strtoul(**argv, &endptr, 0); in btf_parse_fd()
630 if (*endptr) { in btf_parse_fd()
A Dlink.c32 char *endptr; in link_parse_fd() local
36 id = strtoul(**argv, &endptr, 0); in link_parse_fd()
37 if (*endptr) { in link_parse_fd()
/linux/arch/mips/sibyte/common/
A Dcfe.c169 char *tmp, *endptr; in initrd_setup() local
195 initrd_size = simple_strtoul(str, &endptr, 16); in initrd_setup()
196 if (*endptr) { in initrd_setup()
201 initrd_start = simple_strtoul(tmp, &endptr, 16); in initrd_setup()
202 if (*endptr) { in initrd_setup()
/linux/tools/perf/util/
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()
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()
A Dauxtrace.c724 char *endptr; in auxtrace_parse_sample_options() local
1407 char *endptr; in itrace_do_parse_synth_opts() local
1433 p = endptr; in itrace_do_parse_synth_opts()
1516 p = endptr; in itrace_do_parse_synth_opts()
1536 p = endptr; in itrace_do_parse_synth_opts()
1545 if (p == endptr) in itrace_do_parse_synth_opts()
1547 p = endptr; in itrace_do_parse_synth_opts()
2088 char *endptr; in parse_num_or_str() local
2098 *inp = endptr; in parse_num_or_str()
2153 char *endptr; in parse_sym_idx() local
[all …]
A Dcallchain.c143 char *endptr; in get_stack_size() local
147 size = strtoul(str, &endptr, 0); in get_stack_size()
150 if (*endptr) in get_stack_size()
171 char *endptr, *saveptr = NULL; in __parse_callchain_report_opt() local
219 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt()
220 if (tok == endptr) in __parse_callchain_report_opt()
226 if (tok == endptr) in __parse_callchain_report_opt()
315 char *endptr; in perf_callchain_config() local
354 callchain_param.min_percent = strtod(value, &endptr); in perf_callchain_config()
355 if (value == endptr) { in perf_callchain_config()
[all …]
/linux/tools/testing/vsock/
A 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()
/linux/tools/vm/
A Dpage_owner_sort.c79 char *endptr; in get_page_num() local
94 order_val = strtol(order_str, &endptr, 10); in get_page_num()
95 if (errno != 0 || endptr == order_str || *endptr != '\0') in get_page_num()
/linux/tools/power/cpupower/utils/
A Dcpuidle-set.c32 char *endptr; in cmd_idle_set() local
68 latency = strtoull(optarg, &endptr, 10); in cmd_idle_set()
69 if (*endptr != '\0') { in cmd_idle_set()
/linux/drivers/staging/greybus/Documentation/firmware/
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/drivers/mtd/
A Dmtdsuper.c158 char *endptr; in get_tree_mtd() local
160 mtdnr = simple_strtoul(fc->source + 3, &endptr, 0); in get_tree_mtd()
161 if (!*endptr) { in get_tree_mtd()
/linux/scripts/dtc/libfdt/
A Dfdt_overlay.c449 char *sep, *endptr; in overlay_fixup_phandle() local
479 poffset = strtoul(sep + 1, &endptr, 10); in overlay_fixup_phandle()
480 if ((*endptr != '\0') || (endptr <= (sep + 1))) in overlay_fixup_phandle()
/linux/drivers/pci/hotplug/
A Drpaphp_core.c291 char *endptr; in is_php_type() local
294 simple_strtoul(drc_type, &endptr, 10); in is_php_type()
295 if (endptr == drc_type) in is_php_type()
/linux/drivers/atm/
A Dlanai.c238 int endptr; /* last endptr from service entry */ member
1136 r = endptr * 16; in vcc_tx_space()
1298 struct lanai_vcc *lvcc, int endptr) in vcc_tx_unqueue_aal5() argument
1302 int space = vcc_tx_space(lvcc, endptr); in vcc_tx_unqueue_aal5()
1346 struct lanai_vcc *lvcc, int endptr) in vcc_tx_unqueue_aal0() argument
1382 u32 *end = &lvcc->rx.buf.start[endptr * 4]; in vcc_rx_aal5()
1419 cardvcc_write(lvcc, endptr, vcc_rxreadptr); in vcc_rx_aal5()
1641 lvcc->tx.endptr = SERVICE_GET_END(s); in handle_service()
1702 lvcc->tx.unqueue(lanai, lvcc, lvcc->tx.endptr); in iter_transmit()
1748 int endptr; in iter_dequeue() local
[all …]
/linux/tools/perf/arch/x86/util/
A Dintel-bts.c257 char *endptr; in intel_bts_parse_snapshot_options() local
260 snapshot_size = strtoull(str, &endptr, 0); in intel_bts_parse_snapshot_options()
261 if (*endptr || snapshot_size > SIZE_MAX) in intel_bts_parse_snapshot_options()
/linux/tools/perf/arch/arm64/util/
A Darm-spe.c271 char *endptr; in arm_spe_parse_snapshot_options() local
274 snapshot_size = strtoull(str, &endptr, 0); in arm_spe_parse_snapshot_options()
275 if (*endptr || snapshot_size > SIZE_MAX) in arm_spe_parse_snapshot_options()

Completed in 53 milliseconds

12