Re: [PATCH] kmemleak: Add option to print warnings to dmesg

2018-08-24 Thread Catalin Marinas
On Fri, Aug 24, 2018 at 02:40:11PM +0200, Vincent Whitchurch wrote: > diff --git a/mm/kmemleak.c b/mm/kmemleak.c > index 9a085d525bbc..61ba47a357fc 100644 > --- a/mm/kmemleak.c > +++ b/mm/kmemleak.c > @@ -311,6 +311,9 @@ static void hex_dump_object(struct seq_file *seq, > const u8 *ptr = (con

[PATCH] kmemleak: Add option to print warnings to dmesg

2018-08-24 Thread Vincent Whitchurch
Currently, kmemleak only prints the number of suspected leaks to dmesg but requires the user to read a debugfs file to get the actual stack traces of the objects' allocation points. Add an option to print the stack trace information (except the hex dumps) to dmesg too. This allows easier integrat