diff options
-rw-r--r-- | tools/perf/util/pmu.c | 14 | ||||
-rw-r--r-- | tools/perf/util/pmu.h | 13 |
2 files changed, 13 insertions, 14 deletions
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 244edbbe1969..4c6f9c490a8d 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | #include <linux/list.h> | 1 | #include <linux/list.h> |
3 | #include <sys/types.h> | 2 | #include <sys/types.h> |
4 | #include <sys/stat.h> | 3 | #include <sys/stat.h> |
@@ -11,6 +10,19 @@ | |||
11 | #include "parse-events.h" | 10 | #include "parse-events.h" |
12 | #include "cpumap.h" | 11 | #include "cpumap.h" |
13 | 12 | ||
13 | struct perf_pmu_alias { | ||
14 | char *name; | ||
15 | struct list_head terms; | ||
16 | struct list_head list; | ||
17 | }; | ||
18 | |||
19 | struct perf_pmu_format { | ||
20 | char *name; | ||
21 | int value; | ||
22 | DECLARE_BITMAP(bits, PERF_PMU_FORMAT_BITS); | ||
23 | struct list_head list; | ||
24 | }; | ||
25 | |||
14 | #define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/" | 26 | #define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/" |
15 | 27 | ||
16 | int perf_pmu_parse(struct list_head *list, char *name); | 28 | int perf_pmu_parse(struct list_head *list, char *name); |
diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h index e881dd180acb..32fe55b659fa 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h | |||
@@ -12,19 +12,6 @@ enum { | |||
12 | 12 | ||
13 | #define PERF_PMU_FORMAT_BITS 64 | 13 | #define PERF_PMU_FORMAT_BITS 64 |
14 | 14 | ||
15 | struct perf_pmu_format { | ||
16 | char *name; | ||
17 | int value; | ||
18 | DECLARE_BITMAP(bits, PERF_PMU_FORMAT_BITS); | ||
19 | struct list_head list; | ||
20 | }; | ||
21 | |||
22 | struct perf_pmu_alias { | ||
23 | char *name; | ||
24 | struct list_head terms; | ||
25 | struct list_head list; | ||
26 | }; | ||
27 | |||
28 | struct perf_pmu { | 15 | struct perf_pmu { |
29 | char *name; | 16 | char *name; |
30 | __u32 type; | 17 | __u32 type; |