libperf: Move 'enum perf_user_event_type' to perf/event.h
authorJiri Olsa <jolsa@kernel.org>
Wed, 28 Aug 2019 13:57:17 +0000 (15:57 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2019 11:36:12 +0000 (08:36 -0300)
So it's available for libperf's users.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190828135717.7245-24-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/include/perf/event.h
tools/perf/util/event.h

index 1655c74..1810689 100644 (file)
@@ -323,6 +323,29 @@ struct perf_record_compressed {
        char                     data[];
 };
 
+enum perf_user_event_type { /* above any possible kernel type */
+       PERF_RECORD_USER_TYPE_START             = 64,
+       PERF_RECORD_HEADER_ATTR                 = 64,
+       PERF_RECORD_HEADER_EVENT_TYPE           = 65, /* deprecated */
+       PERF_RECORD_HEADER_TRACING_DATA         = 66,
+       PERF_RECORD_HEADER_BUILD_ID             = 67,
+       PERF_RECORD_FINISHED_ROUND              = 68,
+       PERF_RECORD_ID_INDEX                    = 69,
+       PERF_RECORD_AUXTRACE_INFO               = 70,
+       PERF_RECORD_AUXTRACE                    = 71,
+       PERF_RECORD_AUXTRACE_ERROR              = 72,
+       PERF_RECORD_THREAD_MAP                  = 73,
+       PERF_RECORD_CPU_MAP                     = 74,
+       PERF_RECORD_STAT_CONFIG                 = 75,
+       PERF_RECORD_STAT                        = 76,
+       PERF_RECORD_STAT_ROUND                  = 77,
+       PERF_RECORD_EVENT_UPDATE                = 78,
+       PERF_RECORD_TIME_CONV                   = 79,
+       PERF_RECORD_HEADER_FEATURE              = 80,
+       PERF_RECORD_COMPRESSED                  = 81,
+       PERF_RECORD_HEADER_MAX
+};
+
 union perf_event {
        struct perf_event_header                header;
        struct perf_record_mmap                 mmap;
index a7341e1..4c0c523 100644 (file)
@@ -146,29 +146,6 @@ struct perf_sample {
         PERF_MEM_S(LOCK, NA) |\
         PERF_MEM_S(TLB, NA))
 
-enum perf_user_event_type { /* above any possible kernel type */
-       PERF_RECORD_USER_TYPE_START             = 64,
-       PERF_RECORD_HEADER_ATTR                 = 64,
-       PERF_RECORD_HEADER_EVENT_TYPE           = 65, /* deprecated */
-       PERF_RECORD_HEADER_TRACING_DATA         = 66,
-       PERF_RECORD_HEADER_BUILD_ID             = 67,
-       PERF_RECORD_FINISHED_ROUND              = 68,
-       PERF_RECORD_ID_INDEX                    = 69,
-       PERF_RECORD_AUXTRACE_INFO               = 70,
-       PERF_RECORD_AUXTRACE                    = 71,
-       PERF_RECORD_AUXTRACE_ERROR              = 72,
-       PERF_RECORD_THREAD_MAP                  = 73,
-       PERF_RECORD_CPU_MAP                     = 74,
-       PERF_RECORD_STAT_CONFIG                 = 75,
-       PERF_RECORD_STAT                        = 76,
-       PERF_RECORD_STAT_ROUND                  = 77,
-       PERF_RECORD_EVENT_UPDATE                = 78,
-       PERF_RECORD_TIME_CONV                   = 79,
-       PERF_RECORD_HEADER_FEATURE              = 80,
-       PERF_RECORD_COMPRESSED                  = 81,
-       PERF_RECORD_HEADER_MAX
-};
-
 enum auxtrace_error_type {
        PERF_AUXTRACE_ERROR_ITRACE  = 1,
        PERF_AUXTRACE_ERROR_MAX