• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* vendor_hook.c
3  *
4  * Android Vendor Hook Support
5  *
6  * Copyright 2022 Google LLC
7  */
8 #ifndef __GENKSYMS__
9 #include "cgroup-internal.h"
10 #else
11 /*
12  * Needed to preserve CRC for cgroup-related hooks
13  */
14 #include <linux/cpufreq.h>
15 #include <../drivers/gpio/gpiolib.h>
16 #endif
17 
18 #define CREATE_TRACE_POINTS
19 #include <trace/hooks/vendor_hooks.h>
20 #include <linux/tracepoint.h>
21 #include <trace/hooks/cgroup.h>
22 
23 /*
24  * Export tracepoints that act as a bare tracehook (ie: have no trace event
25  * associated with them) to allow external modules to probe them.
26  */
27 EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_set_task);
28 EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpuset_fork);
29 EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cgroup_force_kthread_migration);
30 EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_refrigerator);
31 EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_attach);
32 
33 /*
34  * For type visibility
35  */
36 const struct cgroup_taskset *GKI_struct_cgroup_taskset;
37 EXPORT_SYMBOL_GPL(GKI_struct_cgroup_taskset);
38