Re: [PATCH v8 14/18] perf: Remove get_perf_callchain() init_nr argument

From
Alexei Starovoitov <hidden>
Date
2025-05-09 17:11:50
Also in
bpf, lkml
Reply to
Steven Rostedt, 2025-05-09
On Fri, May 9, 2025 at 10:07 AM Steven Rostedt [off-list ref] wrote:
From: Josh Poimboeuf <jpoimboe@kernel.org>

The 'init_nr' argument has double duty: it's used to initialize both the
number of contexts and the number of stack entries.  That's confusing
and the callers always pass zero anyway.  Hard code the zero.

Acked-by: Namhyung Kim <Namhyung@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 include/linux/perf_event.h |  2 +-
 kernel/bpf/stackmap.c      |  4 ++--
Acked-by: Alexei Starovoitov <ast@kernel.org>
Thread (27 messages) 27 messages, 4 authors, last reply 2025-05-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help