diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-02-13 14:45:24 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-02-13 15:22:33 -0500 |
commit | d6195a6a2c247515d5832debb51c03a74dc3f8f6 (patch) | |
tree | 18a5f7ae1648ab4167c8f2db7fd372b031bce600 /tools/perf/builtin-stat.c | |
parent | e8c6f437fd12d39e462962eaed2315bac597d34c (diff) |
perf evsel: Inform how to make a sysctl setting permanent
When a tool can't open counters due to the kernel.perf_event_paranoit
sysctl setting, we inform how to tweak it to allow the operation to
succeed, in addition to that, suggest setting /etc/sysctl.conf to
make the setting permanent.
Suggested-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-4gwe99k4a6p12d4u8bbyttj2@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r-- | tools/perf/builtin-stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index a02f2e965628..f28719178b51 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -533,7 +533,7 @@ static int store_counter_ids(struct perf_evsel *counter) | |||
533 | static int __run_perf_stat(int argc, const char **argv) | 533 | static int __run_perf_stat(int argc, const char **argv) |
534 | { | 534 | { |
535 | int interval = stat_config.interval; | 535 | int interval = stat_config.interval; |
536 | char msg[512]; | 536 | char msg[BUFSIZ]; |
537 | unsigned long long t0, t1; | 537 | unsigned long long t0, t1; |
538 | struct perf_evsel *counter; | 538 | struct perf_evsel *counter; |
539 | struct timespec ts; | 539 | struct timespec ts; |