Home
last modified time | relevance | path

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

12

/Linux-v5.4/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-v5.4/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()
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-v5.4/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-v5.4/lib/
Dcmdline.c127 char *endptr; /* local pointer to end of parsed string */ in memparse() local
129 unsigned long long ret = simple_strtoull(ptr, &endptr, 0); in memparse()
131 switch (*endptr) { in memparse()
155 endptr++; in memparse()
161 *retptr = endptr; in memparse()
/Linux-v5.4/tools/bpf/bpftool/
Dmap_perf_ring.c155 char *endptr; in do_event_pipe() local
158 ctx.cpu = strtoul(*argv, &endptr, 0); in do_event_pipe()
159 if (*endptr) { in do_event_pipe()
166 char *endptr; in do_event_pipe() local
169 ctx.idx = strtoul(*argv, &endptr, 0); in do_event_pipe()
170 if (*endptr) { in do_event_pipe()
Dprog.c124 char *endptr; in prog_parse_fd() local
128 id = strtoul(**argv, &endptr, 0); in prog_parse_fd()
129 if (*endptr) { in prog_parse_fd()
954 char *endptr; in do_run() local
960 test_attr.data_size_out = strtoul(*argv, &endptr, 0); in do_run()
961 if (*endptr) { in do_run()
982 char *endptr; in do_run() local
988 test_attr.ctx_size_out = strtoul(*argv, &endptr, 0); in do_run()
989 if (*endptr) { in do_run()
996 char *endptr; in do_run() local
[all …]
Dfeature.c77 char *endptr; in print_kernel_option() local
88 res = strtol(value, &endptr, 0); in print_kernel_option()
89 if (!errno && *endptr == '\n') in print_kernel_option()
133 char *endptr, *line = NULL; in read_procfs() local
148 res = strtol(line, &endptr, 10); in read_procfs()
149 if (errno || *line == '\0' || *endptr != '\n') in read_procfs()
Dcommon.c217 char *endptr; in do_pin_any() local
235 id = strtoul(*argv, &endptr, 0); in do_pin_any()
236 if (*endptr) { in do_pin_any()
582 char *endptr; in parse_u32_arg() local
591 *val = strtoul(**argv, &endptr, 0); in parse_u32_arg()
592 if (*endptr) { in parse_u32_arg()
Dbtf.c459 char *endptr; in do_dump() local
461 btf_id = strtoul(*argv, &endptr, 0); in do_dump()
462 if (*endptr) { in do_dump()
539 char *endptr; in btf_parse_fd() local
548 id = strtoul(**argv, &endptr, 0); in btf_parse_fd()
549 if (*endptr) { in btf_parse_fd()
/Linux-v5.4/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.c86 char *endptr; in target__parse_uid() local
87 int uid = strtol(str, &endptr, 10); in target__parse_uid()
89 if (*endptr != '\0') in target__parse_uid()
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()
225 callchain_param.print_limit = strtoul(tok, &endptr, 0); 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()
[all …]
Dauxtrace.c1006 char *endptr; in itrace_parse_synth_opts() local
1030 synth_opts->period = strtoull(p, &endptr, 10); in itrace_parse_synth_opts()
1032 p = endptr; in itrace_parse_synth_opts()
1104 val = strtoul(p, &endptr, 10); in itrace_parse_synth_opts()
1105 p = endptr; in itrace_parse_synth_opts()
1120 val = strtoul(p, &endptr, 10); in itrace_parse_synth_opts()
1121 p = endptr; in itrace_parse_synth_opts()
1129 synth_opts->initial_skip = strtoul(p, &endptr, 10); in itrace_parse_synth_opts()
1130 if (p == endptr) in itrace_parse_synth_opts()
1132 p = endptr; in itrace_parse_synth_opts()
[all …]
Dtime-utils.c182 char *c, *endptr; in parse_percent() local
191 d = strtod(str, &endptr); in parse_percent()
192 if (endptr != str + strlen(str)) in parse_percent()
/Linux-v5.4/arch/mips/sibyte/common/
Dcfe.c172 char *tmp, *endptr; in initrd_setup() local
198 initrd_size = simple_strtoul(str, &endptr, 16); in initrd_setup()
199 if (*endptr) { in initrd_setup()
204 initrd_start = simple_strtoul(tmp, &endptr, 16); in initrd_setup()
205 if (*endptr) { in initrd_setup()
/Linux-v5.4/tools/power/cpupower/utils/
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-v5.4/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-v5.4/drivers/mtd/
Dmtdsuper.c157 char *endptr; in get_tree_mtd() local
159 mtdnr = simple_strtoul(fc->source + 3, &endptr, 0); in get_tree_mtd()
160 if (!*endptr) { in get_tree_mtd()
/Linux-v5.4/drivers/pci/hotplug/
Drpaphp_core.c289 char *endptr; in is_php_type() local
292 value = simple_strtoul(drc_type, &endptr, 10); in is_php_type()
293 if (endptr == drc_type) in is_php_type()
/Linux-v5.4/scripts/dtc/libfdt/
Dfdt_overlay.c448 char *sep, *endptr; in overlay_fixup_phandle() local
478 poffset = strtoul(sep + 1, &endptr, 10); in overlay_fixup_phandle()
479 if ((*endptr != '\0') || (endptr <= (sep + 1))) in overlay_fixup_phandle()
/Linux-v5.4/tools/perf/arch/x86/util/
Dintel-bts.c252 char *endptr; in intel_bts_parse_snapshot_options() local
255 snapshot_size = strtoull(str, &endptr, 0); in intel_bts_parse_snapshot_options()
256 if (*endptr || snapshot_size > SIZE_MAX) in intel_bts_parse_snapshot_options()
/Linux-v5.4/scripts/kconfig/
Dpreprocess.c348 char *tmp, *name, *res, *endptr, *prev, *p; in eval_clause() local
362 n = strtoul(tmp, &endptr, 10); in eval_clause()
363 if (!*endptr && n > 0 && n <= argc) { in eval_clause()
/Linux-v5.4/drivers/atm/
Dlanai.c238 int endptr; /* last endptr from service entry */ member
1134 static inline int vcc_tx_space(const struct lanai_vcc *lvcc, int endptr) in vcc_tx_space() argument
1137 r = endptr * 16; in vcc_tx_space()
1299 struct lanai_vcc *lvcc, int endptr) in vcc_tx_unqueue_aal5() argument
1303 int space = vcc_tx_space(lvcc, endptr); in vcc_tx_unqueue_aal5()
1347 struct lanai_vcc *lvcc, int endptr) in vcc_tx_unqueue_aal0() argument
1378 static void vcc_rx_aal5(struct lanai_vcc *lvcc, int endptr) in vcc_rx_aal5() argument
1383 u32 *end = &lvcc->rx.buf.start[endptr * 4]; in vcc_rx_aal5()
1420 cardvcc_write(lvcc, endptr, vcc_rxreadptr); in vcc_rx_aal5()
1642 lvcc->tx.endptr = SERVICE_GET_END(s); in handle_service()
[all …]
/Linux-v5.4/tools/testing/vsock/
Dvsock_diag_test.c539 char *endptr = NULL; in parse_cid() local
543 n = strtoul(str, &endptr, 10); in parse_cid()
544 if (errno || *endptr != '\0') { in parse_cid()
/Linux-v5.4/fs/xfs/
Dxfs_dir2_readdir.c142 char *endptr; /* end of the data entries */ in xfs_dir2_block_getdents() local
173 endptr = xfs_dir3_data_endp(geo, hdr); in xfs_dir2_block_getdents()
179 while (ptr < endptr) { in xfs_dir2_block_getdents()

12