menu "RDR - Running data recorder menu"

config DFX_BB
	bool "kernel run data recorder"
	depends on SYSFS
	default n
	help
	  This module can record some data about kernel internal info.
	  Include:
	  the task switch,
	  interrupts switch,
	  arm exception info,
	  etc ...

config DFX_BB_DEBUG
	bool "test unit for kernel run data recorder"
	depends on SYSFS && DFX_BB
	default n
	help
	  This module can test RDR function ...
	  Include:
	  dataabort,
	  etc

# need_other_module_clear
config DFX_MNTN_SP
	bool "ap core register sp record"
	depends on  LPMCU_BB
	default n
	help
	  This module can record some data about sp info.
	  Include:
	  sp,
	  etc


config LPMCU_BB
	bool "lpmcu bbox"
	depends on  DFX_BB
	default n
	help
	  This module can record some data about lpmcu info.
	  Include:
	  lpmcu exception,
	  etc

# need_other_module_clear
config HISP_RDR
	bool "hisp rdr"
	depends on DFX_BB
	default n
	help
	  This module can record isp rdr info.
	  Include:
	  isp,
	  etc

config DFX_MEM_TRACE
	bool "mem trace"
	depends on DFX_BB
	default n
	help
	  This module used to record mem trace info.
	  Include:
	  mem trace,
	  etc

config DFX_CORE
	bool "dfx core"
	depends on DFX_BB
	default n
	help
	  This module can record some data to dfx partition.
	  Include:
	  dfx,
	  etc

config DFX_MNTN_ESUBTYPE
	bool "exception subtype"
	depends on DFX_BB
	default n
	help
	  This module can record exception subtype.
	  Include:
	  exception subtype,
	  etc

config DFX_BB_DIAGINFO
	bool "diaginfo"
	depends on DFX_BB
	default n
	help
	  This module used to record nonreset exception.
	  Include:
	  nonreset exception,
	  etc

config DFX_DIAGINFO_BASEINFO
	bool "diaginfo base info"
	depends on DFX_BB_DIAGINFO
	default n
	help
	  This module supports diaginfo base info for DMD.

config DFX_DIAGINFO_RT_SWITCH
        bool "diaginfo rt switch
        depends on DFX_BB_DIAGINFO
        default n
        help
          This module supports diaginfo rt switch for DMD.

config MNTN_RDA_DIAGINFO
	bool "MNTN RDA DIAGINFO SUPPORT"
	depends on DFX_BB_DIAGINFO
	default n
	help
	  This module used to support RDA diaginfo record

config MNTN_RDA_DIAGINFO_DEBUG
	bool "MNTN RDA DIAGINFO DEBUG"
	depends on MNTN_RDA_DIAGINFO
	default n
	help
	  This module used to support debug RDA diaginfo record

config DFX_HW_DIAG
	bool "hareware diaginfo record"
	depends on DFX_BB_DIAGINFO
	default n
	help
	  This module record diaginfo to judge hardware fault.
	  Include:
	  hardware fault,
	  etc
config DFX_MNTN_GT_WATCH_SUPPORT
	bool "mntn support GT watch"
	default n
	help
	Say 'Y' here if you wat to support GT watch

config DFX_BB_SHUTDOWN_REASON
	bool "shutdown reason record"
	depends on DFX_BB
	default n
	help
	  This module used to record shutdown reason

config MNTN_DIAGINFO_SERVER
	bool "diaginfo vsock server"
	depends on DFX_BB_DIAGINFO
	default n
	help
	  This module used to create diaginfo vsock server.

config BBOX_LOG_DIR
	string "set blackbox log out path"
	default "/data/hisi_logs/"
	help
	  set blackbox log out path.

config BBOX_POWERKEY1S_SAVE_LOG
        bool "powerkey 1s save log before reboot"
        depends on DFX_BB
        default n
        help
          This feature save log before press powerkey 1s reboot.

config LOG_ENCRYPT
	bool "encrypt panic log"
	depends on DFX_BB
	default n
	help
	  This feature encrypt panic log and save encryption key

config DUMP_HMLOG_ON_EXCEPTION
	bool "dump HM log when exception resets"
	depends on LIBLINUX
	default n
	help
	  This module used to support dump hmlog when exception resets

config DUMP_DEVHOST_CORE_ON_EXCEPTION
	bool "dump coredump of devhost"
	depends on DUMP_HMLOG_ON_EXCEPTION
	default n
	help
	  Used to dump coredump of devhost from reserved memory at next restart when devhost is crashed

config DUMP_SNAPSHOT_PLAINTEXT
	bool "dump kbox snapshot plaintext or not"
	depends on DUMP_HMLOG_ON_EXCEPTION
	depends on XZ_DEC
	select XZ_DEC_BCJ
	default n
	help
	  Used to dump snapshot plaintext log

config SUPPORT_GET_PERI_DATA
        bool "support get peri data in kernel"
        depends on DFX_BB
        default n
        help
          This feature support get peri data in kernel.

config LIBLINUX_DUMP_EL2_LOG
	bool "support dump el2 log or not"
	depends on DUMP_HMLOG_ON_EXCEPTION
	default n
	help
	  Used to dump el2 log

config DUMP_THEE_LOG
    bool "dump thee log"
    default n
    help
      Say yes here to support the dump thee_log.

source "platform_source/basicplatform/drivers/mntn/blackbox/platform_ap/Kconfig"
endmenu
