From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B99B9A00BE for ; Fri, 12 Jun 2020 02:56:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2E5972C12; Fri, 12 Jun 2020 02:56:32 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 1CF8B1252 for ; Fri, 12 Jun 2020 02:56:31 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id g12so3028030pll.10 for ; Thu, 11 Jun 2020 17:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=E20XmVBrTtAw5ktw+dMhgLAMtzjqg/SMF+u/DhMNyHY=; b=dVWy5mRk7kkqzGOMkPg2fjRXIBIKKSp0VYwt+L7mkAOyafUdqyHik2xt87UaMuqzAS NMDx5EB2HBPRMB8WZST+LOZUa0uovl51la4+aeNtCeU5HpdHrYGrz6MSwO2D69QqeiE5 I/ukSx4QzYbLMysc2Unsnnh90gxJf0yOSEVHoJRhwQKc1SiYneBaq6amB4E7JyDwAYqo 8YDZWJpI+0kpbXQxnpJZ1cyZQ6xQ+PE6Ve4yTkHZE2CikuZJcmivXZg2gwPaBdB/64xP jizFQ7S2QHRoZbYITSeRkaRjC3Z6vqWYAiseBmvVF9gc48CepFV4+RXv787ZDzgstsp3 jCeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=E20XmVBrTtAw5ktw+dMhgLAMtzjqg/SMF+u/DhMNyHY=; b=C4cvvhJiqONQe0sSgvtgu2DYa4dkS5mBTQ3XhREVxbnQ6pY5+D1EY5NoyR8NlpM+VJ trH1TROjuourqylXIiLvsOCKn6CG/V4E/c8+FvvCEtBMUYFiMKu+yrnLtVCp0OPMu1zV OSYvTH3nAlLOWPcaKXdXPgrEk0Ovnu7haXKAyJ+6RIYwiK2plN07bAc6WJw8QzXLpS7d Q2EIN2/hAWun+PqFbDLti7okMXtYduyR1i1N8ufHxBUKxCS7+AgN2QXWQgrOZ3w4Cwpv irKHWaJjU1EJdZLCYFtceITLRTNY9D3UfWVFcWiB5pehoH/+TUzf1N/TrJikdc4VCgn9 UZ1w== X-Gm-Message-State: AOAM5322y2LBa/ALVCxdHirSlmlQZBP6ho6YWhnU6onB2f3ahrAnOQMr IjrhXZT6AfSCkyvi2nPkbto= X-Google-Smtp-Source: ABdhPJzu0ZcmPXBX6m8C4ZCBpn9Q711LMJltZmGm3sEkv/2Jmf+XQPtWsH87WSMFYDOmUsnUGY1VJg== X-Received: by 2002:a17:90a:266f:: with SMTP id l102mr11254251pje.190.1591923390140; Thu, 11 Jun 2020 17:56:30 -0700 (PDT) Received: from r220 (c-71-231-121-172.hsd1.wa.comcast.net. [71.231.121.172]) by smtp.gmail.com with ESMTPSA id h7sm3685508pgh.31.2020.06.11.17.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 17:56:29 -0700 (PDT) From: Vincent Li X-Google-Original-From: Vincent Li Date: Fri, 12 Jun 2020 00:55:48 +0000 (UTC) X-X-Sender: vincent@r220 To: David Aldrich cc: users@dpdk.org In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [dpdk-users] Segmentation fault in rte_eth_devices() X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Thu, 11 Jun 2020, David Aldrich wrote: > Following on from my question, I want to enable more debug info in DPDK. I > am building DPDK using: > > usertools/dpdk-setup.sh When I use dpdk-setup.sh, after the first build, there is a target directory like x86_64-native-linuxapp-gcc created under dpdk root source directory, and there is '.config' file in x86_64-native-linuxapp-gcc directory, you can edit '.config' like 'CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=y', then run dpdk-setup.sh again to build. this is one way to do it. According to doc/build-sdk-quick.txt, you can also make config T=x86_64-native-linuxapp-gcc then manually edit x86_64-native-linuxapp-gcc/.config for your debug option > > Am I correct in thinking that the build commands in that script use make > and I should modify the appropriate: > > config/defconfig_* > > file (defconfig_x86_64-native-linuxapp-gcc in my case) ? > > If so, would these values be appropriate? > > CONFIG_ RTE_LIBRTE_ETHDEV_DEBUG=y > RTE_LOG_LEVEL=RTE_LOG_DEBUG > RTE_LIBRTE_ETHDEV_DEBUG=y > > (not sure whether all values should be prefixed by 'CONFIG_'?) > > Finally, where do I specify '-O0 -g' for the DPDK build? Again according to doc/build-sdk-quick.txt, maybe: #EXTRA_CFLAGS='-O0 -g' make