Re: [PATCH] mm/backing-dev: show state of all bdi_writeback in debugfs

2019-07-23 Thread Tejun Heo
On Wed, Jul 24, 2019 at 12:24:41AM +0300, Konstantin Khlebnikov wrote: > Debugging such dynamic structure with gdb is a pain. Use drgn. It's a lot better than hard coding these debug features into the kernel. https://github.com/osandov/drgn Thanks. -- tejun

Re: [PATCH] mm/backing-dev: show state of all bdi_writeback in debugfs

2019-07-23 Thread Konstantin Khlebnikov
On Tue, Jul 23, 2019 at 11:07 PM Andrew Morton wrote: > > On Tue, 23 Jul 2019 15:49:32 +0300 Konstantin Khlebnikov > wrote: > > > Currently /sys/kernel/debug/bdi/$maj:$min/stats shows only root bdi wb. > > With CONFIG_CGROUP_WRITEBACK=y there is one for each memory cgroup. > > > > This patch

Re: [PATCH] mm/backing-dev: show state of all bdi_writeback in debugfs

2019-07-23 Thread Andrew Morton
On Tue, 23 Jul 2019 15:49:32 +0300 Konstantin Khlebnikov wrote: > Currently /sys/kernel/debug/bdi/$maj:$min/stats shows only root bdi wb. > With CONFIG_CGROUP_WRITEBACK=y there is one for each memory cgroup. > > This patch shows here state of each bdi_writeback in form: > > > > Id: 1 >

[PATCH] mm/backing-dev: show state of all bdi_writeback in debugfs

2019-07-23 Thread Konstantin Khlebnikov
Currently /sys/kernel/debug/bdi/$maj:$min/stats shows only root bdi wb. With CONFIG_CGROUP_WRITEBACK=y there is one for each memory cgroup. This patch shows here state of each bdi_writeback in form: Id: 1 Cgroup: / Id: xxx Cgroup: /path Id: yyy Cgroup: /path2 ... Signed-off-by: