]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix perf record as non root with kptr_restrict == 1
authorAndi Kleen <ak@linux.intel.com>
Wed, 24 Sep 2014 21:39:54 +0000 (14:39 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 26 Sep 2014 13:51:41 +0000 (10:51 -0300)
commit8267a14ad23804542fcefc9a51bf36d935a26a97
tree64c783c65a8765b304cd09065ee1c580f124d32c
parente8331063bfc8f8b0dd00529e825217ee37cf5eeb
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 <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1411594794-7229-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c
tools/perf/util/session.c