From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6A652C666 for ; Fri, 24 Jun 2016 11:25:21 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 24 Jun 2016 02:25:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,518,1459839600"; d="scan'208";a="1008775453" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga002.fm.intel.com with ESMTP; 24 Jun 2016 02:25:18 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.183]) by IRSMSX106.ger.corp.intel.com ([169.254.8.145]) with mapi id 14.03.0248.002; Fri, 24 Jun 2016 10:25:18 +0100 From: "Dumitrescu, Cristian" To: Catalin Vasile , "dev@dpdk.org" Thread-Topic: backtracing from within the code Thread-Index: AQHRze/LR30tfteT7kCt+NqkdjD4R5/4V2mw Date: Fri, 24 Jun 2016 09:25:18 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D8912647A0C78F@IRSMSX108.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWQzZTcxYzgtNjljZi00NzRmLWI4YTUtMzgzNzUwOTQzZmEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjFNS1wvcGNCamFONUo2UG9JdGlEalVIR1RnQk5MZVFhSUg3WUxwSEVsbHI0PSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] backtracing from within the code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2016 09:25:21 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Catalin Vasile > Sent: Friday, June 24, 2016 9:10 AM > To: dev@dpdk.org > Subject: [dpdk-dev] backtracing from within the code >=20 > Hi, >=20 > I'm trying to add a feature to=A0DPDK and I'm having a hard time printing= a > backtrace. > I tried using this[1] functions for printing, but it does not print more = than one > function. Maybe it lacks the symbols it needs. > I tried compiling with "-rdynamic", but it breaks the compilation with an= error > of "bad -rpath option". > Can some help me out? >=20 > Catalin Vasile >=20 > [1]=A0https://www.gnu.org/software/libc/manual/html_node/Backtraces.html Hi Catalin, You can look at the implementation of function rte_panic(), which is used t= o dump the call stack and exit. It eventually calls rte_dump_stack() in file lib/lirte_eal/linuxapp/eal/eal= _debug.c, which calls backtrace(), which is probably what you are looking f= or.=20 Regards, Cristian