perf pmu: Privatize perf_pmu_{format, alias} structs
Commit-ID: ab1bf653220b37927b838df81042c8355d20bc49 Gitweb: http://git.kernel.org/tip/ab1bf653220b37927b838df81042c8355d20bc49 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 18 Jan 2013 17:05:09 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 24 Jan 2013 16:40:51 -0300
perf pmu: Privatize perf_pmu_{format,alias} structs
They are only used in pmu.c, so no need to make them public in pmu.h.
Acked-by Jiri Olsa <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/pmu.c | 14 +++++++++++++- tools/perf/util/pmu.h | 13 ------------- 2 files changed, 13 insertions(+), 14 deletions(-)
tools/perf/util/pmu.c +13 -1
@@ -1,4 +1,3 @@ -#include <linux/list.h> #include <sys/types.h> #include <sys/stat.h>
@@ -11,6 +10,19 @@#include "parse-events.h" #include "cpumap.h" +struct perf_pmu_alias { +char *name; +struct list_head terms; +struct list_head list; +}; + +struct perf_pmu_format { +char *name; +int value; + DECLARE_BITMAP(bits, PERF_PMU_FORMAT_BITS); +struct list_head list; +}; +#define EVENT_SOURCE_DEVICE_PATH "/bus/event_source/devices/"int perf_pmu_parse (struct list_head *list,char *name);
tools/perf/util/pmu.h +0 -13
@@ -12,19 +12,6 @@ enum {#define PERF_PMU_FORMAT_BITS 64 -struct perf_pmu_format { -char *name; -int value; - DECLARE_BITMAP(bits, PERF_PMU_FORMAT_BITS); -struct list_head list; -}; - -struct perf_pmu_alias { -char *name; -struct list_head terms; -struct list_head list; -}; -struct perf_pmu {char *name;__u32 type;