mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
msm-perf: Kgsl events collection for perf
Send KGSL events to perf module. Change-Id: Icb76a3067296544b2489e4be60ea7417739da211 Signed-off-by: Aman Mehta <[email protected]>
This commit is contained in:
parent
122f4cad33
commit
3c2b8124f8
2 changed files with 175 additions and 0 deletions
29
include/soc/qcom/msm_performance.h
Normal file
29
include/soc/qcom/msm_performance.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* 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,
|
||||
};
|
||||
|
||||
#ifdef 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);
|
||||
#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){}
|
||||
#endif
|
||||
#endif
|
||||
Loading…
Reference in a new issue