summaryrefstree
path: root/kernel/include/trace/hooks/topology.h
blob: 32b44c7e51305bce28bfc7d276af2bffa72db857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM topology

#define TRACE_INCLUDE_PATH trace/hooks

#if !defined(_TRACE_HOOK_TOPOLOGY_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_TOPOLOGY_H

#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>
#include <linux/cpumask.h>

#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS)

DECLARE_HOOK(android_vh_arch_set_freq_scale,
	TP_PROTO(struct cpumask *cpus, unsigned long freq, unsigned long max,
		unsigned long *scale),
	TP_ARGS(cpus, freq, max, scale));

#else

#define trace_android_vh_arch_set_freq_scale(cpus, freq, max, scale)

#endif

#endif /* _TRACE_HOOK_TOPOLOGY_H */
/* This part must be outside protection */
#include <trace/define_trace.h>