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:
Aman Mehta 2020-08-13 10:32:14 +05:30 • committed by Gerrit - the friendly Code Review server
commit 3c2b8124f8
2 changed files with 175 additions and 0 deletions

View 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