sh_pmu
extern int register_sh_pmu(struct sh_pmu *);
static struct sh_pmu sh7750_pmu = {
static struct sh_pmu sh7750_pmu;
static struct sh_pmu sh4a_pmu = {
static struct sh_pmu sh4a_pmu;
config = attr->config & sh_pmu->raw_event_mask;
if (attr->config >= sh_pmu->max_events)
config = sh_pmu->event_map(attr->config);
new_raw_count = sh_pmu->read(idx);
sh_pmu->disable(hwc, idx);
sh_pmu->enable(hwc, idx);
idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events);
if (idx == sh_pmu->num_events)
sh_pmu->disable(hwc, idx);
sh_pmu->enable_all();
sh_pmu->disable_all();
int register_sh_pmu(struct sh_pmu *_pmu)
if (sh_pmu)
sh_pmu = _pmu;
static struct sh_pmu *sh_pmu __read_mostly;
return !!sh_pmu;
if (!sh_pmu->cache_events)
ev = (*sh_pmu->cache_events)[type][op][result];