Home | History | Annotate | Download | only in blktrace

Lines Matching refs:trace

2  * I/O monitor based on block queue trace data
44 struct trace {
47 struct trace *next;
79 static struct trace *vacant_traces_list = NULL;
83 struct trace *thash[TRACE_HASH_SIZE] = {};
106 static void dump_bit(struct trace *t, const char *descr)
129 static void dump_bits(struct trace *t1, struct trace *t2, const char *descr)
338 static struct trace *blkiomon_alloc_trace(void)
340 struct trace *t = vacant_traces_list;
350 static void blkiomon_free_trace(struct trace *t)
366 static void blkiomon_store_trace(struct trace *t)
374 static struct trace *blkiomon_fetch_trace(struct blk_io_trace *bit)
377 struct trace *t, *prev = NULL;
394 static struct trace *blkiomon_do_trace(struct trace *t)
396 struct trace *t_stored, *t_old, *t_young;
398 /* store trace if there is no match yet */
405 /* figure out older trace and younger trace */
414 /* we need an older D trace and a younger C trace */
424 /* no matching D and C traces - keep more recent trace */
453 struct trace *t;
466 "blkiomon: could not read trace");
471 fprintf(stderr, "blkiomon: error while reading trace");
483 fprintf(stderr, "blkiomon: bad trace\n");
487 /* read additional trace payload */
499 /* forward low-level device driver trace to other tool */
503 fprintf(stderr, "blkiomon: could not send trace\n");
512 /* try to find matching trace and update statistics */
515 fprintf(stderr, "blkiomon: could not alloc trace\n");
519 /* t and bit will be recycled for next incoming trace */
580 struct trace *t;