Lines Matching +full:timeout +full:- +full:secs
1 // SPDX-License-Identifier: GPL-2.0
58 MODULE_PARM_DESC(producer_fifo, "use fifo for producer: 0 - disabled, 1 - low prio, 2 - fifo");
61 MODULE_PARM_DESC(consumer_fifo, "use fifo for consumer: 0 - disabled, 1 - low prio, 2 - fifo");
126 commit = local_read(&rpage->commit) & 0xfffff; in read_page()
129 if (i >= (page_size - offsetof(struct rb_page, data))) { in read_page()
134 inc = -1; in read_page()
135 event = (void *)&rpage->data[i]; in read_page()
136 switch (event->type_len) { in read_page()
139 if (!event->time_delta) in read_page()
141 inc = event->array[0] + 4; in read_page()
153 if (!event->array[0]) { in read_page()
157 inc = event->array[0] + 4; in read_page()
166 inc = ((event->type_len + 1) * 4); in read_page()
234 ktime_t start_time, end_time, timeout; in ring_buffer_producer() local
244 * Hammer the buffer for 10 secs (this may in ring_buffer_producer()
249 timeout = ktime_add_ns(start_time, RUN_TIME * NSEC_PER_SEC); in ring_buffer_producer()
285 } while (ktime_before(end_time, timeout) && !break_test()); in ring_buffer_producer()
364 hit--; /* make it non zero */ in ring_buffer_producer()
417 trace_printk("Sleeping for 10 secs\n"); in ring_buffer_producer_thread()
439 return -ENOMEM; in ring_buffer_benchmark_init()
457 * Run them as low-prio background tasks by default: in ring_buffer_benchmark_init()