/tools/virtio/ringtest/ |
D | main.c | 82 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 …]
|
/tools/perf/arch/s390/annotate/ |
D | instructions.c | 7 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 …]
|
/tools/perf/arch/arm64/annotate/ |
D | instructions.c | 16 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()
|
/tools/perf/util/ |
D | units.c | 19 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()
|
D | target.c | 86 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()
|
D | auxtrace.c | 732 char *endptr; in auxtrace_parse_sample_options() local 743 sz = strtoul(str, &endptr, 0); in auxtrace_parse_sample_options() 744 if (*endptr || sz > UINT_MAX) { in auxtrace_parse_sample_options() 1399 char *endptr; in itrace_parse_synth_opts() local 1423 synth_opts->period = strtoull(p, &endptr, 10); in itrace_parse_synth_opts() 1425 p = endptr; in itrace_parse_synth_opts() 1507 val = strtoul(p, &endptr, 10); in itrace_parse_synth_opts() 1508 p = endptr; in itrace_parse_synth_opts() 1527 val = strtoul(p, &endptr, 10); in itrace_parse_synth_opts() 1528 p = endptr; in itrace_parse_synth_opts() [all …]
|
D | callchain.c | 143 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 …]
|
D | time-utils.c | 182 char *c, *endptr; in parse_percent() local 191 d = strtod(str, &endptr); in parse_percent() 192 if (endptr != str + strlen(str)) in parse_percent()
|
D | evlist.c | 1794 char *comma = NULL, *endptr = NULL; in evlist__parse_control() local 1801 *ctl_fd = strtoul(&str[3], &endptr, 0); in evlist__parse_control() 1802 if (endptr == &str[3]) in evlist__parse_control() 1807 if (endptr != comma) in evlist__parse_control() 1810 *ctl_fd_ack = strtoul(comma + 1, &endptr, 0); in evlist__parse_control() 1811 if (endptr == comma + 1 || *endptr != '\0') in evlist__parse_control()
|
D | annotate.c | 242 char *endptr, *tok, *name; in call__parse() local 248 ops->target.addr = strtoull(ops->raw, &endptr, 16); in call__parse() 250 name = strchr(endptr, '<'); in call__parse() 280 tok = strchr(endptr, '*'); in call__parse() 282 endptr++; in call__parse() 286 if (strstr(endptr, "(%r") == NULL) in call__parse() 287 ops->target.addr = strtoull(endptr, NULL, 16); in call__parse() 460 char *endptr, *name, *t; in comment__symbol() local 465 *addrp = strtoull(comment, &endptr, 16); in comment__symbol() 466 if (endptr == comment) in comment__symbol() [all …]
|
/tools/bpf/bpftool/ |
D | map_perf_ring.c | 155 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()
|
D | common.c | 628 char *endptr; in parse_u32_arg() local 637 *val = strtoul(**argv, &endptr, 0); in parse_u32_arg() 638 if (*endptr) { in parse_u32_arg() 717 char *endptr; in prog_parse_fds() local 721 id = strtoul(**argv, &endptr, 0); in prog_parse_fds() 722 if (*endptr) { in prog_parse_fds() 868 char *endptr; in map_parse_fds() local 872 id = strtoul(**argv, &endptr, 0); in map_parse_fds() 873 if (*endptr) { in map_parse_fds()
|
D | feature.c | 86 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()
|
D | prog.c | 1204 char *endptr; in do_run() local 1210 test_attr.data_size_out = strtoul(*argv, &endptr, 0); in do_run() 1211 if (*endptr) { in do_run() 1232 char *endptr; in do_run() local 1238 test_attr.ctx_size_out = strtoul(*argv, &endptr, 0); in do_run() 1239 if (*endptr) { in do_run() 1246 char *endptr; in do_run() local 1252 repeat = strtoul(*argv, &endptr, 0); in do_run() 1253 if (*endptr) { in do_run() 1419 char *endptr, *name; in load_with_options() local [all …]
|
D | link.c | 29 char *endptr; in link_parse_fd() local 33 id = strtoul(**argv, &endptr, 0); in link_parse_fd() 34 if (*endptr) { in link_parse_fd()
|
D | btf.c | 493 char *endptr; in do_dump() local 495 btf_id = strtoul(*argv, &endptr, 0); in do_dump() 496 if (*endptr) { in do_dump() 576 char *endptr; in btf_parse_fd() local 585 id = strtoul(**argv, &endptr, 0); in btf_parse_fd() 586 if (*endptr) { in btf_parse_fd()
|
D | struct_ops.c | 244 char *endptr; in do_one_id() local 247 id = strtoul(id_str, &endptr, 0); in do_one_id() 248 if (*endptr || !id || id > UINT32_MAX) { in do_one_id()
|
D | map.c | 320 char *endptr; in parse_bytes() local 328 val[i] = strtoul(argv[i], &endptr, base); in parse_bytes() 329 if (*endptr) { in parse_bytes()
|
/tools/testing/vsock/ |
D | util.c | 37 char *endptr = NULL; in parse_cid() local 41 n = strtoul(str, &endptr, 10); in parse_cid() 42 if (errno || *endptr != '\0') { in parse_cid() 359 char *endptr = NULL; in skip_test() local 362 test_id = strtoul(test_id_str, &endptr, 10); in skip_test() 363 if (errno || *endptr != '\0') { in skip_test()
|
/tools/power/cpupower/utils/ |
D | cpuidle-set.c | 32 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()
|
/tools/perf/arch/x86/util/ |
D | intel-bts.c | 257 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()
|
D | intel-pt.c | 248 char *endptr; in intel_pt_parse_snapshot_options() local 251 snapshot_size = strtoull(str, &endptr, 0); in intel_pt_parse_snapshot_options() 252 if (*endptr || snapshot_size > SIZE_MAX) in intel_pt_parse_snapshot_options()
|
/tools/perf/arch/arm/util/ |
D | cs-etm.c | 200 char *endptr; in cs_etm_parse_snapshot_options() local 203 snapshot_size = strtoull(str, &endptr, 0); in cs_etm_parse_snapshot_options() 204 if (*endptr || snapshot_size > SIZE_MAX) in cs_etm_parse_snapshot_options()
|
/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 309 char *endptr; in parse_optarg_string() local 329 i = strtol(s, &endptr, 0); in parse_optarg_string() 330 if (s == endptr) { in parse_optarg_string()
|
/tools/testing/selftests/net/ |
D | ipsec.c | 2130 char *endptr; in main() local 2133 nr_process = strtol(argv[1], &endptr, 10); in main() 2136 || (endptr == argv[1]) || (*endptr != '\0')) { in main()
|