diff options
author | Sumanth Korikkar <sumanthk@linux.ibm.com> | 2022-10-07 10:13:27 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-10-17 16:32:06 +0200 |
commit | 21da7472a040420f2dc624ffec70291a72c5d6a6 (patch) | |
tree | 7e537657d30972aba8a9cecc7e5fe69ba44d7f1d /include/linux | |
parent | 23488ec66867f7e673b694623a951fb583e464a7 (diff) | |
download | lwn-21da7472a040420f2dc624ffec70291a72c5d6a6.tar.gz lwn-21da7472a040420f2dc624ffec70291a72c5d6a6.zip |
bpf: Fix sample_flags for bpf_perf_event_output
* Raw data is also filled by bpf_perf_event_output.
* Add sample_flags to indicate raw data.
* This eliminates the segfaults as shown below:
Run ./samples/bpf/trace_output
BUG pid 9 cookie 1001000000004 sized 4
BUG pid 9 cookie 1001000000004 sized 4
BUG pid 9 cookie 1001000000004 sized 4
Segmentation fault (core dumped)
Fixes: 838d9bb62d13 ("perf: Use sample_flags for raw_data")
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/r/20221007081327.1047552-1-sumanthk@linux.ibm.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions