You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
|
|
#ifndef _SEC_TSP_LOG_H_
|
|
#define _SEC_TSP_LOG_H_
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/proc_fs.h>
|
|
#include <linux/init.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/tick.h>
|
|
#include <linux/module.h>
|
|
#include <linux/memblock.h>
|
|
#include <linux/sched/clock.h>
|
|
|
|
#define SEC_TSP_LOG_BUF_SIZE (256 * 1024) /* 256 KB */
|
|
#define SEC_TSP_RAW_DATA_BUF_SIZE (50 * 1024) /* 50 KB */
|
|
#define SEC_TSP_COMMAND_HISTORY_BUF_SIZE (10 * 1024) /* 10 KB */
|
|
|
|
/**
|
|
* sec_debug_tsp_log : Leave tsp log in tsp_msg file.
|
|
* ( Timestamp + Tsp logs )
|
|
* sec_debug_tsp_log_msg : Leave tsp log in tsp_msg file and
|
|
* add additional message between timestamp and tsp log.
|
|
* ( Timestamp + additional Message + Tsp logs )
|
|
*/
|
|
extern void sec_debug_tsp_log(char *fmt, ...);
|
|
extern void sec_debug_tsp_log_msg(char *msg, char *fmt, ...);
|
|
extern void sec_tsp_log_fix(void);
|
|
extern void sec_debug_tsp_raw_data(char *fmt, ...);
|
|
extern void sec_debug_tsp_raw_data_msg(char *msg, char *fmt, ...);
|
|
extern void sec_tsp_raw_data_clear(void);
|
|
extern void sec_debug_tsp_command_history(char *buf);
|
|
|
|
/* Sponge Infinite dump */
|
|
#define SEC_TSP_SPONGE_LOG_BUF_SIZE (128 * 1024) /* 128 KB */
|
|
extern void sec_tsp_sponge_log(char *buf);
|
|
|
|
#endif /* _SEC_TSP_LOG_H_ */
|
|
|
|
|