android_kernel_asus_sm8350/include/soc/qcom/msm_performance.h
Aman Mehta b712bdb81b msm: kgsl: Including drawobj flag for msm-perf api
The inclusion of draw object flag for msm_perf_events_update.
Since user-space thread is triggered based on kgsl events
this will be vital to distinguish the events based on frame
states and prevent undesirable user-space thread wake-ups.

Change-Id: I28040808d6c114b718aad0e0ab63554683e77460
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
2020-12-04 01:24:32 -08:00

30 lines
734 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. 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) && IS_ENABLED(CONFIG_MSM_PERFORMANCE_QGKI)
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