Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 996e3ccc authored by Will McVicker's avatar Will McVicker
Browse files

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 3d3eb5fb ("perf: add hotplug
support").

Bug: 148872640
Test: compile test
(cherry picked from commit 3d3eb5fb)
[willmcvicker: Only cherry-picked the ABI difference]
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Change-Id: I41982f50bcda29e4659f3ec0ffd4517884a7b6d0
parent d66eb53f
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -268,6 +268,8 @@ struct pmu {
	atomic_t			exclusive_cnt; /* < 0: cpu; > 0: tsk */
	atomic_t			exclusive_cnt; /* < 0: cpu; > 0: tsk */
	int				task_ctx_nr;
	int				task_ctx_nr;
	int				hrtimer_interval_ms;
	int				hrtimer_interval_ms;
	u32				events_across_hotplug:1,
					reserved:31;


	/* number of address filters this PMU can do */
	/* number of address filters this PMU can do */
	unsigned int			nr_addr_filters;
	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 - the states of an event:
 */
 */
enum perf_event_state {
enum perf_event_state {
	PERF_EVENT_STATE_DORMANT	= -5,
	PERF_EVENT_STATE_DEAD		= -4,
	PERF_EVENT_STATE_DEAD		= -4,
	PERF_EVENT_STATE_EXIT		= -3,
	PERF_EVENT_STATE_EXIT		= -3,
	PERF_EVENT_STATE_ERROR		= -2,
	PERF_EVENT_STATE_ERROR		= -2,
@@ -710,6 +713,12 @@ struct perf_event {
	void *security;
	void *security;
#endif
#endif
	struct list_head		sb_list;
	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 */
#endif /* CONFIG_PERF_EVENTS */
};
};