Function report |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-28 10:05:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sert record into the buffer, discard old ones, update heads
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If log_make_free_space(size) Then |
618 | size = truncate_msg( & text_len, & trunc_msg_len, & dict_len, & pad_len) |
621 | If log_make_free_space(size) Then Return 0 |
625 | If log_next_idx + size + sizeof(structprintk_log) > log_buf_len Then |
631 | memset(log_buf + log_next_idx, 0, sizeof(structprintk_log)) |
632 | log_next_idx = 0 |
636 | msg = log_buf + log_next_idx |
639 | If trunc_msg_len Then |
645 | syslog facility = facility |
646 | syslog level = level & 7 |
647 | internal record flags = flags & 0x1f |
648 | If ts_nsec > 0 Then timestamp in nanoseconds = ts_nsec |
650 | Else timestamp in nanoseconds = local_clock() |
656 | length of entire record = size |
662 | Return length of text buffer |
Name | Describe |
---|---|
cont_flush | |
log_output |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |