linux-mips
[Top] [All Lists]

Re: backtrace issue in MIPS 3.0

To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: Re: backtrace issue in MIPS 3.0
From: naveen yadav <yad.naveen@gmail.com>
Date: Wed, 25 Apr 2012 18:38:28 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=/As8ERqEKJSm+yxMCscwhVfo3iTTuV1RUSSP92pBDzg=; b=uIOCmafehakCyX7qYXuiaw8s9gfigUJ7A0hsat3sv6i7T5w2LkS07kyKE9sLoyKuoQ 0RhHAtic+TgZOpaZ9EM38V2+fqxwTlvY16Hj9uc8JwzLArAFaflwv70N+iQFFq/qWFrf yIzHTO7IRcsRLqJhY1PiabjQNLYCyRRc7me80VBa5ze2g7+YCgOD2wqqSKjGjq7gvwUD c+fQ0qLE5BiaTU0C/zlMuUfHLsegmhJfDbWcPZ5x+4hil8FGVsei1XE3IYNxw2IICP5w flLFdm3RQnZ6pKJEkcqFpY9qhNR5Sw6WDcpH1sFCCZ+963wIEXkr8qBcNRuVYWdEZMM7 fekQ==
In-reply-to: <CAJ8eaTzRZdO6a_p+qsuFZkF7LbVcBD1Np190vVPaoRpin5=RsQ@mail.gmail.com>
References: <CAJ8eaTzRZdO6a_p+qsuFZkF7LbVcBD1Np190vVPaoRpin5=RsQ@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Add lkml also

On Wed, Apr 25, 2012 at 6:17 PM, naveen yadav <yad.naveen@gmail.com> wrote:
> Dear Ralf,
>
> We observe the following issue in kernel backtrace.
>
> Scenario:1
> Correct backtrace - if HAVE_FUNCTION_TRACER is disable.
>
> ====[ backtrace testing ]===========
> Testing a backtrace from process context.
> The following trace is a kernel self test and not a bug!
> Testing a backtrace.
> The following trace is a kernel self test and not a bug!
> Call Trace:
> [<80295134>] dump_stack+0x8/0x34
> [<c0946060>] backtrace_regression_test+0x60/0x94 [sisc_backtrcae]
> [<800004f0>] do_one_initcall+0xf0/0x1d0
> [<80060954>] sys_init_module+0x19c8/0x1c60
> [<8000a418>] stack_done+0x20/0x40
>
> Scenaro-2:
> if HAVE_FUNCTION_TRACER is enabled
>        HAVE_FUNCTION_TRACER function enables FRAME_POINTER
>      menuconfig->
>               kernel hacking->
>                                    tracers->
>                                                 Kernel Function Tracer
>
> ====[ backtrace testing ]===========
>
> Testing a backtrace from process context.
>
> The following trace is a kernel self test and not a bug!
>
> Testing a backtrace.
>
> The following trace is a kernel self test and not a bug!
>
> Call Trace:
>
> [<802e5164>] dump_stack+0x1c/0x50
>
> [<802e5164>] dump_stack+0x1c/0x50
>
> ====[ end of backtrace testing ]====
>  ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Sample Code:
>
> #include <linux/module.h>
> #include <linux/sched.h>
> #include <linux/delay.h>
> //static struct timer_list backtrace_timer;
>
> static void backtrace_test_timer()
> {
>        printk("Testing a backtrace.\n");
>        printk("The following trace is a kernel self test and not a bug!\n");
>        dump_stack();
> }
> static int backtrace_regression_test(void)
> {
>        printk("====[ backtrace testing ]===========\n");
>        printk("Testing a backtrace from process context.\n");
>        printk("The following trace is a kernel self test and not a bug!\n");
>        backtrace_test_timer();
>        msleep(10);
>        printk("====[ end of backtrace testing ]====\n");
>        return 0;
> }
> static void exitf(void)
> {
> }
>
> module_init(backtrace_regression_test);
> module_exit(exitf);
> MODULE_LICENSE("GPL");
>
>
> objdump is also attached.
>
> Thanks

<Prev in Thread] Current Thread [Next in Thread>