Merge tag 'v4.0-rc1' into perf/core, to refresh the tree
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -928,12 +928,22 @@ struct perf_pmu_events_attr {
|
||||
const char *event_str;
|
||||
};
|
||||
|
||||
ssize_t perf_event_sysfs_show(struct device *dev, struct device_attribute *attr,
|
||||
char *page);
|
||||
|
||||
#define PMU_EVENT_ATTR(_name, _var, _id, _show) \
|
||||
static struct perf_pmu_events_attr _var = { \
|
||||
.attr = __ATTR(_name, 0444, _show, NULL), \
|
||||
.id = _id, \
|
||||
};
|
||||
|
||||
#define PMU_EVENT_ATTR_STRING(_name, _var, _str) \
|
||||
static struct perf_pmu_events_attr _var = { \
|
||||
.attr = __ATTR(_name, 0444, perf_event_sysfs_show, NULL), \
|
||||
.id = 0, \
|
||||
.event_str = _str, \
|
||||
};
|
||||
|
||||
#define PMU_FORMAT_ATTR(_name, _format) \
|
||||
static ssize_t \
|
||||
_name##_show(struct device *dev, \
|
||||
|
Reference in New Issue
Block a user