Home
last modified time | relevance | path

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

/linux-4.1.27/scripts/gdb/linux/
Ddmesg.py29 log_next_idx = int(gdb.parse_and_eval("log_next_idx"))
34 if log_first_idx < log_next_idx:
36 length = log_next_idx - log_first_idx
41 inf.read_memory(log_buf_addr, log_next_idx)
/linux-4.1.27/kernel/printk/
Dprintk.c246 static u32 log_next_idx; variable
340 if (log_next_idx > log_first_idx || empty) in logbuf_has_space()
341 free = max(log_buf_len - log_next_idx, log_first_idx); in logbuf_has_space()
343 free = log_first_idx - log_next_idx; in logbuf_has_space()
429 if (log_next_idx + size + sizeof(struct printk_log) > log_buf_len) { in log_store()
435 memset(log_buf + log_next_idx, 0, sizeof(struct printk_log)); in log_store()
436 log_next_idx = 0; in log_store()
440 msg = (struct printk_log *)(log_buf + log_next_idx); in log_store()
460 log_next_idx += msg->len; in log_store()
719 user->idx = log_next_idx; in devkmsg_llseek()
[all …]