From: Andi Kleen Date: Wed, 24 Sep 2014 21:39:54 +0000 (-0700) Subject: perf tools: Fix perf record as non root with kptr_restrict == 1 X-Git-Tag: omap-for-v3.19/prcm-cleanup~97^2~3^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5c2a4c9561cbbd374231bd341936dae716df9dd;p=pandora-kernel.git perf tools: Fix perf record as non root with kptr_restrict == 1 Currently perf record always errors out when you run it as non-root with kptr_restrict == 1, which is often the default. Make it only warn instead and fix the kernel resolve code to not segfault later. Profiling works still fine, except kernel symbols are not resolved. Signed-off-by: Andi Kleen Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1411594794-7229-1-git-send-email-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed