From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by ozlabs.org (Postfix) with ESMTP id D889267BA7 for ; Fri, 1 Sep 2006 19:17:24 +1000 (EST) Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.120]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 0972AD13 for ; Fri, 1 Sep 2006 08:48:45 +0200 (CEST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6CD92.AA7EBCC9" Subject: Backtrace Date: Fri, 1 Sep 2006 08:48:43 +0200 Message-ID: <24521B9781EAC745A4BE65966F69C9BE02BACDA8@esealmw115.eemea.ericsson.se> From: "Matias Sundman \(AS/EAB\)" To: List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C6CD92.AA7EBCC9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Comrades, I would like to do a backtrace in kernel space similar to an oops but = then continue the code flow as before i.e. without a crash. If someone has done anything similar, help and/or tips would be much = appreciated! Cheers // Matias Sundman Senior Sw Designer Ericssonl IS Ethernet Switch, DIPN Ericsson AB Box 1505 Office: +46 8 719 86 83 SE-125 25 =C4LVSJ=D6 ECN: 850 98683 SWEDEN Mobile: +46 70 267 2405 Visiting address: E-mail: Matias.Sundman@ericsson.com Armborstv=E4gen 14 Web: http://www.ericsson.com =C4lvsj=F6, STOCKHOLM ------_=_NextPart_001_01C6CD92.AA7EBCC9 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Backtrace

Comrades,
I would like to do a backtrace in = kernel space similar to an oops but then continue the code flow as = before i.e. without a crash.

If someone has done anything similar, = help and/or tips would be much appreciated!

Cheers //

Matias = Sundman
Senior Sw = Designer
Ericssonl
IS Ethernet = Switch, DIPN
Ericsson = AB
Box = 1505        =         =         Office: +46  8 719 86 = 83
SE-125 25 = =C4LVSJ=D6        =         ECN:    850 = 98683
SWEDEN  =         =         Mobile: +46 70 267 = 2405
Visiting = address:       =         E-mail: = Matias.Sundman@ericsson.com
Armborstv=E4gen = 14        =         Web:    = http://www.ericsson.com
=C4lvsj=F6, = STOCKHOLM


------_=_NextPart_001_01C6CD92.AA7EBCC9-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpmast05.marconi.com (smtpmast05.marconi.com [128.87.251.114]) by ozlabs.org (Postfix) with ESMTP id D39C667B8E for ; Fri, 1 Sep 2006 20:37:42 +1000 (EST) Subject: Re: Backtrace To: matias.sundman@ericsson.com From: "KokHow Teh" Date: Fri, 1 Sep 2006 18:12:48 +0800 Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi; Is using hardware/software breakpoint with a hardware debugger wh= at you are looking for? Regards, Teh "Matias Sundman \(AS/EAB\)" @ozlabs.org on= 09/01/2006 02:48:43 PM Sent by: linuxppc-embedded-bounces+kokhow.teh=3Dmarconi.com@ozlabs.o= rg To: cc: Subject: Backtrace Comrades, I would like to do a backtrace in kernel space similar to an oops but t= hen continue the code flow as before i.e. without a crash. If someone has done anything similar, help and/or tips would be much appreciated! Cheers // Matias Sundman Senior Sw Designer Ericssonl IS Ethernet Switch, DIPN Ericsson AB Box 1505=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0= Office: +46=A0 8 719 86 83 SE-125 25 =C4LVSJ=D6=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 ECN:=A0= =A0=A0 850 98683 SWEDEN=A0 =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 Mobile: +46 70 26= 7 2405 Visiting address:=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0E-mail: Matias= .Sundman@ericsson.com Armborstv=E4gen 14=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 Web:=A0=A0= =A0 http://www.ericsson.com =C4lvsj=F6, STOCKHOLM _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded = From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailgw3.ericsson.se (mailgw3.ericsson.se [193.180.251.60]) by ozlabs.org (Postfix) with ESMTP id CA688679FB for ; Fri, 1 Sep 2006 20:49:26 +1000 (EST) Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 439061075 for ; Fri, 1 Sep 2006 12:49:10 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Backtrace Date: Fri, 1 Sep 2006 12:49:09 +0200 Message-ID: <24521B9781EAC745A4BE65966F69C9BE02BACDA9@esealmw115.eemea.ericsson.se> In-Reply-To: From: "Matias Sundman \(AS/EAB\)" To: Cc: =?iso-8859-1?Q?=D6rjan_Gustavsson_=28AS/EAB=29?= List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , =20 Hello, We have HW debuggers ; Windriver ICE and BDI2000 , but in our specific = scenario the system is up=20 and running and we cannot be breakpoint intrusive, other parts of the = system would be affected ( and our own blade ). No, what we would like to do is that when a specific condition is met a = backtrace printout is performed and after that the system runs as designed. : [Existing code] :=20 : if ( some_variable =3D=3D my_condition ) { print_out_backtrace(); } : : [Existing code] :=20 : We have implemented "forced" kernel ooops:es in "print_out_backtrace();" = but we would like to=20 have controlled backtraces ;-)) This is in Kernel space on a ppc8270.=20 Cheers // Matias -----Original Message----- From: KokHow Teh [mailto:KokHow.Teh@marconi.com]=20 Sent: den 1 september 2006 12:13 To: Matias Sundman (AS/EAB) Cc: linuxppc-embedded@ozlabs.org Subject: Re: Backtrace Hi; Is using hardware/software breakpoint with a hardware debugger = what you are looking for? Regards, Teh "Matias Sundman \(AS/EAB\)" @ozlabs.org on 09/01/2006 02:48:43 PM Sent by: = linuxppc-embedded-bounces+kokhow.teh=3Dmarconi.com@ozlabs.org To: cc: Subject: Backtrace Comrades, I would like to do a backtrace in kernel space similar to an oops but = then continue the code flow as before i.e. without a crash. If someone has done anything similar, help and/or tips would be much appreciated! Cheers // Matias Sundman Senior Sw Designer Ericssonl IS Ethernet Switch, DIPN Ericsson AB Box 1505=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 = =A0=A0=A0=A0=A0=A0=A0 Office: +46=A0 8 719 86 83 SE-125 25 =C4LVSJ=D6=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 = ECN:=A0=A0=A0 850 98683 SWEDEN=A0 =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 Mobile: +46 70 267 = 2405 Visiting address:=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0E-mail: = Matias.Sundman@ericsson.com Armborstv=E4gen 14=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 = Web:=A0=A0=A0 http://www.ericsson.com =C4lvsj=F6, STOCKHOLM _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kenati.com (unknown [69.90.147.196]) by ozlabs.org (Postfix) with ESMTP id 1E89E67B78 for ; Sat, 2 Sep 2006 03:03:55 +1000 (EST) Message-ID: <44F862F3.9020404@kenati.com> Date: Fri, 01 Sep 2006 09:42:27 -0700 From: Carlos Munoz MIME-Version: 1.0 To: "Matias Sundman (AS/EAB)" Subject: Re: Backtrace References: <24521B9781EAC745A4BE65966F69C9BE02BACDA8@esealmw115.eemea.ericsson.se> In-Reply-To: <24521B9781EAC745A4BE65966F69C9BE02BACDA8@esealmw115.eemea.ericsson.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Matias Sundman (AS/EAB) wrote: > Comrades, > I would like to do a backtrace in kernel space similar to an oops but > then continue the code flow as before i.e. without a crash. > Try dump_stack(). It should do what you want. Carlos