|
@@ -387,8 +387,7 @@ static int h_24x7_event_init(struct perf_event *event)
|
|
|
event->attr.exclude_hv ||
|
|
|
event->attr.exclude_idle ||
|
|
|
event->attr.exclude_host ||
|
|
|
- event->attr.exclude_guest ||
|
|
|
- is_sampling_event(event)) /* no sampling */
|
|
|
+ event->attr.exclude_guest)
|
|
|
return -EINVAL;
|
|
|
|
|
|
/* no branch sampling */
|
|
@@ -513,6 +512,9 @@ static int hv_24x7_init(void)
|
|
|
if (!hv_page_cache)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
+ /* sampling not supported */
|
|
|
+ h_24x7_pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT;
|
|
|
+
|
|
|
r = perf_pmu_register(&h_24x7_pmu, h_24x7_pmu.name, -1);
|
|
|
if (r)
|
|
|
return r;
|