]>
Commit | Line | Data |
---|---|---|
acc4e41e ND |
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 | struct xe_gt; | |
10 | struct drm_printer; | |
11 | ||
12 | enum xe_gt_stats_id { | |
39fa14e5 | 13 | XE_GT_STATS_ID_TLB_INVAL, |
acc4e41e ND |
14 | /* must be the last entry */ |
15 | __XE_GT_STATS_NUM_IDS, | |
16 | }; | |
17 | ||
18 | #ifdef CONFIG_DEBUG_FS | |
19 | int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p); | |
20 | void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr); | |
21 | #else | |
22 | static inline void | |
23 | xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, | |
24 | int incr) | |
25 | { | |
26 | } | |
27 | ||
28 | #endif | |
29 | #endif |