/tools/perf/trace/beauty/ |
D | ioctl.c | 42 return scnprintf(bf, size, "%s", strarray__ioctl_tty_cmd.entries[nr]); in ioctl__scnprintf_tty_cmd() 44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd() 53 return scnprintf(bf, size, "DRM_%s", strarray__drm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_drm_cmd() 55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd() 64 return scnprintf(bf, size, "SNDRV_PCM_%s", strarray__sndrv_pcm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_sndrv_pcm_cmd() 66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd() 75 return scnprintf(bf, size, "SNDRV_CTL_%s", strarray__sndrv_ctl_ioctl_cmds.entries[nr]); in ioctl__scnprintf_sndrv_ctl_cmd() 77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd() 86 return scnprintf(bf, size, "KVM_%s", strarray__kvm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_kvm_cmd() 88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd() [all …]
|
D | sockaddr.c | 24 return scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin->sin_port), in af_inet__scnprintf() 33 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), in af_inet6__scnprintf() 36 printed += scnprintf(bf + printed, size - printed, ", flowinfo: %lu", flowinfo); in af_inet6__scnprintf() 38 printed += scnprintf(bf + printed, size - printed, ", scope_id: %lu", sin6->sin6_scope_id); in af_inet6__scnprintf() 46 return scnprintf(bf, size, ", path: %s", sun->sun_path); in af_local__scnprintf() 62 printed = scnprintf(bf, size, "{ .family: %s", family); in syscall_arg__scnprintf_augmented_sockaddr() 67 return printed + scnprintf(bf + printed, size - printed, " }"); in syscall_arg__scnprintf_augmented_sockaddr() 75 return scnprintf(bf, size, "%#x", arg->val); in syscall_arg__scnprintf_sockaddr()
|
D | pkey_alloc.c | 19 return scnprintf(bf, size, "%s%s", show_prefix ? sa->prefix : "", s); in strarray__scnprintf_flags() 20 return scnprintf(bf, size, "%d", 0); in strarray__scnprintf_flags() 30 printed += scnprintf(bf + printed, size - printed, "|"); in strarray__scnprintf_flags() 33 …printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? sa->prefix : "", sa->entr… in strarray__scnprintf_flags() 35 printed += scnprintf(bf + printed, size - printed, "0x%#", bit); in strarray__scnprintf_flags()
|
D | mmap.c | 13 return scnprintf(bf, size, "%sNONE", show_prefix ? prot_prefix : ""); in syscall_arg__scnprintf_mmap_prot() 16 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pro… in syscall_arg__scnprintf_mmap_prot() 29 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", prot); in syscall_arg__scnprintf_mmap_prot() 66 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? fla… in syscall_arg__scnprintf_mremap_flags() 75 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_mremap_flags() 88 return scnprintf(bf, size, "MADV_%s", strarray__madvise_advices.entries[behavior]); in madvise__scnprintf_behavior() 90 return scnprintf(bf, size, "%#", behavior); in madvise__scnprintf_behavior()
|
D | sched_policy.c | 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", policies[policy]); in syscall_arg__scnprintf_sched_policy() 33 printed = scnprintf(bf, size, "%#x", policy); in syscall_arg__scnprintf_sched_policy() 37 printed += scnprintf(bf + printed, size - printed, "|%s%s", show_prefix ? prefix : "", #n); \ in syscall_arg__scnprintf_sched_policy() 45 printed += scnprintf(bf + printed, size - printed, "|%#x", flags); in syscall_arg__scnprintf_sched_policy()
|
D | statx.c | 21 return scnprintf(bf, size, "%s%s", show_prefix ? "AT_STATX_" : "", "SYNC_AS_STAT"); in syscall_arg__scnprintf_statx_flags() 24 …printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", show_prefix ? prefi… in syscall_arg__scnprintf_statx_flags() 39 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_statx_flags() 52 …printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", show_prefix ? prefi… in syscall_arg__scnprintf_statx_mask() 72 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_statx_mask()
|
D | socket_type.c | 34 #define P_SK_TYPE(n) case SOCK_##n: printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : ""… in syscall_arg__scnprintf_socket_type() 44 printed = scnprintf(bf, size, "%#x", type); in syscall_arg__scnprintf_socket_type() 49 printed += scnprintf(bf + printed, size - printed, "|%s", #n); \ in syscall_arg__scnprintf_socket_type() 58 printed += scnprintf(bf + printed, size - printed, "|%#x", flags); in syscall_arg__scnprintf_socket_type()
|
D | seccomp.c | 17 #define P_SECCOMP_SET_MODE_OP(n) case SECCOMP_SET_MODE_##n: printed = scnprintf(bf, size, "%s%s", s… in syscall_arg__scnprintf_seccomp_op() 21 default: printed = scnprintf(bf, size, "%#x", op); break; in syscall_arg__scnprintf_seccomp_op() 42 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_seccomp_flags() 50 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_seccomp_flags()
|
D | eventfd.c | 21 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_eventfd_flags() 24 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_eventfd_flags() 34 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_eventfd_flags()
|
D | flock.c | 30 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_flock() 33 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_flock() 48 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", op); in syscall_arg__scnprintf_flock()
|
D | open_flags.c | 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", "RDONLY"); in open__scnprintf_flags() 36 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags() 63 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags() 75 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in open__scnprintf_flags()
|
D | futex_op.c | 37 #define P_FUTEX_OP(n) case FUTEX_##n: printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : … in syscall_arg__scnprintf_futex_op() 51 default: printed = scnprintf(bf, size, "%#x", cmd); break; in syscall_arg__scnprintf_futex_op() 55 …printed += scnprintf(bf + printed, size - printed, "|%s%s", show_prefix ? prefix : "", "PRIVATE_FL… in syscall_arg__scnprintf_futex_op() 58 …printed += scnprintf(bf + printed, size - printed, "|%s%s", show_prefix ? prefix : "", "CLOCK_REAL… in syscall_arg__scnprintf_futex_op()
|
D | futex_val3.c | 14 return scnprintf(bf, size, "%s%s", arg->show_string_prefix ? prefix : "", "MATCH_ANY"); in syscall_arg__scnprintf_futex_val3() 16 return scnprintf(bf, size, "%#xd", bitset); in syscall_arg__scnprintf_futex_val3()
|
D | msg_flags.c | 29 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_msg_flags() 32 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_msg_flags() 59 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_msg_flags()
|
D | pid.c | 7 size_t printed = scnprintf(bf, size, "%d", pid); in syscall_arg__scnprintf_pid() 15 printed += scnprintf(bf + printed, size - printed, in syscall_arg__scnprintf_pid()
|
D | waitid_options.c | 14 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_waitid_options() 24 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", options); in syscall_arg__scnprintf_waitid_options()
|
D | perf_event_open.c | 30 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_perf_flags() 41 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_perf_flags()
|
/tools/perf/util/ |
D | demangle-java.c | 65 rlen += scnprintf(buf + rlen, maxlen - rlen, ", "); in __demangle_java_sym() 68 rlen += scnprintf(buf + rlen, maxlen - rlen, "class "); in __demangle_java_sym() 84 rlen += scnprintf(buf + rlen, maxlen - rlen, ", "); in __demangle_java_sym() 85 rlen += scnprintf(buf + rlen, maxlen - rlen, "%s", base_types[*q - 'A']); in __demangle_java_sym() 87 rlen += scnprintf(buf + rlen, maxlen - rlen, "[]"); in __demangle_java_sym() 95 rlen += scnprintf(buf + rlen, maxlen - rlen, "void"); in __demangle_java_sym() 97 rlen += scnprintf(buf + rlen, maxlen - rlen, "[]"); in __demangle_java_sym() 124 rlen += scnprintf(buf + rlen, maxlen - rlen, "."); in __demangle_java_sym() 133 rlen += scnprintf(buf + rlen, maxlen - rlen, "."); in __demangle_java_sym()
|
D | mem-events.c | 36 scnprintf(mem_loads_name, sizeof(mem_loads_name), in perf_mem_events__name() 96 scnprintf(path, PATH_MAX, "%s/devices/cpu/events/%s", in perf_mem_events__init() 141 l += scnprintf(out + l, sz - l, tlb_access[i]); in perf_mem__tlb_scnprintf() 144 l += scnprintf(out, sz - l, "N/A"); in perf_mem__tlb_scnprintf() 146 l += scnprintf(out + l, sz - l, " hit"); in perf_mem__tlb_scnprintf() 148 l += scnprintf(out + l, sz - l, " miss"); in perf_mem__tlb_scnprintf() 211 l += scnprintf(out + l, sz - l, mem_lvl[i]); in perf_mem__lvl_scnprintf() 221 l += scnprintf(out + l, sz - l, mem_lvlnum[lvl]); in perf_mem__lvl_scnprintf() 223 l += scnprintf(out + l, sz - l, "L%d", lvl); in perf_mem__lvl_scnprintf() 227 l += scnprintf(out + l, sz - l, "N/A"); in perf_mem__lvl_scnprintf() [all …]
|
D | cputopo.c | 41 scnprintf(filename, MAXPATHLEN, CORE_SIB_FMT, in build_cpu_topology() 72 scnprintf(filename, MAXPATHLEN, DIE_SIB_FMT, in build_cpu_topology() 100 scnprintf(filename, MAXPATHLEN, THRD_SIB_FMT_NEW, in build_cpu_topology() 103 scnprintf(filename, MAXPATHLEN, THRD_SIB_FMT, in build_cpu_topology() 166 scnprintf(filename, MAXPATHLEN, DIE_SIB_FMT, in has_die_topology() 245 scnprintf(str, MAXPATHLEN, NODE_MEMINFO_FMT, in load_numa_node() 268 scnprintf(str, MAXPATHLEN, NODE_CPULIST_FMT, in load_numa_node() 304 scnprintf(path, MAXPATHLEN, NODE_ONLINE_FMT, in numa_topology__new()
|
/tools/perf/ |
D | builtin-trace.c | 95 size_t (*scnprintf)(char *bf, size_t size, struct syscall_arg *arg); member 428 size_t printed = scnprintf(bf, size, intfmt, val); in strarray__scnprintf() 430 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf() 434 return scnprintf(bf, size, "%s%s", show_prefix ? sa->prefix : "", sa->entries[idx]); in strarray__scnprintf() 469 return scnprintf(bf, size, "%s%s", show_prefix ? sa->prefix : "", sa->entries[idx]); in strarrays__scnprintf() 473 printed = scnprintf(bf, size, intfmt, val); in strarrays__scnprintf() 475 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sas->entries[0]->prefix); in strarrays__scnprintf() 496 return scnprintf(bf, size, "%s%s", arg->show_string_prefix ? prefix : "", "CWD"); in syscall_arg__scnprintf_fd_at() 510 return scnprintf(bf, size, "%#lx", arg->val); in syscall_arg__scnprintf_hex() 516 return scnprintf(bf, size, "NULL"); in syscall_arg__scnprintf_ptr() [all …]
|
/tools/perf/arch/s390/util/ |
D | header.c | 65 mfsize += scnprintf(manufacturer + mfsize, in get_cpuid() 74 tpsize += scnprintf(type + tpsize, in get_cpuid() 83 mdsize += scnprintf(model + mdsize, sizeof(model) - mdsize, in get_cpuid() 113 vssize += scnprintf(version + vssize, in get_cpuid() 120 atsize += scnprintf(authorization + atsize, in get_cpuid()
|
/tools/perf/ui/gtk/ |
D | annotate.c | 49 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_percent() 50 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent() 52 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_percent() 67 return scnprintf(buf, size, "%"PRIx64, start + dl->al.offset); in perf_gtk__get_offset() 85 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_line() 86 ret += scnprintf(buf + ret, size - ret, "%s", line); in perf_gtk__get_line() 88 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_line() 138 ret += scnprintf(s + ret, sizeof(s) - ret, " "); in perf_gtk__annotate_symbol()
|
/tools/lib/ |
D | bitmap.c | 47 ret += scnprintf(buf + ret, size - ret, ","); in bitmap_scnprintf() 51 ret += scnprintf(buf + ret, size - ret, "%d", rbot); in bitmap_scnprintf() 53 ret += scnprintf(buf + ret, size - ret, "-%d", rtop); in bitmap_scnprintf()
|
/tools/perf/arch/arm64/util/ |
D | header.c | 35 scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d"MIDR, in get_cpuid_str() 55 scnprintf(buf, MIDR_SIZE, "0x%016lx", midr); in get_cpuid_str()
|