lkml.org 
[lkml]   [2001]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: __get_free_pages(): is the MEM really mine?

another method is to apply the attached patch to 2.4.10, and watch the
stack traces whether it all happens in the order and places you intended
it to. Your driver should be the only thing doing order-9 allocations on
your system.

Ingo

--- linux/mm/page_alloc.c.orig Thu Sep 27 11:04:02 2001
+++ linux/mm/page_alloc.c Thu Sep 27 11:05:27 2001
@@ -70,6 +70,10 @@
struct page *base;
zone_t *zone;

+ if (order == 9) {
+ printk("free_pages order 9 called.\n");
+ show_stack(NULL);
+ }
if (page->buffers)
BUG();
if (page->mapping)
@@ -319,6 +323,10 @@
struct page * page;
int freed;

+ if (order == 9) {
+ printk("alloc_pages order 9 called.\n");
+ show_stack(NULL);
+ }
zone = zonelist->zones;
classzone = *zone;
for (;;) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.117 / U:0.928 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site