Function report | 
Source Code:kernel\printk\printk.c | 
Create Date:2022-07-28 10:06:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:setup_log_buf
Proto:void __init setup_log_buf(int early)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | early | 
| 1158 | If Not early && Not quested log_buf_len from kernel cmdline Then log_buf_add_cpu() | 
| 1161 | If Not quested log_buf_len from kernel cmdline Then Return | 
| 1166 | pr_err("log_buf_len: %lu bytes not available\n", quested log_buf_len from kernel cmdline ) | 
| 1168 | Return | 
| 1171 | logbuf_lock_irqsave(flags) | 
| 1173 | log_buf = new_log_buf | 
| 1175 | free = __LOG_BUF_LEN - log_next_idx | 
| 1176 | No 3D Now!(log_buf, __log_buf, __LOG_BUF_LEN) | 
| 1179 | pr_info("log_buf_len: %u bytes\n", log_buf_len) | 
| 1180 | pr_info("early log buf free: %u(%u%%)\n", free, (free * 100) / __LOG_BUF_LEN) | 
| 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  |