Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.9.4.
 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
 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_FS
19int 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#else
22static inline void
23xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id,
24		 int incr)
25{
26}
27
28#endif
29#endif