Commit ed13ec58 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf/x86: Enable raw event access to Intel offcore events

Now that the core offcore support is fixed up (thanks Stephane) and we
have sane generic events utilizing them, re-enable the raw access to
the feature as well.

Note that it doesn't matter if you use event 0x1b7 or 0x1bb to specify
an offcore event, either one works and neither guarantees you'll end
up on a particular offcore MSR.

Based on original patch from: Vince Weaver <>.
Signed-off-by: default avatarPeter Zijlstra <>
Cc: Vince Weaver <>.
Cc: Stephane Eranian <>
Link: default avatarIngo Molnar <>
parent aa2bc1ad
......@@ -312,12 +312,8 @@ int x86_setup_perfctr(struct perf_event *event)
* Do not allow config1 (extended registers) to propagate,
* there's no sane user-space generalization yet:
if (attr->type == PERF_TYPE_RAW)
return 0;
return x86_pmu_extra_regs(event->attr.config, event);
if (attr->type == PERF_TYPE_HW_CACHE)
return set_ext_hw_attr(hwc, event);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment