aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2014-06-10 16:18:54 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-06-19 15:13:12 -0400
commit5229e366ee6baeb58b77e09643d2e11cbbd29950 (patch)
treea562927b7bf32c78bca4dbe60ea39687e12d1e73 /tools/perf/util
parentcdcd1e6bd8a92f8353fc2f37003c6eae2d1e6903 (diff)
perf evlist: Add suggestion of how to set perf_event_paranoid sysctl
Minor hint to speed up problem resolution and get 'trace' working for non root users. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-abdqi8km4fj9osrn70q2zj9v@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/evlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index 59ef2802fcf6..c51223ac25f4 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -1214,10 +1214,11 @@ int perf_evlist__strerror_open(struct perf_evlist *evlist __maybe_unused,
1214 "For your workloads it needs to be <= 1\nHint:\t"); 1214 "For your workloads it needs to be <= 1\nHint:\t");
1215 } 1215 }
1216 printed += scnprintf(buf + printed, size - printed, 1216 printed += scnprintf(buf + printed, size - printed,
1217 "For system wide tracing it needs to be set to -1"); 1217 "For system wide tracing it needs to be set to -1.\n");
1218 1218
1219 printed += scnprintf(buf + printed, size - printed, 1219 printed += scnprintf(buf + printed, size - printed,
1220 ".\nHint:\tThe current value is %d.", value); 1220 "Hint:\tTry: 'sudo sh -c \"echo -1 > /proc/sys/kernel/perf_event_paranoid\"'\n"
1221 "Hint:\tThe current value is %d.", value);
1221 break; 1222 break;
1222 default: 1223 default:
1223 scnprintf(buf, size, "%s", emsg); 1224 scnprintf(buf, size, "%s", emsg);