1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * 4 * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved. 5 * 6 * This program is free software and is provided to you under the terms of the 7 * GNU General Public License version 2 as published by the Free Software 8 * Foundation, and any use by you of this program is subject to the terms 9 * of such GNU license. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, you can access it online at 18 * http://www.gnu.org/licenses/gpl-2.0.html. 19 * 20 */ 21 22 #ifndef _TRACE_POWER_GPU_FREQUENCY_MALI 23 #define _TRACE_POWER_GPU_FREQUENCY_MALI 24 #endif 25 26 #undef TRACE_SYSTEM 27 #define TRACE_SYSTEM power 28 #undef TRACE_INCLUDE_FILE 29 #define TRACE_INCLUDE_FILE mali_power_gpu_frequency_trace 30 #undef TRACE_INCLUDE_PATH 31 #define TRACE_INCLUDE_PATH . 32 33 #if !defined(_TRACE_POWER_GPU_FREQUENCY_H) || defined(TRACE_HEADER_MULTI_READ) 34 #define _TRACE_POWER_GPU_FREQUENCY_H 35 36 #include <linux/tracepoint.h> 37 38 DECLARE_EVENT_CLASS(gpu, 39 40 TP_PROTO(unsigned int state, unsigned int gpu_id), 41 42 TP_ARGS(state, gpu_id), 43 44 TP_STRUCT__entry( 45 __field(u32, state) 46 __field(u32, gpu_id) 47 ), 48 49 TP_fast_assign( 50 __entry->state = state; 51 __entry->gpu_id = gpu_id; 52 ), 53 54 TP_printk("state=%lu gpu_id=%lu", (unsigned long)__entry->state, 55 (unsigned long)__entry->gpu_id) 56 ); 57 58 DEFINE_EVENT(gpu, gpu_frequency, 59 60 TP_PROTO(unsigned int frequency, unsigned int gpu_id), 61 62 TP_ARGS(frequency, gpu_id) 63 ); 64 65 #endif /* _TRACE_POWER_GPU_FREQUENCY_H */ 66 67 /* This part must be outside protection */ 68 #include <trace/define_trace.h> 69