xref: /linux/drivers/gpu/drm/xe/xe_gt_stats.h (revision 55a42f78ffd386e01a5404419f8c5ded7db70a21)
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_clear(struct xe_gt *gt);
17 void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr);
18 #else
19 static inline void
20 xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id,
21 		 int incr)
22 {
23 }
24 
25 #endif
26 #endif
27