From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Gonzalez Monroy Subject: Re: rte_malloc Date: Tue, 10 May 2016 17:12:23 +0100 Message-ID: <2de4ef85-cdd0-9cd8-f1ff-20f81930a258@intel.com> References: <6cbfe6bd-b4c4-c0c8-3969-9d362193d8b3@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Mahdi Moradmand Badie Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7CC7CAD84 for ; Tue, 10 May 2016 18:12:27 +0200 (CEST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Have you tried to run the unit tests? (Run 'app/test' application, then 'malloc_autotest') Sergio On 10/05/2016 16:55, Mahdi Moradmand Badie wrote: > #!/bin/sh > ./build/app/Mahdi_test -c 0x55 --master-lcore 0 > > On 10 May 2016 at 11:31, Sergio Gonzalez Monroy > > wrote: > > Forgot to ask, > > What's the command line you are using to run the app? > > Sergio > > > On 10/05/2016 16:17, Mahdi Moradmand Badie wrote: >> Thanks Sergio, >> Yes sure, >> I attached files, it seems so easy but doesn't work. >> Thanks, >> >> On 10 May 2016 at 04:12, Sergio Gonzalez Monroy >> > > wrote: >> >> Hi, >> >> On 09/05/2016 18:32, Mahdi Moradmand Badie wrote: >> >> Hello All, >> >> I had a problem regarding use the rte_malloc. >> I want to know if I want to use rte_malloc instead of >> malloc just mak >> change like this >> struct lcore_params *p = malloc >> >> (sizeof(*p)); ==> >> struct lcore_params *p = rte_malloc >> (NULL, >> sizeof(*p), 0); >> is enough ? >> >> >> Yes, malloc(sizeof(*p)) has an equivalent behavior to >> rte_malloc(NULL, sizeof(*p), 0) >> in the context of a DPDK application. >> >> Because I have problem and Segmentation fault (core >> dumped) ?? >> >> >> Could you provide more details of how to reproduce or could >> you try to >> reproduce your problem using a very simple example like >> examples/helloworld ? >> >> Sergio >> >> Thanks in advance, >> >> >> >> >> >> >> -- >> M@hdi Mor@dm@nd B@die > > > > > -- > M@hdi Mor@dm@nd B@die