mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
01e97a59ea
commit
46e201efa1
28
tools/perf/Documentation/perf.data-directory-format.txt
Normal file
28
tools/perf/Documentation/perf.data-directory-format.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
perf.data directory format
|
||||
|
||||
DISCLAIMER This is not ABI yet and is subject to possible change
|
||||
in following versions of perf. We will remove this
|
||||
disclaimer once the directory format soaks in.
|
||||
|
||||
|
||||
This document describes the on-disk perf.data directory format.
|
||||
|
||||
The layout is described by HEADER_DIR_FORMAT feature.
|
||||
Currently it holds only version number (0):
|
||||
|
||||
HEADER_DIR_FORMAT = 24
|
||||
|
||||
struct {
|
||||
uint64_t version;
|
||||
}
|
||||
|
||||
The current only version value 0 means that:
|
||||
- there is a single perf.data file named 'data' within the directory.
|
||||
e.g.
|
||||
|
||||
$ tree -ps perf.data
|
||||
perf.data
|
||||
└── [-rw------- 25912] data
|
||||
|
||||
Future versions are expected to describe different data files
|
||||
layout according to special needs.
|
||||
Reference in New Issue
Block a user