/tools/perf/trace/beauty/ |
D | ioctl.c | 22 static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_tty_cmd() argument 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() 47 static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_drm_cmd() argument 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() 58 static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_pcm_cmd() argument 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() 69 static size_t ioctl__scnprintf_sndrv_ctl_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_ctl_cmd() argument [all …]
|
D | fcntl.c | 13 static size_t fcntl__scnprintf_getfd(unsigned long val, char *bf, size_t size) in fcntl__scnprintf_getfd() argument 15 return scnprintf(bf, size, "%s", val ? "CLOEXEC" : "0"); in fcntl__scnprintf_getfd() 18 static size_t syscall_arg__scnprintf_fcntl_getfd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getfd() argument 20 return fcntl__scnprintf_getfd(arg->val, bf, size); in syscall_arg__scnprintf_fcntl_getfd() 23 static size_t fcntl__scnprintf_getlease(unsigned long val, char *bf, size_t size) in fcntl__scnprintf_getlease() argument 28 return strarray__scnprintf(&strarray__fcntl_setlease, bf, size, "%x", val); in fcntl__scnprintf_getlease() 31 static size_t syscall_arg__scnprintf_fcntl_getlease(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getlease() argument 33 return fcntl__scnprintf_getlease(arg->val, bf, size); in syscall_arg__scnprintf_fcntl_getlease() 36 size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_cmd() argument 67 return syscall_arg__scnprintf_strarrays(bf, size, arg); in syscall_arg__scnprintf_fcntl_cmd() [all …]
|
D | beauty.h | 25 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, int val); 52 size_t syscall_arg__scnprintf_strarrays(char *bf, size_t size, struct syscall_arg *arg); 55 size_t syscall_arg__scnprintf_fd(char *bf, size_t size, struct syscall_arg *arg); 58 size_t syscall_arg__scnprintf_hex(char *bf, size_t size, struct syscall_arg *arg); 61 size_t syscall_arg__scnprintf_int(char *bf, size_t size, struct syscall_arg *arg); 64 size_t syscall_arg__scnprintf_long(char *bf, size_t size, struct syscall_arg *arg); 67 size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_arg *arg); 70 size_t syscall_arg__scnprintf_clone_flags(char *bf, size_t size, struct syscall_arg *arg); 73 size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struct syscall_arg *arg); 76 size_t syscall_arg__scnprintf_fcntl_arg(char *bf, size_t size, struct syscall_arg *arg); [all …]
|
D | pkey_alloc.c | 13 static size_t pkey_alloc__scnprintf_access_rights(int access_rights, char *bf, size_t size) in pkey_alloc__scnprintf_access_rights() argument 23 return scnprintf(bf, size, "%s", s); in pkey_alloc__scnprintf_access_rights() 24 return scnprintf(bf, size, "%d", 0); in pkey_alloc__scnprintf_access_rights() 34 printed += scnprintf(bf + printed, size - printed, "|"); in pkey_alloc__scnprintf_access_rights() 37 …printed += scnprintf(bf + printed, size - printed, "%s", strarray__pkey_alloc_access_rights.entrie… in pkey_alloc__scnprintf_access_rights() 39 printed += scnprintf(bf + printed, size - printed, "0x%#", bit); in pkey_alloc__scnprintf_access_rights() 45 size_t syscall_arg__scnprintf_pkey_alloc_access_rights(char *bf, size_t size, struct syscall_arg *a… in syscall_arg__scnprintf_pkey_alloc_access_rights() argument 49 return pkey_alloc__scnprintf_access_rights(cmd, bf, size); in syscall_arg__scnprintf_pkey_alloc_access_rights()
|
D | mmap.c | 4 static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size, in syscall_arg__scnprintf_mmap_prot() argument 10 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_mmap_prot() 13 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mmap_prot() 26 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", prot); in syscall_arg__scnprintf_mmap_prot() 33 static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size, in syscall_arg__scnprintf_mmap_flags() argument 43 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mmap_flags() 68 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_mmap_flags() 75 static size_t syscall_arg__scnprintf_mremap_flags(char *bf, size_t size, in syscall_arg__scnprintf_mremap_flags() argument 82 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mremap_flags() 91 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_mremap_flags() [all …]
|
D | seccomp.c | 9 static size_t syscall_arg__scnprintf_seccomp_op(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_seccomp_op() argument 15 #define P_SECCOMP_SET_MODE_OP(n) case SECCOMP_SET_MODE_##n: printed = scnprintf(bf, size, #n); break in syscall_arg__scnprintf_seccomp_op() 19 default: printed = scnprintf(bf, size, "%#x", op); break; in syscall_arg__scnprintf_seccomp_op() 31 static size_t syscall_arg__scnprintf_seccomp_flags(char *bf, size_t size, in syscall_arg__scnprintf_seccomp_flags() argument 38 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_seccomp_flags() 46 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_seccomp_flags()
|
D | open_flags.c | 25 size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size) in open__scnprintf_flags() argument 30 return scnprintf(bf, size, "RDONLY"); in open__scnprintf_flags() 33 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in open__scnprintf_flags() 60 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", "SYNC"); in open__scnprintf_flags() 72 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in open__scnprintf_flags() 77 size_t syscall_arg__scnprintf_open_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_open_flags() argument 84 return open__scnprintf_flags(flags, bf, size); in syscall_arg__scnprintf_open_flags()
|
D | statx.c | 15 size_t syscall_arg__scnprintf_statx_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_statx_flags() argument 20 return scnprintf(bf, size, "SYNC_AS_STAT"); in syscall_arg__scnprintf_statx_flags() 23 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_statx_flags() 38 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_statx_flags() 43 size_t syscall_arg__scnprintf_statx_mask(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_statx_mask() argument 49 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_statx_mask() 69 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_statx_mask()
|
D | sched_policy.c | 17 static size_t syscall_arg__scnprintf_sched_policy(char *bf, size_t size, in syscall_arg__scnprintf_sched_policy() argument 29 printed = scnprintf(bf, size, "%s", policies[policy]); in syscall_arg__scnprintf_sched_policy() 31 printed = scnprintf(bf, size, "%#x", policy); in syscall_arg__scnprintf_sched_policy() 35 printed += scnprintf(bf + printed, size - printed, "|%s", #n); \ in syscall_arg__scnprintf_sched_policy() 43 printed += scnprintf(bf + printed, size - printed, "|%#x", flags); in syscall_arg__scnprintf_sched_policy()
|
D | socket_type.c | 21 static size_t syscall_arg__scnprintf_socket_type(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_socket_type() argument 32 #define P_SK_TYPE(n) case SOCK_##n: printed = scnprintf(bf, size, #n); break; in syscall_arg__scnprintf_socket_type() 42 printed = scnprintf(bf, size, "%#x", type); in syscall_arg__scnprintf_socket_type() 47 printed += scnprintf(bf + printed, size - printed, "|%s", #n); \ in syscall_arg__scnprintf_socket_type() 56 printed += scnprintf(bf + printed, size - printed, "|%#x", flags); in syscall_arg__scnprintf_socket_type()
|
D | eventfd.c | 14 static size_t syscall_arg__scnprintf_eventfd_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_eventfd_flags() argument 19 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_eventfd_flags() 22 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_eventfd_flags() 32 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_eventfd_flags()
|
D | flock.c | 20 static size_t syscall_arg__scnprintf_flock(char *bf, size_t size, in syscall_arg__scnprintf_flock() argument 26 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_flock() 29 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #cmd); \ in syscall_arg__scnprintf_flock() 44 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", op); in syscall_arg__scnprintf_flock()
|
D | clone.c | 14 static size_t clone__scnprintf_flags(unsigned long flags, char *bf, size_t size) in clone__scnprintf_flags() argument 20 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in clone__scnprintf_flags() 50 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in clone__scnprintf_flags() 55 size_t syscall_arg__scnprintf_clone_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_clone_flags() argument 74 return clone__scnprintf_flags(flags, bf, size); in syscall_arg__scnprintf_clone_flags()
|
D | msg_flags.c | 21 static size_t syscall_arg__scnprintf_msg_flags(char *bf, size_t size, in syscall_arg__scnprintf_msg_flags() argument 27 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_msg_flags() 30 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_msg_flags() 57 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_msg_flags()
|
D | futex_op.c | 20 static size_t syscall_arg__scnprintf_futex_op(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_futex_op() argument 35 #define P_FUTEX_OP(n) case FUTEX_##n: printed = scnprintf(bf, size, #n); in syscall_arg__scnprintf_futex_op() 49 default: printed = scnprintf(bf, size, "%#x", cmd); break; in syscall_arg__scnprintf_futex_op() 53 printed += scnprintf(bf + printed, size - printed, "|PRIV"); in syscall_arg__scnprintf_futex_op() 56 printed += scnprintf(bf + printed, size - printed, "|CLKRT"); in syscall_arg__scnprintf_futex_op()
|
D | pid.c | 2 size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_pid() argument 6 size_t printed = scnprintf(bf, size, "%d", pid); in syscall_arg__scnprintf_pid() 14 printed += scnprintf(bf + printed, size - printed, in syscall_arg__scnprintf_pid()
|
D | waitid_options.c | 5 static size_t syscall_arg__scnprintf_waitid_options(char *bf, size_t size, in syscall_arg__scnprintf_waitid_options() argument 12 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_waitid_options() 22 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", options); in syscall_arg__scnprintf_waitid_options()
|
D | perf_event_open.c | 18 static size_t syscall_arg__scnprintf_perf_flags(char *bf, size_t size, in syscall_arg__scnprintf_perf_flags() argument 28 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_perf_flags() 39 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_perf_flags()
|
/tools/perf/util/ |
D | top.c | 24 size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size) in perf_top__header_snprintf() argument 47 ret = SNPRINTF(bf, size, in perf_top__header_snprintf() 56 ret = SNPRINTF(bf, size, in perf_top__header_snprintf() 75 ret += SNPRINTF(bf + ret, size - ret, "%" PRIu64 "%s ", in perf_top__header_snprintf() 80 ret += SNPRINTF(bf + ret, size - ret, "%s", perf_evsel__name(top->sym_evsel)); in perf_top__header_snprintf() 82 ret += SNPRINTF(bf + ret, size - ret, "], "); in perf_top__header_snprintf() 85 ret += SNPRINTF(bf + ret, size - ret, " (target_pid: %s", in perf_top__header_snprintf() 88 ret += SNPRINTF(bf + ret, size - ret, " (target_tid: %s", in perf_top__header_snprintf() 91 ret += SNPRINTF(bf + ret, size - ret, " (uid: %s", in perf_top__header_snprintf() 94 ret += SNPRINTF(bf + ret, size - ret, " (all"); in perf_top__header_snprintf() [all …]
|
D | color.c | 51 static int __color_vsnprintf(char *bf, size_t size, const char *color, in __color_vsnprintf() argument 67 r += scnprintf(bf, size, "%s", color); in __color_vsnprintf() 68 r += vscnprintf(bf + r, size - r, fmt, args); in __color_vsnprintf() 70 r += scnprintf(bf + r, size - r, "%s", PERF_COLOR_RESET); in __color_vsnprintf() 72 r += scnprintf(bf + r, size - r, "%s", trail); in __color_vsnprintf() 100 int color_vsnprintf(char *bf, size_t size, const char *color, in color_vsnprintf() argument 103 return __color_vsnprintf(bf, size, color, fmt, args, NULL); in color_vsnprintf() 111 int color_snprintf(char *bf, size_t size, const char *color, in color_snprintf() argument 118 r = color_vsnprintf(bf, size, color, fmt, args); in color_snprintf() 191 int value_color_snprintf(char *bf, size_t size, const char *fmt, double value) in value_color_snprintf() argument [all …]
|
D | color.h | 36 int color_vsnprintf(char *bf, size_t size, const char *color, 40 int color_snprintf(char *bf, size_t size, const char *color, const char *fmt, ...); 42 int value_color_snprintf(char *bf, size_t size, const char *fmt, double value); 43 int percent_color_snprintf(char *bf, size_t size, const char *fmt, ...); 44 int percent_color_len_snprintf(char *bf, size_t size, const char *fmt, ...);
|
D | branch.c | 110 static int count_str_scnprintf(int idx, const char *str, char *bf, int size) in count_str_scnprintf() argument 112 return scnprintf(bf, size, "%s%s", (idx) ? " " : " (", str); in count_str_scnprintf() 115 int branch_type_str(struct branch_type_stat *st, char *bf, int size) in branch_type_str() argument 127 printed += count_str_scnprintf(j++, "COND_FWD", bf + printed, size - printed); in branch_type_str() 130 printed += count_str_scnprintf(j++, "COND_BWD", bf + printed, size - printed); in branch_type_str() 137 printed += count_str_scnprintf(j++, branch_type_name(i), bf + printed, size - printed); in branch_type_str() 141 printed += count_str_scnprintf(j++, "CROSS_4K", bf + printed, size - printed); in branch_type_str() 144 printed += count_str_scnprintf(j++, "CROSS_2M", bf + printed, size - printed); in branch_type_str()
|
D | path.c | 61 int path__join(char *bf, size_t size, const char *path1, const char *path2) in path__join() argument 63 return scnprintf(bf, size, "%s%s%s", path1, path1[0] ? "/" : "", path2); in path__join() 66 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3) in path__join3() argument 68 return scnprintf(bf, size, "%s%s%s%s%s", path1, path1[0] ? "/" : "", in path__join3()
|
D | build-id.h | 16 int build_id__sprintf(const u8 *build_id, int len, char *bf); 19 char *build_id_cache__kallsyms_path(const char *sbuild_id, char *bf, 22 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size, 37 char *build_id_cache__linkname(const char *sbuild_id, char *bf, size_t size);
|
D | sort.c | 42 static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...) in repsep_snprintf() argument 48 n = vsnprintf(bf, size, fmt, ap); in repsep_snprintf() 50 char *sep = bf; in repsep_snprintf() 84 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument 90 return repsep_snprintf(bf, size, "%7d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf() 134 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument 137 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf() 178 static int _hist_entry__dso_snprintf(struct map *map, char *bf, in _hist_entry__dso_snprintf() argument 184 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); in _hist_entry__dso_snprintf() 187 return repsep_snprintf(bf, size, "%-*.*s", width, width, "[unknown]"); in _hist_entry__dso_snprintf() [all …]
|