mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-30 13:53:54 +00:00

Basic PMU enabling patch. Setup the basic framework for adding events. Based on previous versions by Bommu Krishnaiah, Aravind Iddamsetty and Riana Tauro, using i915 and rapl as reference implementations. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250124050411.2189060-1-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
19 lines
314 B
C
19 lines
314 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_PMU_H_
|
|
#define _XE_PMU_H_
|
|
|
|
#include "xe_pmu_types.h"
|
|
|
|
#if IS_ENABLED(CONFIG_PERF_EVENTS)
|
|
int xe_pmu_register(struct xe_pmu *pmu);
|
|
#else
|
|
static inline int xe_pmu_register(struct xe_pmu *pmu) { return 0; }
|
|
#endif
|
|
|
|
#endif
|
|
|