From: Stephane Eranian Date: Tue, 21 May 2013 10:53:37 +0000 (+0200) Subject: perf/x86: Check branch sampling priv level in generic code X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~62^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b923c8f5de6722393e614b096d5040b6d4eaf98;p=pandora-kernel.git perf/x86: Check branch sampling priv level in generic code This patch moves commit 7cc23cd to the generic code: perf/x86/intel/lbr: Demand proper privileges for PERF_SAMPLE_BRANCH_KERNEL The check is now implemented in generic code instead of x86 specific code. That way we do not have to repeat the test in each arch supporting branch sampling. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Link: http://lkml.kernel.org/r/20130521105337.GA2879@quad Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed