Commit 838d9bb
perf: Use sample_flags for raw_data
Use the new sample_flags to indicate whether the raw data field is
filled by the PMU driver. Although it could check with the NULL,
follow the same rule with other fields.
Remove the raw field from the perf_sample_data_init() to minimize
the number of cache lines touched.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220921220032.2858517-2-namhyung@kernel.org1 parent 7b08463 commit 838d9bb
File tree
5 files changed
+7
-4
lines changed- arch
- s390/kernel
- x86/events/amd
- include/linux
- kernel/events
5 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| 667 | + | |
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
| 784 | + | |
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | | - | |
1032 | 1031 | | |
1033 | 1032 | | |
1034 | 1033 | | |
| |||
1040 | 1039 | | |
1041 | 1040 | | |
1042 | 1041 | | |
| 1042 | + | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | | - | |
1082 | | - | |
| 1081 | + | |
1083 | 1082 | | |
1084 | 1083 | | |
1085 | 1084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7332 | 7332 | | |
7333 | 7333 | | |
7334 | 7334 | | |
7335 | | - | |
| 7335 | + | |
7336 | 7336 | | |
7337 | 7337 | | |
7338 | 7338 | | |
| |||
7348 | 7348 | | |
7349 | 7349 | | |
7350 | 7350 | | |
| 7351 | + | |
7351 | 7352 | | |
7352 | 7353 | | |
7353 | 7354 | | |
| |||
0 commit comments