| /linux/tools/perf/bench/ |
| H A D | futex.c | 48 ret = asprintf(&futex_hash_mode, "Futex hashing: global hash"); in futex_print_nbuckets() 50 ret = asprintf(&futex_hash_mode, "Futex hashing: %d hash buckets", in futex_print_nbuckets() 54 ret = asprintf(&futex_hash_mode, "Futex hashing: global hash"); in futex_print_nbuckets() 56 ret = asprintf(&futex_hash_mode, "Futex hashing: auto resized to %d buckets", in futex_print_nbuckets()
|
| /linux/tools/iio/ |
| H A D | iio_utils.c | 65 ret = asprintf(generic_name, "%s_%s", prefix, working); in iioutils_break_up_name() 100 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir, buffer_idx); in iioutils_get_type() 104 ret = asprintf(&builtname, FORMAT_TYPE_FILE, name); in iioutils_get_type() 109 ret = asprintf(&builtname_generic, FORMAT_TYPE_FILE, generic_name); in iioutils_get_type() 125 ret = asprintf(&filename, in iioutils_get_type() 229 ret = asprintf(&builtname, "%s_%s", name, param_name); in iioutils_get_param_float() 233 ret = asprintf(&builtname_generic, in iioutils_get_param_float() 250 ret = asprintf(&filename, in iioutils_get_param_float() 328 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir, buffer_idx); in build_channel_array() 341 ret = asprintf(&filename, in build_channel_array() [all …]
|
| H A D | iio_generic_buffer.c | 475 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() 496 ret = asprintf(&trig_dev_name, "%strigger%d", iio_dir, trig_num); in main() 519 ret = asprintf(&trigger_name, in main() 532 ret = asprintf(&trigger_name, in main() 612 ret = asprintf(&buf_dir_name, in main() 648 ret = asprintf(&buffer_access, "/dev/iio:device%d", dev_num); in main()
|
| H A D | lsiio.c | 117 if (asprintf(&dev_dir_name, "%s%s", iio_dir, in dump_devices() 139 if (asprintf(&dev_dir_name, "%s%s", iio_dir, in dump_devices()
|
| H A D | iio_event_monitor.c | 391 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main() 395 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
|
| /linux/tools/perf/ |
| H A D | builtin-help.c | 132 if (asprintf(&man_page, "(woman \"%s\")", page) > 0) { in exec_woman_emacs() 163 if (asprintf(&man_page, "man:%s(1)", page) > 0) { in exec_man_konqueror() 183 if (asprintf(&shell_cmd, "%s %s", cmd, page) > 0) { in exec_man_cmd() 368 return asprintf(&s, "perf-%s", perf_cmd) < 0 ? NULL : s; in cmd_to_page() 380 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path() 443 return asprintf(page_path, "%s/%s.html", html_path, page); in get_html_page_path()
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | fp-stress.c | 191 ret = asprintf(&child->output, "%s", work); in child_output_read() 315 ret = asprintf(&child->name, "FPSIMD-%d-%d", cpu, copy); in start_fpsimd() 328 ret = asprintf(&child->name, "KERNEL-%d-%d", cpu, copy); in start_kernel() 345 ret = asprintf(&child->name, "SVE-VL-%d-%d", vl, cpu); in start_sve() 358 ret = asprintf(&child->name, "SSVE-VL-%d-%d", vl, cpu); in start_ssve() 379 ret = asprintf(&child->name, "ZA-VL-%d-%d", vl, cpu); in start_za() 392 ret = asprintf(&child->name, "ZT-%d", cpu); in start_zt()
|
| /linux/tools/lib/subcmd/ |
| H A D | subcmd-util.h | 60 if (asprintf((out), "%s" fmt, tmp ?: "", ## __VA_ARGS__) == -1) \ 69 if (asprintf(out, "%s%s", tmp ?: "", add) == -1) in astrcat()
|
| /linux/tools/perf/util/ |
| H A D | trace-event-info.c | 181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 203 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 297 if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) { in record_event_files() 447 if (asprintf(&path->system, "%.*s", in tracepoint_id_to_path() 452 if (asprintf(&path->name, "%.*s", in tracepoint_id_to_path() 475 if (path && asprintf(&buf, "%s:%s", path->system, path->name) < 0) in tracepoint_id_to_name()
|
| H A D | data.c | 53 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir() 325 if (asprintf(&data->file.path, "%s/data", data->path) < 0) in open_dir() 412 if (asprintf(new_filepath, "%s.%s", data->path, postfix) < 0) in perf_data__switch() 498 if (asprintf(&kallsyms_name, "%s/kcore_dir/kallsyms", data->path) < 0) in perf_data__kallsyms_name() 517 if (asprintf(&kallsyms_name, "%s/kcore_dir__%d/kallsyms", data->path, machine_pid) < 0) in perf_data__guest_kallsyms_name()
|
| H A D | build-id.c | 418 if (asprintf(&topdir, "%s/.build-id/", buildid_dir) < 0) in build_id_cache__list_all() 435 if (asprintf(&linkdir, "%s/%s", topdir, nd->s) < 0) in build_id_cache__list_all() 524 if (asprintf(&filename, "%s%s%s%s%s", buildid_dir, slash ? "/" : "", in build_id_cache__cachedir() 659 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add() 692 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add() 893 ret = asprintf(&allocated_name, "%s/%s", root_dir, name); in dso__cache_build_id()
|
| H A D | srcline.c | 94 if (asprintf(&srcline, "%s:%u", file, line) < 0) in srcline_from_fileline() 302 if (asprintf(&srcline, "%s+%" PRIu64, show_sym ? sym->name : "", in __get_srcline() 305 } else if (asprintf(&srcline, "%s[%" PRIx64 "]", dso__short_name(dso), addr) < 0) in __get_srcline()
|
| H A D | parse-events.l | 39 if (asprintf(&help, "Bad base %d number \"%s\"", base, text) > 0) in value() 127 if (asprintf(&help, "Duplicate modifier '%c' (%s)", mod_char, mod_name) > 0) in modifiers_error()
|
| /linux/tools/lib/api/fs/ |
| H A D | tracing_path.c | 72 if (asprintf(&file, "%s%s", tracing_path_mount(), name) < 0) in get_tracing_file() 87 if (asprintf(&file, "%s/events/%s", tracing_path_mount(), name) < 0) in get_events_file()
|
| /linux/tools/perf/ui/browsers/ |
| H A D | res_sample.c | 51 if (asprintf(&names[i], "%s: CPU %d tid %d", tbuf, in res_sample_browse() 76 if (asprintf(&cmd, "%s script %s%s --time %s %s%s %s%s --ns %s %s %s %s %s | less +/%s", in res_sample_browse()
|
| H A D | scripts.c | 55 if (asprintf(&c->paths[c->index], in add_script_option() 75 if (asprintf(&c->paths[c->index], "%s %s", value, in scripts_config() 355 if (asprintf(&cmd, "%s%s %s %s%s 2>&1 | less", in script_browse()
|
| H A D | hists.c | 872 if (asprintf(&alloc_str2, "%s%s", str, buf) < 0) in hist_browser__show_callchain_list() 882 if (asprintf(&alloc_str, "%s %s", buf, str) < 0) in hist_browser__show_callchain_list() 998 if (asprintf(&new, "%s%s%s", old_str, in hist_browser__folded_callchain_str() 1003 if (asprintf(&new, "%s %s", value_str, str) < 0) in hist_browser__folded_callchain_str() 1006 if (asprintf(&new, "%s", str) < 0) in hist_browser__folded_callchain_str() 1045 if (asprintf(&value_str, "%s", buf) < 0) { in hist_browser__show_callchain_folded() 2540 if (asprintf(optstr, "Annotate %s", ms->sym->name) < 0) in add_annotate_opt() 2565 if (asprintf(optstr, "Annotate type %s", he->mem_type->self.type_name) < 0) in add_annotate_type_opt() 2622 ret = asprintf(optstr, "Zoom %s %s(%d) thread", in add_thread_opt() 2625 ret = asprintf(optstr, "Zoom %s %s thread", in_out, comm_set_str); in add_thread_opt() [all …]
|
| /linux/tools/perf/arch/ |
| H A D | common.c | 161 if (asprintf(&buf, "%s%s", cross_env, name) < 0) in perf_env__lookup_binutils_path() 209 if (asprintf(&buf, "%s%s", path_list[idx], name) < 0) in perf_env__lookup_binutils_path()
|
| /linux/tools/perf/arch/powerpc/util/ |
| H A D | header.c | 67 if (asprintf(&bufp, "0x%.8lx", pvr) < 0) in get_cpuid_str()
|
| /linux/tools/perf/arch/loongarch/util/ |
| H A D | header.c | 64 if (model && (asprintf(&cpuid, "%s", model) < 0)) in _get_cpuid()
|
| /linux/scripts/ |
| H A D | sign-file.c | 240 ERR(asprintf(&dest_name, "%s.~signed~", module_name) < 0, in main() 299 ERR(asprintf(&sig_file_name, "%s.p7s", module_name) < 0, in main()
|
| /linux/tools/testing/selftests/ring-buffer/ |
| H A D | map_test.c | 44 if (asprintf(&str, "%d", value) < 0) in __tracefs_write_int() 85 if (asprintf(&cpu_path, in tracefs_cpu_map()
|
| /linux/tools/perf/arch/riscv/util/ |
| H A D | header.c | 72 if (asprintf(&cpuid, "%s-%s-%s", mvendorid, marchid, mimpid) < 0) in _get_cpuid()
|
| /linux/tools/testing/selftests/openat2/ |
| H A D | helpers.h | 74 #define E_asprintf(...) E_func(asprintf, __VA_ARGS__)
|
| /linux/tools/testing/selftests/firmware/ |
| H A D | fw_namespace.c | 128 if (asprintf(&fw_path, "/lib/firmware/%s", fw_name) < 0) in main()
|