diff options
author | Yabin Cui <yabinc@google.com> | 2024-05-15 12:36:07 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-11-19 09:23:42 +0100 |
commit | b9c44b91476b67327a521568a854babecc4070ab (patch) | |
tree | 272192df2f32a23df1bbb89673d6dbdd109d6663 /scripts/gdb/linux/config.py | |
parent | 2c47e7a74f445426d156278e339b7abb259e50de (diff) |
perf/core: Save raw sample data conditionally based on sample type
Currently, space for raw sample data is always allocated within sample
records for both BPF output and tracepoint events. This leads to unused
space in sample records when raw sample data is not requested.
This patch enforces checking sample type of an event in
perf_sample_save_raw_data(). So raw sample data will only be saved if
explicitly requested, reducing overhead when it is not needed.
Fixes: 0a9081cf0a11 ("perf/core: Add perf_sample_save_raw_data() helper")
Signed-off-by: Yabin Cui <yabinc@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240515193610.2350456-2-yabinc@google.com
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions