perf data: Support single perf.data file directory
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 4 Oct 2019 08:31:20 +0000 (11:31 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Nov 2019 18:43:05 +0000 (15:43 -0300)
commit46e201efa15b70ec39df5237116fddebb4f5057c
tree9aa984ba363bab12e5c52b25bace25675b3a00de
parent01e97a59ea3e071e5c60ad46c40b4db748bfe928
perf data: Support single perf.data file directory

Support directory output that contains a regular perf.data file, named
"data". By default the directory is named perf.data i.e.
perf.data
└── data

Most of the infrastructure to support a directory is already there. This
patch makes the changes needed to support the format above.

Presently there is no 'perf record' option to output a directory.

This is preparation for adding support for putting a copy of /proc/kcore in
the directory.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20191004083121.12182-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf.data-directory-format.txt [new file with mode: 0644]
tools/perf/builtin-record.c
tools/perf/util/data.c
tools/perf/util/data.h