File Index
Files and directories
Sign in
FILE

xe_gt_stats.h

File preview with syntax highlighting.

linux-6.19.14/drivers/gpu/drm/xe/xe_gt_stats.h C
 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
11struct xe_gt;
12struct drm_printer;
13
14#ifdef CONFIG_DEBUG_FS
15int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p);
16void xe_gt_stats_clear(struct xe_gt *gt);
17void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr);
18#else
19static inline void
20xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id,
21		 int incr)
22{
23}
24
25#endif
26#endif
~/ Read-only file preview.