1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2025 Intel Corporation 4 */ 5 6 #ifndef __XE_EU_STALL_H__ 7 #define __XE_EU_STALL_H__ 8 9 #include "xe_gt_types.h" 10 11 size_t xe_eu_stall_get_per_xecore_buf_size(void); 12 size_t xe_eu_stall_data_record_size(struct xe_device *xe); 13 size_t xe_eu_stall_get_sampling_rates(u32 *num_rates, const u64 **rates); 14 15 int xe_eu_stall_init(struct xe_gt *gt); 16 int xe_eu_stall_stream_open(struct drm_device *dev, 17 u64 data, 18 struct drm_file *file); 19 20 static inline bool xe_eu_stall_supported_on_platform(struct xe_device *xe) 21 { 22 return xe->info.platform == XE_PVC || GRAPHICS_VER(xe) >= 20; 23 } 24 #endif 25