perf trace beauty: Export the pid beautifier for use in more places
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: ff2f1b2d35aeb672200af4772db1847fdcdfd77b Gitweb: http://git.kernel.org/tip/ff2f1b2d35aeb672200af4772db1847fdcdfd77b Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 14 Jul 2017 15:21:40 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 18 Jul 2017 23:14:04 -0300
perf trace beauty: Export the pid beautifier for use in more places
Now that the beautifiers are being split into multiple source and object files, we will need more of them exported, do it for the 'pid' one, will be used to augment the return of some syscalls that may return a 'pid', such as fcntl(fd, F_GETOWN).
Will also be used for fcntl(fd, F_SETOWN, pid).
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/trace/beauty/beauty.h | 3 +++ tools/perf/trace/beauty/pid.c | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-)
tools/perf/trace/beauty/beauty.h +3 -0
@@ -43,6 +43,9 @@ size_t syscall_arg__scnprintf_int(char *bf, size_t size, struct syscall_arg *argsize_t syscall_arg__scnprintf_long (char *bf,size_t size,struct syscall_arg *arg);#define SCA_LONG syscall_arg__scnprintf_long +size_t syscall_arg__scnprintf_pid (char *bf,size_t size,struct syscall_arg *arg); +#define SCA_PID syscall_arg__scnprintf_pid +size_t syscall_arg__scnprintf_fcntl_cmd (char *bf,size_t size,struct syscall_arg *arg);#define SCA_FCNTL_CMD syscall_arg__scnprintf_fcntl_cmd
tools/perf/trace/beauty/pid.c +1 -3
@@ -1,4 +1,4 @@ -static size_t syscall_arg__scnprintf_pid (char *bf,size_t size,struct syscall_arg *arg) +size_t syscall_arg__scnprintf_pid (char *bf,size_t size,struct syscall_arg *arg) {int pid = arg->val;struct trace *trace = arg->trace;
@@ -17,5 +17,3 @@ static size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_areturn printed; } - -#define SCA_PID syscall_arg__scnprintf_pid