Skip to content

Commit

Permalink
perf pmu: Privatize perf_pmu_{format,alias} structs
Browse files Browse the repository at this point in the history
They are only used in pmu.c, so no need to make them public in pmu.h.

Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-3gu6vhyro22ywqcldy0gtegv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 24, 2013
1 parent be651ed commit ab1bf65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
14 changes: 13 additions & 1 deletion tools/perf/util/pmu.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include <linux/list.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand All @@ -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);
Expand Down
13 changes: 0 additions & 13 deletions tools/perf/util/pmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ab1bf65

Please sign in to comment.