mtd: print out the page size and oob size after parsing out the nand
[linux/fpc-iii.git] / tools / perf / util / pmu.h
blob68c0db965e1f52574375859e821daacce9387a3a
1 #ifndef __PMU_H
2 #define __PMU_H
4 #include <linux/bitops.h>
5 #include "../../../include/linux/perf_event.h"
7 enum {
8 PERF_PMU_FORMAT_VALUE_CONFIG,
9 PERF_PMU_FORMAT_VALUE_CONFIG1,
10 PERF_PMU_FORMAT_VALUE_CONFIG2,
13 #define PERF_PMU_FORMAT_BITS 64
15 struct perf_pmu__format {
16 char *name;
17 int value;
18 DECLARE_BITMAP(bits, PERF_PMU_FORMAT_BITS);
19 struct list_head list;
22 struct perf_pmu {
23 char *name;
24 __u32 type;
25 struct list_head format;
26 struct list_head list;
29 struct perf_pmu *perf_pmu__find(char *name);
30 int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr,
31 struct list_head *head_terms);
33 int perf_pmu_wrap(void);
34 void perf_pmu_error(struct list_head *list, char *name, char const *msg);
36 int perf_pmu__new_format(struct list_head *list, char *name,
37 int config, unsigned long *bits);
38 void perf_pmu__set_format(unsigned long *bits, long from, long to);
40 int perf_pmu__test(void);
41 #endif /* __PMU_H */