Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #undef TRACE_SYSTEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #define TRACE_SYSTEM sched
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) #define TRACE_INCLUDE_PATH trace/hooks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) #if !defined(_TRACE_HOOK_SCHED_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) #define _TRACE_HOOK_SCHED_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #include <trace/hooks/vendor_hooks.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * Following tracepoints are not exported in tracefs and provide a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * mechanism for vendor modules to hook and extend functionality
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) struct cgroup_taskset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #ifdef __GENKSYMS__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) struct cgroup_subsys_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) struct cpufreq_policy;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) struct em_perf_domain;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) enum uclamp_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) struct sched_entity;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) struct task_struct;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) struct uclamp_se;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) /* struct cgroup_subsys_state */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #include <linux/cgroup-defs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) /* struct cpufreq_policy */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #include <linux/cpufreq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) /* struct em_perf_domain */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #include <linux/energy_model.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) /* enum uclamp_id, struct sched_entity, struct task_struct, struct uclamp_se */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #endif /* __GENKSYMS__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) DECLARE_RESTRICTED_HOOK(android_rvh_select_task_rq_fair,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	TP_PROTO(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags, int *new_cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	TP_ARGS(p, prev_cpu, sd_flag, wake_flags, new_cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) DECLARE_RESTRICTED_HOOK(android_rvh_select_task_rq_rt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	TP_PROTO(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags, int *new_cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	TP_ARGS(p, prev_cpu, sd_flag, wake_flags, new_cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) DECLARE_RESTRICTED_HOOK(android_rvh_select_fallback_rq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	TP_PROTO(int cpu, struct task_struct *p, int *new_cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	TP_ARGS(cpu, p, new_cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) struct rq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) DECLARE_HOOK(android_vh_scheduler_tick,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	TP_PROTO(struct rq *rq),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 	TP_ARGS(rq));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) DECLARE_RESTRICTED_HOOK(android_rvh_enqueue_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	TP_PROTO(struct rq *rq, struct task_struct *p, int flags),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	TP_ARGS(rq, p, flags), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) DECLARE_RESTRICTED_HOOK(android_rvh_dequeue_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	TP_PROTO(struct rq *rq, struct task_struct *p, int flags),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	TP_ARGS(rq, p, flags), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) DECLARE_RESTRICTED_HOOK(android_rvh_can_migrate_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	TP_PROTO(struct task_struct *p, int dst_cpu, int *can_migrate),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	TP_ARGS(p, dst_cpu, can_migrate), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) DECLARE_RESTRICTED_HOOK(android_rvh_find_lowest_rq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	TP_PROTO(struct task_struct *p, struct cpumask *local_cpu_mask,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 			int ret, int *lowest_cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	TP_ARGS(p, local_cpu_mask, ret, lowest_cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) DECLARE_RESTRICTED_HOOK(android_rvh_prepare_prio_fork,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) DECLARE_RESTRICTED_HOOK(android_rvh_finish_prio_fork,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) DECLARE_RESTRICTED_HOOK(android_rvh_rtmutex_prepare_setprio,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	TP_PROTO(struct task_struct *p, struct task_struct *pi_task),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	TP_ARGS(p, pi_task), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) DECLARE_RESTRICTED_HOOK(android_rvh_set_user_nice,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	TP_PROTO(struct task_struct *p, long *nice, bool *allowed),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	TP_ARGS(p, nice, allowed), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) DECLARE_RESTRICTED_HOOK(android_rvh_setscheduler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) struct sched_group;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) DECLARE_RESTRICTED_HOOK(android_rvh_find_busiest_group,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	TP_PROTO(struct sched_group *busiest, struct rq *dst_rq, int *out_balance),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 		TP_ARGS(busiest, dst_rq, out_balance), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) DECLARE_HOOK(android_vh_dump_throttled_rt_tasks,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	TP_PROTO(int cpu, u64 clock, ktime_t rt_period, u64 rt_runtime,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 			s64 rt_period_timer_expires),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	TP_ARGS(cpu, clock, rt_period, rt_runtime, rt_period_timer_expires));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) DECLARE_HOOK(android_vh_jiffies_update,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	TP_PROTO(void *unused),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	TP_ARGS(unused));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) struct rq_flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) DECLARE_RESTRICTED_HOOK(android_rvh_sched_newidle_balance,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	TP_PROTO(struct rq *this_rq, struct rq_flags *rf,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 		 int *pulled_task, int *done),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	TP_ARGS(this_rq, rf, pulled_task, done), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) DECLARE_RESTRICTED_HOOK(android_rvh_sched_nohz_balancer_kick,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	TP_PROTO(struct rq *rq, unsigned int *flags, int *done),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	TP_ARGS(rq, flags, done), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) DECLARE_RESTRICTED_HOOK(android_rvh_sched_rebalance_domains,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	TP_PROTO(struct rq *rq, int *continue_balancing),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	TP_ARGS(rq, continue_balancing), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) DECLARE_RESTRICTED_HOOK(android_rvh_find_busiest_queue,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	TP_PROTO(int dst_cpu, struct sched_group *group,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 		 struct cpumask *env_cpus, struct rq **busiest,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 		 int *done),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	TP_ARGS(dst_cpu, group, env_cpus, busiest, done), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) DECLARE_RESTRICTED_HOOK(android_rvh_migrate_queued_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	TP_PROTO(struct rq *rq, struct rq_flags *rf,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 		 struct task_struct *p, int new_cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 		 int *detached),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	TP_ARGS(rq, rf, p, new_cpu, detached), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) DECLARE_RESTRICTED_HOOK(android_rvh_resume_cpus,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	TP_PROTO(struct cpumask *cpus, int *err),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	TP_ARGS(cpus, err), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) DECLARE_RESTRICTED_HOOK(android_rvh_find_energy_efficient_cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	TP_PROTO(struct task_struct *p, int prev_cpu, int sync, int *new_cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	TP_ARGS(p, prev_cpu, sync, new_cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) DECLARE_RESTRICTED_HOOK(android_rvh_set_iowait,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	TP_PROTO(struct task_struct *p, int *should_iowait_boost),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	TP_ARGS(p, should_iowait_boost), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) DECLARE_RESTRICTED_HOOK(android_rvh_cpu_overutilized,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	TP_PROTO(int cpu, int *overutilized),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	TP_ARGS(cpu, overutilized), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) DECLARE_RESTRICTED_HOOK(android_rvh_sched_setaffinity,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	TP_PROTO(struct task_struct *p, const struct cpumask *in_mask, int *retval),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	TP_ARGS(p, in_mask, retval), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) DECLARE_RESTRICTED_HOOK(android_rvh_update_cpus_allowed,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	TP_PROTO(struct task_struct *p, cpumask_var_t cpus_requested,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 		 const struct cpumask *new_mask, int *ret),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	TP_ARGS(p, cpus_requested, new_mask, ret), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) DECLARE_RESTRICTED_HOOK(android_rvh_set_task_cpu,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	TP_PROTO(struct task_struct *p, unsigned int new_cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	TP_ARGS(p, new_cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) DECLARE_RESTRICTED_HOOK(android_rvh_try_to_wake_up,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) DECLARE_RESTRICTED_HOOK(android_rvh_try_to_wake_up_success,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) DECLARE_RESTRICTED_HOOK(android_rvh_sched_fork,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) DECLARE_RESTRICTED_HOOK(android_rvh_wake_up_new_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) DECLARE_RESTRICTED_HOOK(android_rvh_new_task_stats,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) DECLARE_RESTRICTED_HOOK(android_rvh_flush_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	TP_PROTO(struct task_struct *prev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	TP_ARGS(prev), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) DECLARE_RESTRICTED_HOOK(android_rvh_tick_entry,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	TP_PROTO(struct rq *rq),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	TP_ARGS(rq), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) DECLARE_RESTRICTED_HOOK(android_rvh_schedule,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	TP_PROTO(struct task_struct *prev, struct task_struct *next, struct rq *rq),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	TP_ARGS(prev, next, rq), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) DECLARE_RESTRICTED_HOOK(android_rvh_sched_cpu_starting,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	TP_PROTO(int cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	TP_ARGS(cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) DECLARE_RESTRICTED_HOOK(android_rvh_sched_cpu_dying,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	TP_PROTO(int cpu),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	TP_ARGS(cpu), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) DECLARE_RESTRICTED_HOOK(android_rvh_account_irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	TP_PROTO(struct task_struct *curr, int cpu, s64 delta),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	TP_ARGS(curr, cpu, delta), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) DECLARE_RESTRICTED_HOOK(android_rvh_place_entity,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	TP_PROTO(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial, u64 vruntime),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	TP_ARGS(cfs_rq, se, initial, vruntime), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) DECLARE_RESTRICTED_HOOK(android_rvh_build_perf_domains,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	TP_PROTO(bool *eas_check),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	TP_ARGS(eas_check), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) DECLARE_RESTRICTED_HOOK(android_rvh_update_cpu_capacity,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	TP_PROTO(int cpu, unsigned long *capacity),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	TP_ARGS(cpu, capacity), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) DECLARE_RESTRICTED_HOOK(android_rvh_update_misfit_status,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	TP_PROTO(struct task_struct *p, struct rq *rq, bool *need_update),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	TP_ARGS(p, rq, need_update), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) DECLARE_RESTRICTED_HOOK(android_rvh_cpu_cgroup_attach,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	TP_PROTO(struct cgroup_taskset *tset),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	TP_ARGS(tset), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) DECLARE_RESTRICTED_HOOK(android_rvh_cpu_cgroup_can_attach,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	TP_PROTO(struct cgroup_taskset *tset, int *retval),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	TP_ARGS(tset, retval), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) DECLARE_RESTRICTED_HOOK(android_rvh_cpu_cgroup_online,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 	TP_PROTO(struct cgroup_subsys_state *css),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	TP_ARGS(css), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) DECLARE_RESTRICTED_HOOK(android_rvh_sched_fork_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) DECLARE_RESTRICTED_HOOK(android_rvh_ttwu_cond,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) 	TP_PROTO(bool *cond),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 	TP_ARGS(cond), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) DECLARE_RESTRICTED_HOOK(android_rvh_schedule_bug,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) DECLARE_RESTRICTED_HOOK(android_rvh_sched_exec,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 	TP_PROTO(bool *cond),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) 	TP_ARGS(cond), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) DECLARE_HOOK(android_vh_map_util_freq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) 	TP_PROTO(unsigned long util, unsigned long freq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) 		unsigned long cap, unsigned long *next_freq, struct cpufreq_policy *policy,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) 		bool *need_freq_update),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) 	TP_ARGS(util, freq, cap, next_freq, policy, need_freq_update));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) DECLARE_HOOK(android_vh_em_cpu_energy,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) 	TP_PROTO(struct em_perf_domain *pd,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) 		unsigned long max_util, unsigned long sum_util,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) 		unsigned long *energy),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) 	TP_ARGS(pd, max_util, sum_util, energy));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) DECLARE_RESTRICTED_HOOK(android_rvh_sched_balance_rt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) 	TP_PROTO(struct rq *rq, struct task_struct *p, int *done),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) 	TP_ARGS(rq, p, done), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) DECLARE_RESTRICTED_HOOK(android_rvh_dequeue_task_idle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) 	TP_ARGS(p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) struct cfs_rq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) DECLARE_RESTRICTED_HOOK(android_rvh_pick_next_entity,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) 	TP_PROTO(struct cfs_rq *cfs_rq, struct sched_entity *curr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) 		 struct sched_entity **se),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) 	TP_ARGS(cfs_rq, curr, se), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) DECLARE_RESTRICTED_HOOK(android_rvh_check_preempt_wakeup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) 	TP_PROTO(struct rq *rq, struct task_struct *p, bool *preempt, bool *nopreempt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) 			int wake_flags, struct sched_entity *se, struct sched_entity *pse,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) 			int next_buddy_marked, unsigned int granularity),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) 	TP_ARGS(rq, p, preempt, nopreempt, wake_flags, se, pse, next_buddy_marked,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) 			granularity), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) DECLARE_HOOK(android_vh_do_wake_up_sync,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) 	TP_PROTO(struct wait_queue_head *wq_head, int *done),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) 	TP_ARGS(wq_head, done));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) DECLARE_HOOK(android_vh_set_wake_flags,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) 	TP_PROTO(int *wake_flags, unsigned int *mode),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) 	TP_ARGS(wake_flags, mode));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) /* Conditionally defined upon CONFIG_UCLAMP_TASK */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) struct uclamp_se;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) DECLARE_RESTRICTED_HOOK(android_rvh_uclamp_eff_get,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) 	TP_PROTO(struct task_struct *p, enum uclamp_id clamp_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) 		 struct uclamp_se *uclamp_max, struct uclamp_se *uclamp_eff, int *ret),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) 	TP_ARGS(p, clamp_id, uclamp_max, uclamp_eff, ret), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) DECLARE_HOOK(android_vh_build_sched_domains,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) 	TP_PROTO(bool has_asym),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) 	TP_ARGS(has_asym));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) DECLARE_RESTRICTED_HOOK(android_rvh_check_preempt_tick,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) 	TP_PROTO(struct task_struct *p, unsigned long *ideal_runtime, bool *skip_preempt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) 			unsigned long delta_exec, struct cfs_rq *cfs_rq, struct sched_entity *curr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) 			unsigned int granularity),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) 	TP_ARGS(p, ideal_runtime, skip_preempt, delta_exec, cfs_rq, curr, granularity), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) DECLARE_RESTRICTED_HOOK(android_rvh_replace_next_task_fair,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) 	TP_PROTO(struct rq *rq, struct task_struct **p, struct sched_entity **se, bool *repick,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) 			bool simple, struct task_struct *prev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) 	TP_ARGS(rq, p, se, repick, simple, prev), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) DECLARE_RESTRICTED_HOOK(android_rvh_do_sched_yield,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) 	TP_PROTO(struct rq *rq),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) 	TP_ARGS(rq), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) DECLARE_RESTRICTED_HOOK(android_rvh_util_est_update,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) 	TP_PROTO(struct cfs_rq *cfs_rq, struct task_struct *p, bool task_sleep, int *ret),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) 	TP_ARGS(cfs_rq, p, task_sleep, ret), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) DECLARE_HOOK(android_vh_account_task_time,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) 	TP_PROTO(struct task_struct *p, struct rq *rq, int user_tick),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) 	TP_ARGS(p, rq, user_tick));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) DECLARE_HOOK(android_vh_irqtime_account_process_tick,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) 	TP_PROTO(struct task_struct *p, struct rq *rq, int user_tick, int ticks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) 	TP_ARGS(p, rq, user_tick, ticks));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) DECLARE_RESTRICTED_HOOK(android_rvh_post_init_entity_util_avg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) 	TP_PROTO(struct sched_entity *se),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) 	TP_ARGS(se), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) DECLARE_RESTRICTED_HOOK(android_rvh_set_cpus_allowed_comm,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) 	TP_PROTO(struct task_struct *p, const struct cpumask *new_mask),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) 	TP_ARGS(p, new_mask), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) DECLARE_HOOK(android_vh_sched_setaffinity_early,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) 	TP_PROTO(struct task_struct *p, const struct cpumask *new_mask, int *retval),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) 	TP_ARGS(p, new_mask, retval));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) DECLARE_HOOK(android_vh_free_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) 	TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) 	TP_ARGS(p));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) DECLARE_RESTRICTED_HOOK(android_rvh_after_enqueue_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) 	TP_PROTO(struct rq *rq, struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) 	TP_ARGS(rq, p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) DECLARE_RESTRICTED_HOOK(android_rvh_after_dequeue_task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) 	TP_PROTO(struct rq *rq, struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) 	TP_ARGS(rq, p), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) struct cfs_rq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) struct rq_flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) DECLARE_RESTRICTED_HOOK(android_rvh_enqueue_entity,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) 	TP_PROTO(struct cfs_rq *cfs, struct sched_entity *se),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) 	TP_ARGS(cfs, se), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) DECLARE_RESTRICTED_HOOK(android_rvh_dequeue_entity,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) 	TP_PROTO(struct cfs_rq *cfs, struct sched_entity *se),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352) 	TP_ARGS(cfs, se), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) DECLARE_RESTRICTED_HOOK(android_rvh_enqueue_task_fair,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) 	TP_PROTO(struct rq *rq, struct task_struct *p, int flags),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) 	TP_ARGS(rq, p, flags), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) DECLARE_RESTRICTED_HOOK(android_rvh_dequeue_task_fair,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) 	TP_PROTO(struct rq *rq, struct task_struct *p, int flags),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) 	TP_ARGS(rq, p, flags), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) DECLARE_HOOK(android_vh_prepare_update_load_avg_se,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) 	TP_PROTO(struct sched_entity *se, int flags),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) 	TP_ARGS(se, flags));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) DECLARE_HOOK(android_vh_sched_stat_runtime_rt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) 	TP_PROTO(struct task_struct *tsk, u64 delta),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) 	TP_ARGS(tsk, delta));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) DECLARE_HOOK(android_vh_finish_update_load_avg_se,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) 	TP_PROTO(struct sched_entity *se, int flags),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) 	TP_ARGS(se, flags));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) DECLARE_HOOK(android_vh_dup_task_struct,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) 	TP_PROTO(struct task_struct *tsk, struct task_struct *orig),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) 	TP_ARGS(tsk, orig));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) DECLARE_RESTRICTED_HOOK(android_rvh_find_new_ilb,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379) 	TP_PROTO(struct cpumask *nohz_idle_cpus_mask, int *ilb),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) 	TP_ARGS(nohz_idle_cpus_mask, ilb), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) DECLARE_RESTRICTED_HOOK(android_rvh_force_compatible_pre,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) 	TP_PROTO(void *unused),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) 	TP_ARGS(unused), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) DECLARE_RESTRICTED_HOOK(android_rvh_force_compatible_post,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) 	TP_PROTO(void *unused),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) 	TP_ARGS(unused), 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) DECLARE_HOOK(android_vh_setscheduler_uclamp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) 	TP_PROTO(struct task_struct *tsk, int clamp_id, unsigned int value),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) 	TP_ARGS(tsk, clamp_id, value));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394) /* macro versions of hooks are no longer required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) #endif /* _TRACE_HOOK_SCHED_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) #include <trace/define_trace.h>