函数逻辑报告 |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-27 11:05:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sert record into the buffer, discard old ones, update heads
函数原型:static int log_store(unsigned int caller_id, int facility, int level, enum log_flags flags, u64 ts_nsec, const char *dict, u16 dict_len, const char *text, u16 text_len)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | caller_id | |
int | facility | |
int | level | |
enum log_flags | flags | |
u64 | ts_nsec | |
const char * | dict | |
u16 | dict_len | |
const char * | text | |
u16 | text_len |
611 | trunc_msg_len等于0 |
616 | 如果log_make_free_space(size)则 |
618 | size等于truncate_msg( & text_len, & trunc_msg_len, & dict_len, & pad_len) |
621 | 如果log_make_free_space(size)则返回:0 |
625 | 如果log_next_idx加size加sizeof(structprintk_log)大于log_buf_len则 |
631 | memset(log_buf + log_next_idx, 0, sizeof(structprintk_log)) |
632 | log_next_idx等于0 |
636 | msg等于log_buf加log_next_idx |
639 | 如果trunc_msg_len则 |
645 | syslog facility 等于facility |
646 | syslog level 等于level按位与7 |
647 | internal record flags 等于flags按位与0x1f |
648 | 如果ts_nsec大于0则 timestamp in nanoseconds 等于ts_nsec |
650 | 否则 timestamp in nanoseconds 等于local_clock() |
656 | length of entire record 等于size |
662 | 返回: length of text buffer |
名称 | 描述 |
---|---|
cont_flush | |
log_output |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |