Files
kernel_common_drivers/drivers/debug/main.h
T
benlong.zhou 2d120bb920 kernel: read boot log same as kernel5.15 [1/1]
PD#SWPL-237927

Problem:
kernel can't get boot log

Solution:
kernel get boot log that they are blx's log
same as below CL
https://scgit.amlogic.com/#/c/527327/
https://scgit.amlogic.com/#/c/568160/
https://scgit.amlogic.com/#/c/580089/

Verify:
s7d_bm201

Change-Id: I786569565b2b5effde66d620e3b9b014ec6f8a2c
Signed-off-by: benlong.zhou <benlong.zhou@amlogic.com>
2025-12-03 21:58:50 -08:00

85 lines
1.5 KiB
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __DEBUG_MAIN_H_
#define __DEBUG_MAIN_H_
int aml_debug_init(void);
int debug_lockup_init(void);
#ifdef CONFIG_AMLOGIC_DEBUG_MHZ
int cpu_mhz_init(void);
#else
int cpu_mhz_init(void) { return 0; }
#endif
int aml_sched_init(void);
int aml_kprobes_init(void);
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_ISOLCPUS)
int aml_isolcpus_init(void);
#else
static inline int aml_isolcpus_init(void)
{
return 0;
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_ATRACE)
int meson_atrace_init(void);
#else
static inline int meson_atrace_init(void)
{
return 0;
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_FILE)
int debug_file_init(void);
void debug_file_exit(void);
#else
static inline int debug_file_init(void)
{
return 0;
}
static inline void debug_file_exit(void)
{
}
#endif
#if defined(CONFIG_AMLOGIC_GKI_CONFIG) && defined(MODULE)
int gki_config_init(void);
#else
static inline int gki_config_init(void)
{
return 0;
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG_HLD)
int aml_hld_init(void);
#else
static inline int aml_hld_init(void)
{
return 0;
}
#endif
#if IS_MODULE(CONFIG_AMLOGIC_DEBUG_PRINTK)
int printk_vendor_hook_init(void);
void printk_vendor_hook_exit(void);
#endif
#if IS_ENABLED(CONFIG_ARM64_MTE)
int aml_debug_mte_init(void);
void aml_debug_mte_exit(void);
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_UBOOT_LOG)
int __init meson_uboot_log_init(void);
void __exit meson_uboot_log_exit(void);
#endif
#endif /*_DEBUG_MAIN_H__*/