Home
last modified time | relevance | path

Searched refs:log_next_idx (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/scripts/gdb/linux/
Ddmesg.py30 log_next_idx = int(gdb.parse_and_eval("'printk.c'::log_next_idx"))
35 if log_first_idx < log_next_idx:
37 length = log_next_idx - log_first_idx
42 b = utils.read_memoryview(inf, log_buf_addr, log_next_idx)
/Linux-v4.19/kernel/printk/
Dprintk.c421 static u32 log_next_idx; variable
513 if (log_next_idx > log_first_idx || empty) in logbuf_has_space()
514 free = max(log_buf_len - log_next_idx, log_first_idx); in logbuf_has_space()
516 free = log_first_idx - log_next_idx; in logbuf_has_space()
606 if (log_next_idx + size + sizeof(struct printk_log) > log_buf_len) { in log_store()
612 memset(log_buf + log_next_idx, 0, sizeof(struct printk_log)); in log_store()
613 log_next_idx = 0; in log_store()
617 msg = (struct printk_log *)(log_buf + log_next_idx); in log_store()
637 log_next_idx += msg->len; in log_store()
918 user->idx = log_next_idx; in devkmsg_llseek()
[all …]