perf evsel: Move id_offset out of struct perf_evsel union member
authorJiri Olsa <[email protected]>
Sun, 25 Oct 2015 14:51:44 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 27 Oct 2015 18:04:29 +0000 (15:04 -0300)
Because the 'perf stat record' patches will use the id_offset member
together with the priv pointer.

Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Kan Liang <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evsel.h

index 02a5fed8d9244ad2aa3a9fb6237d591b214eb346..0e22c0b7dab5c3cfccdf7d23a3d81b179a2f5b4d 100644 (file)
@@ -90,9 +90,9 @@ struct perf_evsel {
        double                  scale;
        const char              *unit;
        struct event_format     *tp_format;
+       off_t                   id_offset;
        union {
                void            *priv;
-               off_t           id_offset;
                u64             db_id;
        };
        struct cgroup_sel       *cgrp;