Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf trace: Do not beautify the 'pid' parameter as a simple integer

Leave it alone so that it ends up assigned to SCA_PID via its type,
'pid_t', that will look up the pid on the machine thread rb_tree and
possibly find its COMM.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-r7dujgmhtxxfajuunpt1bkuo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+1 -2
+1 -2
tools/perf/builtin-trace.c
··· 1043 1043 [1] = SCA_FILENAME, /* filename */ 1044 1044 [2] = SCA_OPEN_FLAGS, /* flags */ }, }, 1045 1045 { .name = "perf_event_open", .errmsg = true, 1046 - .arg_scnprintf = { [1] = SCA_INT, /* pid */ 1047 - [2] = SCA_INT, /* cpu */ 1046 + .arg_scnprintf = { [2] = SCA_INT, /* cpu */ 1048 1047 [3] = SCA_FD, /* group_fd */ 1049 1048 [4] = SCA_PERF_FLAGS, /* flags */ }, }, 1050 1049 { .name = "pipe2", .errmsg = true,