diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2021-08-30 21:37:22 -0700 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-10-27 12:25:09 -0400 |
commit | a90afe8d020da9298c98fddb19b7a6372e2feb45 (patch) | |
tree | c6fdc094c6cbe66853b589bf41799847ed29a2dd /kernel/trace/trace_event_perf.c | |
parent | 39d9c1c103d3061ac94219ac12c04753860b337e (diff) | |
download | linux-stable-a90afe8d020da9298c98fddb19b7a6372e2feb45.tar.gz linux-stable-a90afe8d020da9298c98fddb19b7a6372e2feb45.tar.bz2 linux-stable-a90afe8d020da9298c98fddb19b7a6372e2feb45.zip |
tracing: Show size of requested perf buffer
If the perf buffer isn't large enough, provide a hint about how large it
needs to be for whatever is running.
Link: https://lkml.kernel.org/r/20210831043723.13481-1-robbat2@gentoo.org
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_event_perf.c')
-rw-r--r-- | kernel/trace/trace_event_perf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c index fba8cb77a73a..a114549720d6 100644 --- a/kernel/trace/trace_event_perf.c +++ b/kernel/trace/trace_event_perf.c @@ -400,7 +400,8 @@ void *perf_trace_buf_alloc(int size, struct pt_regs **regs, int *rctxp) BUILD_BUG_ON(PERF_MAX_TRACE_SIZE % sizeof(unsigned long)); if (WARN_ONCE(size > PERF_MAX_TRACE_SIZE, - "perf buffer not large enough")) + "perf buffer not large enough, wanted %d, have %d", + size, PERF_MAX_TRACE_SIZE)) return NULL; *rctxp = rctx = perf_swevent_get_recursion_context(); |