On Mon 08-03-21 07:58:11, Minchan Kim wrote: [...] > It's the dynamic debugging facility > to enable only when admin want to use it. Otherwise, it's nop > unless is't not enabled. Furthermore, it doesn't need to invent > custom dump_page implementation(including dump_page_owner) by > chaning pr_debug. > Could you clarify your requirement? > > https://lore.kernel.org/linux-mm/YEEUq8ZRn4WyYWVx@xxxxxxxxxx/ I am not really sure this is the right way to enable dynamic logging. Maybe it is. I thought we can go with something as simple as pr_debug. You are right that we do not have dump_page with the kernel log level. This is rather annoying but a) do we need a full dump_page functionality and b) can we make it log level aware with the dynamic debug infrastructure preserved? If not then then an explicit handling is probably the only way and this should be reviewed by people who are more familiar with that framework than me. -- Michal Hocko SUSE Labs