1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2024 Intel Corporation 4 */ 5 6 #ifndef _XE_GT_STATS_H_ 7 #define _XE_GT_STATS_H_ 8 9 #include "xe_gt_stats_types.h" 10 11 struct xe_gt; 12 struct drm_printer; 13 14 #ifdef CONFIG_DEBUG_FS 15 int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p); 16 void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr); 17 #else 18 static inline void xe_gt_stats_incr(struct xe_gt * gt,const enum xe_gt_stats_id id,int incr)19xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, 20 int incr) 21 { 22 } 23 24 #endif 25 #endif 26