From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id DD2D9A0A0C;
	Tue,  3 Aug 2021 00:46:57 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id C97DA40E32;
	Tue,  3 Aug 2021 00:46:57 +0200 (CEST)
Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com
 [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id 0679B4069C
 for <dev@dpdk.org>; Tue,  3 Aug 2021 00:46:56 +0200 (CEST)
Received: from pps.filterd (m0098404.ppops.net [127.0.0.1])
 by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id
 172MYCtn099197; Mon, 2 Aug 2021 18:46:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com;
 h=subject : to : cc :
 references : from : message-id : date : mime-version : in-reply-to :
 content-type : content-transfer-encoding; s=pp1;
 bh=TzV/z3V6xadTNE5TEPBWEA8rXtz1Yn/l1y4ASWhH/uA=;
 b=s7lhaPowZ9CVsgGMnxzvYTQojFKGGcTH2ZAjeqQna6GlkJf+n/Jcmrb8yZOehmEJ4OW+
 gBdip/Y3w0uHvLfjxRo5CI4FHL1B4HimlElgO2Rgf8PfHkVO8CBU3tau9nbslvvSXwZg
 XfiOVmgRqcr2PsdNj2KKH8r8aDxTEl1n03OImMib+RZBK3sWoN0wk0hhlqHjlYoBbcnM
 oDeopikA3s9et0thnakDOpoGndEVgyOHWjmjmHujnhf9IP74h/XcQKBPBzECubhpYx1R
 Id7gERqnj25uZmZO/9f6pb1ut29tBX66wh0SCQV5rMYwXScCIi1wxaw2Vb5u3z0PtvjE OA== 
Received: from pps.reinject (localhost [127.0.0.1])
 by mx0a-001b2d01.pphosted.com with ESMTP id 3a6nkmpsna-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
 Mon, 02 Aug 2021 18:46:52 -0400
Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1])
 by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 172Mgapn132974;
 Mon, 2 Aug 2021 18:46:52 -0400
Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com
 [169.55.85.253])
 by mx0a-001b2d01.pphosted.com with ESMTP id 3a6nkmpsn0-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
 Mon, 02 Aug 2021 18:46:52 -0400
Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1])
 by ppma01wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 172Mhog7030946;
 Mon, 2 Aug 2021 22:46:51 GMT
Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com
 [9.57.198.27]) by ppma01wdc.us.ibm.com with ESMTP id 3a4x5b7kpr-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
 Mon, 02 Aug 2021 22:46:51 +0000
Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com
 [9.57.199.107])
 by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id
 172MkoqA51904978
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Mon, 2 Aug 2021 22:46:50 GMT
Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1])
 by IMSVA (Postfix) with ESMTP id 8E97E124054;
 Mon,  2 Aug 2021 22:46:50 +0000 (GMT)
Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1])
 by IMSVA (Postfix) with ESMTP id 253C912405A;
 Mon,  2 Aug 2021 22:46:49 +0000 (GMT)
Received: from Davids-MBP.randomparity.org (unknown [9.211.121.80])
 by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP;
 Mon,  2 Aug 2021 22:46:48 +0000 (GMT)
To: jerinj@marvell.com, dev@dpdk.org
Cc: thomas@monjalon.net, david.marchand@redhat.com, bruce.richardson@intel.com,
 dmitry.kozliuk@gmail.com, navasile@linux.microsoft.com,
 dmitrym@microsoft.com, pallavi.kadam@intel.com,
 konstantin.ananyev@intel.com, ruifeng.wang@arm.com, viktorin@rehivetech.com
References: <20210730084938.2426128-1-jerinj@marvell.com>
 <20210730084938.2426128-3-jerinj@marvell.com>
From: David Christensen <drc@linux.vnet.ibm.com>
Message-ID: <ac88c3ec-f66c-a856-b861-3ebe3c53b6f7@linux.vnet.ibm.com>
Date: Mon, 2 Aug 2021 15:46:48 -0700
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0)
 Gecko/20100101 Thunderbird/78.12.0
MIME-Version: 1.0
In-Reply-To: <20210730084938.2426128-3-jerinj@marvell.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-TM-AS-GCONF: 00
X-Proofpoint-ORIG-GUID: Mmx-mX9FVgECxQQljdbycE5zEV_thc9j
X-Proofpoint-GUID: u9aMpiz6FO4buR6Qw5NCk2Jc6q_qyoJw
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790
 definitions=2021-08-02_07:2021-08-02,
 2021-08-02 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 priorityscore=1501
 malwarescore=0 suspectscore=0 mlxlogscore=984 mlxscore=0 clxscore=1011
 adultscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 bulkscore=0
 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2107140000 definitions=main-2108020143
Subject: Re: [dpdk-dev] 2/6] eal: oops handling API implementation
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>



On 7/30/21 1:49 AM, jerinj@marvell.com wrote:
> From: Jerin Jacob <jerinj@marvell.com>
> 
> Implement the base oops handling APIs.
> 
> Signed-off-by: Jerin Jacob <jerinj@marvell.com>

Building on POWER generates the following error:

ninja: Entering directory `build'
[1/244] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_unix_eal_oops.c.o'.
../lib/eal/unix/eal_oops.c: In function ‘back_trace_dump’:
../lib/eal/unix/eal_oops.c:33:2: warning: implicit declaration of 
function ‘rte_dump_stack’; did you mean ‘rte_bus_scan’? 
[-Wimplicit-function-declaration]
   rte_dump_stack();
   ^~~~~~~~~~~~~~
   rte_bus_scan
../lib/eal/unix/eal_oops.c:33:2: warning: nested extern declaration of 
‘rte_dump_stack’ [-Wnested-externs]
[19/19] Linking target app/test/dpdk-test.

You can fix the issue by adding <rte_debug.h> to eal_oops.c.  Must be a 
hidden include dependency in the x86/ARM code.

Dave