diff options
| author | Ian Rogers <[email protected]> | 2023-05-27 03:43:22 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-06-12 21:18:14 +0000 |
| commit | 892d00fba18a6dec2620165ce05e1697496f8381 (patch) | |
| tree | 8ecb3d6d45b382f274dedf6732b17a4d1cfac8a8 /tools/perf/util/annotate.c | |
| parent | perf inject: Lazily allocate event_copy (diff) | |
| download | kernel-892d00fba18a6dec2620165ce05e1697496f8381.tar.gz kernel-892d00fba18a6dec2620165ce05e1697496f8381.zip | |
perf inject: Lazily allocate guest_event event_buf
The event_buf is 64kb (PERF_SAMPLE_SIZE_MAX) and stack allocated in
struct perf_inject. It is used for guest 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 <[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
