diff options
Diffstat (limited to 'include/trace/hooks/cpufreq.h')
-rw-r--r-- | include/trace/hooks/cpufreq.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/trace/hooks/cpufreq.h b/include/trace/hooks/cpufreq.h new file mode 100644 index 000000000000..79e6ddf31cb8 --- /dev/null +++ b/include/trace/hooks/cpufreq.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | #undef TRACE_SYSTEM | ||
3 | #define TRACE_SYSTEM cpufreq | ||
4 | |||
5 | #define TRACE_INCLUDE_PATH trace/hooks | ||
6 | |||
7 | #if !defined(_TRACE_HOOK_CPUFREQ_H) || defined(TRACE_HEADER_MULTI_READ) | ||
8 | #define _TRACE_HOOK_CPUFREQ_H | ||
9 | |||
10 | #include <linux/tracepoint.h> | ||
11 | #include <trace/hooks/vendor_hooks.h> | ||
12 | |||
13 | #if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS) | ||
14 | |||
15 | DECLARE_HOOK(android_vh_show_max_freq, | ||
16 | TP_PROTO(struct cpufreq_policy *policy, unsigned int *max_freq), | ||
17 | TP_ARGS(policy, max_freq)); | ||
18 | |||
19 | DECLARE_HOOK(android_vh_freq_table_limits, | ||
20 | TP_PROTO(struct cpufreq_policy *policy, unsigned int min_freq, | ||
21 | unsigned int max_freq), | ||
22 | TP_ARGS(policy, min_freq, max_freq)); | ||
23 | #else | ||
24 | |||
25 | #define trace_android_vh_show_max_freq(policy, max_freq) | ||
26 | #define trace_android_vh_freq_table_limits(policy, min_freq, max_freq) | ||
27 | |||
28 | #endif | ||
29 | |||
30 | #endif /* _TRACE_HOOK_CPUFREQ_H */ | ||
31 | /* This part must be outside protection */ | ||
32 | #include <trace/define_trace.h> | ||