Messages in this thread | | | Date | Fri, 3 Oct 2014 23:04:28 +0200 | From | Peter Zijlstra <> | Subject | Re: [PATCH] x86,seccomp,prctl: Remove PR_TSC_SIGSEGV and seccomp TSC filtering |
| |
On Fri, Oct 03, 2014 at 11:02:13PM +0200, Peter Zijlstra wrote: > @@ -1928,7 +1939,7 @@ void arch_perf_update_userpage(struct perf_event_mmap_page *userpg, u64 now) > > userpg->cap_user_time = 0; > userpg->cap_user_time_zero = 0; > - userpg->cap_user_rdpmc = x86_pmu.attr_rdpmc; > + userpg->cap_user_rdpmc = x86_pmu.attr_rdpmc && test_thread_flag(TIF_SECCOMP);
&& !test_thread_flag(TIF_SECCOMP) would probably work better
> userpg->pmc_width = x86_pmu.cntval_bits; > > if (!sched_clock_stable())
| |