ffcc41a593
Define a callback filled that will be registered by the kgsl driver which will be called by the msm-systats to know about the kgsl allocated memory in the system or for a process. Change-Id: I557213800a73ff73d5852a6db7e655013cf025e1 Signed-off-by: Charan Teja Kalla <quic_charante@quicinc.com>
24 lines
557 B
C
24 lines
557 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _MSM_SYSSTATS_H_
|
|
#define _MSM_SYSSTATS_H_
|
|
|
|
#include <uapi/linux/msm_sysstats.h>
|
|
|
|
#if IS_ENABLED(CONFIG_MSM_SYSSTATS)
|
|
extern void sysstats_register_kgsl_stats_cb(u64 (*cb)(pid_t pid));
|
|
extern void sysstats_unregister_kgsl_stats_cb(void);
|
|
#else
|
|
static inline void sysstats_register_kgsl_stats_cb(u64 (*cb)(pid_t pid))
|
|
{
|
|
}
|
|
static inline void sysstats_unregister_kgsl_stats_cb(void)
|
|
{
|
|
}
|
|
#endif
|
|
#endif /* _MSM_SYSSTATS_H_ */
|
|
|