ANDROID: GKI: perf: Add fields for CPU hotplug feature

Pull in the ABI diff changes for the CPU hotplug feature. The full
feature can be found in commit 3d3eb5fb85 ("perf: add hotplug
support").

Bug: 148872640
Test: compile test
(cherry picked from commit 3d3eb5fb85)
[willmcvicker: Only cherry-picked the ABI difference]
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I41982f50bcda29e4659f3ec0ffd4517884a7b6d0
This commit is contained in:
Will McVicker 2020-02-03 11:40:16 -08:00
parent d66eb53ffd
commit 996e3ccc2d

View file

@ -268,6 +268,8 @@ struct pmu {
atomic_t exclusive_cnt; /* < 0: cpu; > 0: tsk */
int task_ctx_nr;
int hrtimer_interval_ms;
u32 events_across_hotplug:1,
reserved:31;
/* number of address filters this PMU can do */
unsigned int nr_addr_filters;
@ -504,6 +506,7 @@ struct perf_addr_filter_range {
* enum perf_event_state - the states of an event:
*/
enum perf_event_state {
PERF_EVENT_STATE_DORMANT = -5,
PERF_EVENT_STATE_DEAD = -4,
PERF_EVENT_STATE_EXIT = -3,
PERF_EVENT_STATE_ERROR = -2,
@ -710,6 +713,12 @@ struct perf_event {
void *security;
#endif
struct list_head sb_list;
/* Is this event shared with other events */
bool shared;
/* TODO: need to cherry-pick 3d3eb5fb85d97. This is just padding for now
* to reduce the ABI diff */
struct list_head dormant_event_entry;
#endif /* CONFIG_PERF_EVENTS */
};