30 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2024 Intel Corporation4 */5 6#ifndef _XE_GT_STATS_H_7#define _XE_GT_STATS_H_8 9struct xe_gt;10struct drm_printer;11 12enum xe_gt_stats_id {13 XE_GT_STATS_ID_TLB_INVAL,14 /* must be the last entry */15 __XE_GT_STATS_NUM_IDS,16};17 18#ifdef CONFIG_DEBUG_FS19int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p);20void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr);21#else22static inline void23xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id,24 int incr)25{26}27 28#endif29#endif30