Re: [RFC 5/5] x86,perf: Only allow rdpmc if a perf_event is mapped
From: Martin Schwidefsky
Date: Mon Oct 20 2014 - 05:24:26 EST
On Mon, 20 Oct 2014 10:48:13 +0200
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> > - cpumsf_pmu_event_idx is the same as power_pmu_event_idx.
>
> Oh cute, lets ask the s390 people, do you guys have a userspace
> instruction to read the actual counter value?
The "extract cpu counter" ECCTR instruction can be authorized to
be used in user-space with a bit in CR0. With the current code
this bit is not set, the cpu measurement facility is not usable
in user space without a patch to the kernel.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/