]> err.no Git - linux-2.6/blobdiff - arch/x86/oprofile/backtrace.c
x86: add the capability to print fuzzy backtraces
[linux-2.6] / arch / x86 / oprofile / backtrace.c
index 0ed046a187f77fb1d29228780c395f4e8d4636a1..671a7ecf11aacbfa5b613f285ae60ec40111dce6 100644 (file)
@@ -32,7 +32,7 @@ static int backtrace_stack(void *data, char *name)
        return 0;
 }
 
-static void backtrace_address(void *data, unsigned long addr)
+static void backtrace_address(void *data, unsigned long addr, int reliable)
 {
        unsigned int *depth = data;
 
@@ -48,7 +48,7 @@ static struct stacktrace_ops backtrace_ops = {
 };
 
 struct frame_head {
-       struct frame_head *ebp;
+       struct frame_head *bp;
        unsigned long ret;
 } __attribute__((packed));
 
@@ -67,10 +67,10 @@ dump_user_backtrace(struct frame_head * head)
 
        /* frame pointers should strictly progress back up the stack
         * (towards higher addresses) */
-       if (head >= bufhead[0].ebp)
+       if (head >= bufhead[0].bp)
                return NULL;
 
-       return bufhead[0].ebp;
+       return bufhead[0].bp;
 }
 
 void