perf data: Move perf_dir_version into data.h
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 4 Oct 2019 08:31:18 +0000 (11:31 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Nov 2019 18:43:05 +0000 (15:43 -0300)
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>
tools/perf/util/data.h
tools/perf/util/header.h

index 259868a39019890ce6c91de895fc7cf2048c7e6e..218fe9a168010009b851177ae6c92857ebff579d 100644 (file)
@@ -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;
index ca53a929e9fdd5f2e1bb69e388974707e8324ef7..840f95cee349407f53d2d9842aebd09389220f98 100644 (file)
@@ -52,10 +52,6 @@ enum perf_header_version {
        PERF_HEADER_VERSION_2,
 };
 
-enum perf_dir_version {
-       PERF_DIR_VERSION        = 1,
-};
-
 struct perf_file_section {
        u64 offset;
        u64 size;