Commit cf16636
bpf/perf: Call perf_prepare_sample() before bpf_prog_run()
When the BPF program calls bpf_cast_to_kern_ctx(), it assumes the program will
access perf sample data directly and call perf_prepare_sample() to make sure
the sample data is populated.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>1 parent 5d10e43 commit cf16636
3 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
| 1344 | + | |
1344 | 1345 | | |
1345 | 1346 | | |
1346 | 1347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9236 | 9236 | | |
9237 | 9237 | | |
9238 | 9238 | | |
| 9239 | + | |
9239 | 9240 | | |
9240 | 9241 | | |
9241 | 9242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10332 | 10332 | | |
10333 | 10333 | | |
10334 | 10334 | | |
| 10335 | + | |
10335 | 10336 | | |
10336 | 10337 | | |
10337 | 10338 | | |
| |||
10346 | 10347 | | |
10347 | 10348 | | |
10348 | 10349 | | |
| 10350 | + | |
| 10351 | + | |
10349 | 10352 | | |
10350 | 10353 | | |
10351 | 10354 | | |
| |||
0 commit comments