From 060882262919508b9967b2f91efc02656ef40eff Mon Sep 17 00:00:00 2001 From: Badri Sampath Date: Wed, 29 Jun 2022 14:31:23 -0700 Subject: [PATCH] soc: qcom: msm_perf: Port for msm_performance include Port for msm_performance include file from 5.15 to KP3.0 Change-Id: Ia7cc1116ad7a74da9a191ee8a7a3d087a371ab8d Signed-off-by: Badri Sampath --- include/soc/qcom/msm_performance.h | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/soc/qcom/msm_performance.h diff --git a/include/soc/qcom/msm_performance.h b/include/soc/qcom/msm_performance.h new file mode 100644 index 000000000000..f5c695b49ee1 --- /dev/null +++ b/include/soc/qcom/msm_performance.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#ifndef __MSM_PERFORMANCE_H +#define __MSM_PERFORMANCE_H + +enum gfx_evt_t { + MSM_PERF_INVAL, + MSM_PERF_QUEUE, + MSM_PERF_SUBMIT, + MSM_PERF_RETIRED +}; + +enum evt_update_t { + MSM_PERF_GFX, +}; + +#if IS_ENABLED(CONFIG_MSM_PERFORMANCE) +void msm_perf_events_update(enum evt_update_t update_typ, + enum gfx_evt_t evt_typ, pid_t pid, + uint32_t ctx_id, uint32_t timestamp, bool end_of_frame); +#else +static inline void msm_perf_events_update(enum evt_update_t update_typ, + enum gfx_evt_t evt_typ, pid_t pid, + uint32_t ctx_id, uint32_t timestamp, bool end_of_frame) +{ +} +#endif +#endif