diff options
author | Dave Jones <davej@redhat.com> | 2011-10-31 20:07:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:45 -0400 |
commit | 4f31888c104687078f8d88c2f11eca1080c88464 (patch) | |
tree | 453bcfffe1955f6087156916eb102af1575206ee /mm/page_alloc.c | |
parent | f5fc870da2f8798edb5481cd2137a3b2d5bd1b19 (diff) |
mm: output a list of loaded modules when we hit bad_page()
When we get a bad_page bug report, it's useful to see what modules the
user had loaded.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6e8ecb6e021c..83a02052bce4 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -318,6 +318,7 @@ static void bad_page(struct page *page) | |||
318 | current->comm, page_to_pfn(page)); | 318 | current->comm, page_to_pfn(page)); |
319 | dump_page(page); | 319 | dump_page(page); |
320 | 320 | ||
321 | print_modules(); | ||
321 | dump_stack(); | 322 | dump_stack(); |
322 | out: | 323 | out: |
323 | /* Leave bad fields for debug, except PageBuddy could make trouble */ | 324 | /* Leave bad fields for debug, except PageBuddy could make trouble */ |