1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM cgroup 4 #undef TRACE_INCLUDE_PATH 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOK_CGROUP_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_CGROUP_H 8 #include <linux/tracepoint.h> 9 #include <trace/hooks/vendor_hooks.h> 10 11 struct task_struct; 12 DECLARE_HOOK(android_vh_cgroup_set_task, 13 TP_PROTO(int ret, struct task_struct *task), 14 TP_ARGS(ret, task)); 15 DECLARE_RESTRICTED_HOOK(android_rvh_cpuset_fork, 16 TP_PROTO(struct task_struct *p, int *inherit_cpus), 17 TP_ARGS(p, inherit_cpus), 1); 18 DECLARE_RESTRICTED_HOOK(android_rvh_cgroup_force_kthread_migration, 19 TP_PROTO(struct task_struct *tsk, struct cgroup *dst_cgrp, bool *force_migration), 20 TP_ARGS(tsk, dst_cgrp, force_migration), 1); 21 DECLARE_RESTRICTED_HOOK(android_rvh_refrigerator, 22 TP_PROTO(bool f), 23 TP_ARGS(f), 1); 24 25 struct cgroup_subsys; 26 struct cgroup_taskset; 27 DECLARE_HOOK(android_vh_cgroup_attach, 28 TP_PROTO(struct cgroup_subsys *ss, struct cgroup_taskset *tset), 29 TP_ARGS(ss, tset)) 30 #endif 31 32 #include <trace/define_trace.h> 33