perf trace: Store the major number for a file when storing its pathname
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 Dec 2018 16:32:59 +0000 (13:32 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Dec 2018 19:33:04 +0000 (16:33 -0300)
commit4bcc4cff6a10e5287d4dd3e73b6b4689f9a0c570
tree3d6a8306806adf95bfb32023c9f5c7ffea1afe0a
parentd7e134845d6b19288dec5582ce91d6c6052fcdad
perf trace: Store the major number for a file when storing its pathname

We keep a table for the fds to map them back to pathnames when showing
'fd' based APIs such as write(), store as well the major number for the
device the path is in, to use in things like choosing the right ioctl
'cmd' beautifier.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-qjkds7bnk7v7fk2xhqsb0a4v@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c