]> git.baikalelectronics.ru Git - kernel.git/commit
perf ftrace: Improve error message about capability to use ftrace
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Aug 2019 20:27:11 +0000 (17:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Aug 2019 13:59:59 +0000 (10:59 -0300)
commit847ce73f47ab3d7045f9adf92a8aaf840fc53a7c
tree49210714c5adf14b5495e1d3b33b6104b0543352
parentc5fac29812d00cd347d872f2f304b522a1f9a04b
perf ftrace: Improve error message about capability to use ftrace

If we link against libcap, then we can state that CAP_SYS_ADMIN is
needed, if not, fallback to telling the user it needs to be root, as was
before linking against libcap.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Igor Lubashev <ilubashe@akamai.com>
Cc: James Morris <jmorris@namei.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Link: https://lkml.kernel.org/n/tip-hhnbjdo8r67054of9zm2kxtl@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-ftrace.c