In preparation to enable user counter access on arm64 and to move some of the user access handling to perf core, create a common event flag for user counter access and convert x86 to use it. Since the architecture specific flags start at the LSB, starting at the MSB for common flags.
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -129,6 +129,15 @@ struct hw_perf_event_extra { · 128 unmodified lines | |||
| 129 | int idx; /* index in shared_regs->regs[] */ | 129 | int idx; /* index in shared_regs->regs[] */ |
| 130 | }; | 130 | }; |
| 131 | 131 | ||
| 132 | /** | ||
| 133 | * hw_perf_event::flag values | ||
| 134 | * | ||
| 135 | * PERF_EVENT_FLAG_ARCH bits are reserved for architecture-specific | ||
| 136 | * usage. | ||
| 137 | */ | ||
| 138 | #define PERF_EVENT_FLAG_ARCH 0x0000ffff | ||
| 139 | #define PERF_EVENT_FLAG_USER_READ_CNT 0x80000000 | ||
| 140 | |||
| 132 | /** | 141 | /** |
| 133 | * struct hw_perf_event - performance event hardware details: | 142 | * struct hw_perf_event - performance event hardware details: |
| 134 | */ | 143 | */ |