From a5c2a4c9561cbbd374231bd341936dae716df9dd Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Wed, 24 Sep 2014 14:39:54 -0700 Subject: [PATCH] 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-format-patch failed