1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM thermal_ipa_power 4 5 #if !defined(_TRACE_THERMAL_IPA_POWER_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define _TRACE_THERMAL_IPA_POWER_H 7 8 #include <linux/tracepoint.h> 9 10 TRACE_EVENT(thermal_ipa_get_static_power, 11 TP_PROTO(u32 leakage, u32 coefficient, s32 temp, 12 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, 16 volt_scaling_factor, static_power), 17 18 TP_STRUCT__entry( 19 __field(u32, leakage) 20 __field(u32, coefficient) 21 __field(s32, temp) 22 __field(u32, temp_scaling_factor) 23 __field(u32, volt) 24 __field(u32, volt_scaling_factor) 25 __field(u32, static_power) 26 ), 27 28 TP_fast_assign( 29 __entry->leakage = leakage; 30 __entry->coefficient = coefficient; 31 __entry->temp = temp; 32 __entry->temp_scaling_factor = temp_scaling_factor; 33 __entry->volt = volt; 34 __entry->volt_scaling_factor = volt_scaling_factor; 35 __entry->static_power = static_power; 36 ), 37 TP_printk("lkg=%u c=%u t=%d ts=%u v=%u vs=%u static_power=%u", 38 __entry->leakage, __entry->coefficient, __entry->temp, 39 __entry->temp_scaling_factor, __entry->volt, 40 __entry->volt_scaling_factor, __entry->static_power) 41 ); 42 43 44 #endif /* _TRACE_THERMAL_IPA_POWER_H */ 45 46 /* This part must be outside protection */ 47 #include <trace/define_trace.h> 48