Add a sample_event type to the event_union so that raw samples can be processed easily.
Unified · Split
| @@ -60,6 +60,12 @@ struct read_event { · 59 unmodified lines | ||
| 60 | 60 | u64 id; |
| 61 | 61 | }; |
| 62 | 62 | |
| 63 | +struct sample_event{ | |
| 64 | + struct perf_event_header header; | |
| 65 | + u64 array[]; | |
| 66 | +}; | |
| 67 | + | |
| 68 | + | |
| 63 | 69 | typedef union event_union { |
| 64 | 70 | struct perf_event_header header; |
| 65 | 71 | struct ip_event ip; |
| @@ -68,6 +74,7 @@ typedef union event_union { · 2 unmodified lines | ||
| 68 | 74 | struct fork_event fork; |
| 69 | 75 | struct lost_event lost; |
| 70 | 76 | struct read_event read; |
| 77 | + struct sample_event sample; | |
| 71 | 78 | } event_t; |
| 72 | 79 | |
| 73 | 80 | struct map { |