diff options
author | 2019-08-26 21:39:15 -0400 | |
---|---|---|
committer | 2019-08-28 17:19:19 -0300 | |
commit | 8859aedefefe7eeea5e67968b7fe39c828d589a0 (patch) | |
tree | e7af29f67f95ff7b9c7dbb71c8007d271beca0b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf evsel: Kernel profiling is disallowed only when perf_event_paranoid > 1 (diff) | |
download | linux-dev-8859aedefefe7eeea5e67968b7fe39c828d589a0.tar.xz linux-dev-8859aedefefe7eeea5e67968b7fe39c828d589a0.zip |
perf symbols: Use CAP_SYSLOG with kptr_restrict checks
The kernel is using CAP_SYSLOG capability instead of uid==0 and euid==0
when checking kptr_restrict. Make perf do the same.
Also, the kernel is a more restrictive than "no restrictions" in case of
kptr_restrict==0, so add the same logic to perf.
Signed-off-by: Igor Lubashev <ilubashe@akamai.com>
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: James Morris <jmorris@namei.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1566869956-7154-5-git-send-email-ilubashe@akamai.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions