]> Git Repo - linux.git/blame - drivers/gpu/drm/xe/xe_gt_stats.h
drm/xe: Add stats for tlb invalidation count
[linux.git] / drivers / gpu / drm / xe / xe_gt_stats.h
CommitLineData
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
9struct xe_gt;
10struct drm_printer;
11
12enum 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
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
This page took 0.037641 seconds and 4 git commands to generate.