diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2019-10-04 11:31:18 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-06 21:43:05 +0300 |
commit | 3dedec4f5ccc8048b9a2cfe89838c3b3275b6b2b (patch) | |
tree | eff2e434ba2f3164f25c734c763b7af6a51f58b1 /tools/perf/util/data.h | |
parent | 490e6db09a9035d7b40a328a2a004ef70b6bdee6 (diff) | |
download | linux-3dedec4f5ccc8048b9a2cfe89838c3b3275b6b2b.tar.xz |
perf data: Move perf_dir_version into data.h
perf_dir_version belongs to struct perf_data which is declared in data.h.
To allow its use in inline perf_data functions, move perf_dir_version to
data.h
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20191004083121.12182-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/data.h')
-rw-r--r-- | tools/perf/util/data.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/data.h b/tools/perf/util/data.h index 259868a39019..218fe9a16801 100644 --- a/tools/perf/util/data.h +++ b/tools/perf/util/data.h @@ -9,6 +9,10 @@ enum perf_data_mode { PERF_DATA_MODE_READ, }; +enum perf_dir_version { + PERF_DIR_VERSION = 1, +}; + struct perf_data_file { char *path; int fd; |