History

x86: perf: Move RDPMC event flag to a common definition

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.

Rob Herring committed 4 years ago

Commit 369461c1 parent d58071a3 files · +15 −6Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/perf_event.h+9−0
@@ -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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t