]> git.ipfire.org Git - thirdparty/linux.git/commit
perf lock: Fix option value type in parse_max_stack
authorIan Rogers <irogers@google.com>
Thu, 19 Mar 2026 23:33:48 +0000 (16:33 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Mar 2026 22:02:42 +0000 (15:02 -0700)
commitcfaade34b52aa1ec553044255702c4b31b57c005
tree1dc81d852d16bb83242ec77e5611b689a2f3fbbb
parent46a009cf0d85cba05d4667214db18a4c20dd6b8e
perf lock: Fix option value type in parse_max_stack

The value is a void* and the address of an int, max_stack_depth, is
set up in the perf lock options. The parse_max_stack function treats
the int* as a long*, make this more correct by declaring the value to
be an int*.

Fixes: 0a277b622670 ("perf lock contention: Check --max-stack option")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-lock.c