blktrace: add an option to allow displaying cgroup path
authorShaohua Li <shli@fb.com>
Wed, 12 Jul 2017 18:49:55 +0000 (11:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jul 2017 15:00:03 +0000 (09:00 -0600)
commit69fd5c391763bd94a40dd152bc72a7f230137150
tree9f44111556c0f8ac14410703a79c42289ea768c2
parent007cc56b7eeca8848021bc43aca2b8607fbe5589
blktrace: add an option to allow displaying cgroup path

By default we output cgroup id in blktrace. This adds an option to
display cgroup path. Since get cgroup path is a relativly heavy
operation, we don't enable it by default.

with the option enabled, blktrace will output something like this:
dd-1353  [007] d..2   293.015252:   8,0   /test/level  D   R 24 + 8 [dd]

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/kernfs/mount.c
include/linux/cgroup.h
include/linux/kernfs.h
kernel/cgroup/cgroup.c
kernel/trace/blktrace.c