1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright © 2025 Intel Corporation
4 */
5
6#ifndef _XE_GUC_ENGINE_ACTIVITY_H_
7#define _XE_GUC_ENGINE_ACTIVITY_H_
8
9#include <linux/types.h>
10
11struct xe_hw_engine;
12struct xe_guc;
13
14int xe_guc_engine_activity_init(struct xe_guc *guc);
15bool xe_guc_engine_activity_supported(struct xe_guc *guc);
16void xe_guc_engine_activity_enable_stats(struct xe_guc *guc);
17int xe_guc_engine_activity_function_stats(struct xe_guc *guc, int num_vfs, bool enable);
18u64 xe_guc_engine_activity_active_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe,
19 unsigned int fn_id);
20u64 xe_guc_engine_activity_total_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe,
21 unsigned int fn_id);
22#endif
23

source code of linux/drivers/gpu/drm/xe/xe_guc_engine_activity.h