android_kernel_xiaomi_sm8350/include/soc/qcom/boot_stats.h
Khaja Hussain Shaik Khaji dc03cfa27f drivers: qcom: pil: Use update_marker for modem book kpi
Use update_marker instead of place_marker to avoid OOM
issue if boot kpi file keeps growing.
Add update_marker() declaration in boot_stats header file.

Change-Id: I9b842c10670b2adb918e246174fdac45fb53de40
Signed-off-by: Khaja Hussain Shaik Khaji <quic_kshaikkh@quicinc.com>
2023-08-07 14:47:36 +05:30

23 lines
880 B
C

/* SPDX-License-Identifier: GPL-2.0-only
* Copyright (c) 2011-2021, The Linux Foundation. All rights reserved.
*/
#ifndef __QCOM_BOOT_STATS_H__
#define __QCOM_BOOT_STATS_H__
#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER
void place_marker(const char *name);
void update_marker(const char *name);
void destroy_marker(const char *name);
unsigned long long msm_timer_get_sclk_ticks(void);
static inline int boot_marker_enabled(void) { return 1; }
#else
static inline int init_bootkpi(void) { return 0; }
static inline void exit_bootkpi(void) { };
static inline void place_marker(char *name) { };
static inline void update_marker(char *name) { };
static inline void destroy_marker(const char *name) { };
static inline int boot_marker_enabled(void) { return 0; }
static inline unsigned long long msm_timer_get_sclk_ticks(void) { return -EINVAL; }
#endif
#endif /* __QCOM_BOOT_STATS_H__ */