blk-mq: create debugfs directory tree
In preparation for putting blk-mq debugging information in debugfs, create a directory tree mirroring the one in sysfs: # tree -d /sys/kernel/debug/block /sys/kernel/debug/block |-- nvme0n1 | `-- mq | |-- 0 | | `-- cpu0 | |-- 1 | | `-- cpu1 | |-- 2 | | `-- cpu2 | `-- 3 | `-- cpu3 `-- vda `-- mq `-- 0 |-- cpu0 |-- cpu1 |-- cpu2 `-- cpu3 Also add the scaffolding for the actual files that will go in here, either under the hardware queue or software queue directories. Reviewed-by:Hannes Reinecke <hare@suse.com> Signed-off-by:
Omar Sandoval <osandov@fb.com> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/Makefile 1 addition, 0 deletionsblock/Makefile
- block/blk-mq-debugfs.c 152 additions, 0 deletionsblock/blk-mq-debugfs.c
- block/blk-mq-sysfs.c 8 additions, 0 deletionsblock/blk-mq-sysfs.c
- block/blk-mq.c 2 additions, 0 deletionsblock/blk-mq.c
- block/blk-mq.h 33 additions, 0 deletionsblock/blk-mq.h
- include/linux/blkdev.h 5 additions, 0 deletionsinclude/linux/blkdev.h
Loading
Please register or sign in to comment