1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2025 Intel Corporation 4 */ 5 6 #ifndef _XE_GUC_ENGINE_ACTIVITY_H_ 7 #define _XE_GUC_ENGINE_ACTIVITY_H_ 8 9 #include <linux/types.h> 10 11 struct xe_hw_engine; 12 struct xe_guc; 13 14 int xe_guc_engine_activity_init(struct xe_guc *guc); 15 bool xe_guc_engine_activity_supported(struct xe_guc *guc); 16 void xe_guc_engine_activity_enable_stats(struct xe_guc *guc); 17 int xe_guc_engine_activity_function_stats(struct xe_guc *guc, int num_vfs, bool enable); 18 u64 xe_guc_engine_activity_active_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe, 19 unsigned int fn_id); 20 u64 xe_guc_engine_activity_total_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe, 21 unsigned int fn_id); 22 #endif 23