• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #if !defined(_TRACE_THERMAL_IPA_POWER_H) || defined(TRACE_HEADER_MULTI_READ)
4 #define _TRACE_THERMAL_IPA_POWER_H
5 
6 #undef TRACE_SYSTEM
7 #define TRACE_SYSTEM thermal_ipa_power
8 
9 #include <linux/tracepoint.h>
10 
11 TRACE_EVENT(thermal_ipa_get_static_power,
12             TP_PROTO(u32 leakage, u32 coefficient, s32 temp, u32 temp_scaling_factor, u32 volt, u32 volt_scaling_factor,
13                      u32 static_power),
14 
15             TP_ARGS(leakage, coefficient, temp, temp_scaling_factor, volt, volt_scaling_factor, static_power),
16 
17             TP_STRUCT__entry(__field(u32, leakage) __field(u32, coefficient) __field(s32, temp)
18                                  __field(u32, temp_scaling_factor) __field(u32, volt) __field(u32, volt_scaling_factor)
19                                     __field(u32, static_power)),
20 
21             TP_fast_assign(__entry->leakage = leakage; __entry->coefficient = coefficient; __entry->temp = temp;
22                            __entry->temp_scaling_factor = temp_scaling_factor; __entry->volt = volt;
23                            __entry->volt_scaling_factor = volt_scaling_factor; __entry->static_power = static_power;),
24             TP_printk("lkg=%u c=%u t=%d ts=%u v=%u vs=%u static_power=%u", __entry->leakage, __entry->coefficient,
25                       __entry->temp, __entry->temp_scaling_factor, __entry->volt, __entry->volt_scaling_factor,
26                       __entry->static_power));
27 
28 #endif /* _TRACE_THERMAL_IPA_POWER_H */
29 
30 /* This part must be outside protection */
31 #include <trace/define_trace.h>
32