summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2023-05-26 20:43:21 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-06-12 18:18:14 -0300
commitd3944f0ed4e4039201b160fc11004abaa2ca5385 (patch)
tree57fdd1b1febbab680fcc749ec2272c6ffb12fe24 /Kconfig
parente590e46b548e0de3df52a8a093639ce67002fae0 (diff)
downloadlwn-d3944f0ed4e4039201b160fc11004abaa2ca5385.tar.gz
lwn-d3944f0ed4e4039201b160fc11004abaa2ca5385.zip
perf inject: Lazily allocate event_copy
The event_copy is 64kb (PERF_SAMPLE_SIZE_MAX) and stack allocated in struct perf_inject. It is used for aux events that may not exist in a file. Make the array allocation lazy to cut down on the stack usage. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20230527034324.2597593-4-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions