aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2023-05-27 03:43:19 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-06-12 21:18:14 +0000
commit232418a0b2e8b8e72dac003b19352f1b647cdb31 (patch)
tree34ee18156043df2c628632fd2aaaf5af45b5141d /tools/perf/util/annotate.c
parentperf bench sched messaging: Free contexts on exit (diff)
downloadkernel-232418a0b2e8b8e72dac003b19352f1b647cdb31.tar.gz
kernel-232418a0b2e8b8e72dac003b19352f1b647cdb31.zip
perf sched: Avoid large stack allocations
Commit 5ded57ac1bdb ("perf inject: Remove static variables") moved static variables to local, however, in this case 3 MAX_CPUS (4096) sized arrays were moved onto the stack making the stack frame quite large. Avoid the stack usage by dynamically allocating the arrays. Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions