t/io_uring: print submitter id with tid on startup
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Oct 2021 12:38:41 +0000 (06:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Oct 2021 12:38:41 +0000 (06:38 -0600)
Makes it easier to match up multiple threads with the stats.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index f27a12c7bb26cefe49e224468bc0197f1913795a..27d0d809bc93d00a9a5ce5070863d0515f53ff0e 100644 (file)
@@ -552,7 +552,7 @@ static int submitter_init(struct submitter *s)
        int i, nr_batch;
 
        s->tid = gettid();
-       printf("submitter=%d\n", s->tid);
+       printf("submitter=%d, tid=%d\n", s->index, s->tid);
 
        srand48(pthread_self());