From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by dpdk.org (Postfix) with ESMTP id 5D1F8AD89 for ; Tue, 10 May 2016 17:15:56 +0200 (CEST) Received: by mail-qk0-f180.google.com with SMTP id r184so8530652qkc.1 for ; Tue, 10 May 2016 08:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4pHMAAA/xnGUgiULgexbj7EprAbnEHr/BIcMUHP0rpY=; b=FrLWnGb5eK5leavZSAwi165PqZ6nJjETis/2pHxxfLTCh56peB7259LPsBC5u1X7gY G2RviWDZNM8V1jYlOklajymp7/5nTLxXykXxD5ECypuepANkor/VeNy7puy6ZIo9EVr7 Y4Lw/NzZEBbytwo5q7/9wpRnsfZGzelX1+05QFgBc0oITLAaRMq0dVmiBCRVKfW7iu3p 2RiI4FbXDjmXy8+rXf9Ec0t2+2my3FDxPG/5ptQd1gd8znng/kgHsyoC4VOfZDH5EIe5 YQD52Y9JBxBWKHCsIQeqslpN1h0ooPcg5QUm3ykLhQxiMHdBmype27LnILhJEoBt7TMS r1WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4pHMAAA/xnGUgiULgexbj7EprAbnEHr/BIcMUHP0rpY=; b=VUJqqkPz7cbEaQ18Z4FsfRzc4ItTAmYtO6XiJG77jfQBTOr404EVklqZC/IL01Rtxu dVMkQksEsi9ETY3qLNi5zuuUBnqMTThmNJjFBKryUwtWEvsRz9n0NGOS3t/WcuZE17oz qN5QVCnNKtmXzfq+xaaEqKo9lYNF7eU5AJrXD4UEtxUqY/kNxrPX4x2hyyYAuMCCquJf 4Zb+jEfSOtlrfVijp8SYXje0OIllQshuRT1T3Xi3Uc5fgNKNXjnIoRK06lEHeggta/Su gyZCtNw5Vege1PNtORDF1F0nn2coE2VVdknar17l4xrAPqfN6WyK/AHwnSR8juGU5QlT neww== X-Gm-Message-State: AOPr4FVMWhMCu0rq7IyYb5OxujfBU3DnxNp6jYQh/dl/NLaNojscYlr4J4N9v/7AIrjgvP6EPDCx3iWuwZTLQw== X-Received: by 10.55.42.225 with SMTP id q94mr19358838qkq.64.1462893355562; Tue, 10 May 2016 08:15:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.31.134 with HTTP; Tue, 10 May 2016 08:15:15 -0700 (PDT) In-Reply-To: <6cbfe6bd-b4c4-c0c8-3969-9d362193d8b3@intel.com> References: <6cbfe6bd-b4c4-c0c8-3969-9d362193d8b3@intel.com> From: Mahdi Moradmand Badie Date: Tue, 10 May 2016 11:15:15 -0400 Message-ID: To: Sergio Gonzalez Monroy Cc: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] rte_malloc 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: Tue, 10 May 2016 15:15:56 -0000 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 < sergio.gonzalez.monroy@intel.com> 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 >> < >> http://dpdk.org/doc/api/rte__malloc_8h.html#afb7316a4ec228ed9b8ffc1864b03d85b >> > >> (sizeof(*p)); ==> >> struct lcore_params *p = rte_malloc >> < >> http://dpdk.org/doc/api/rte__malloc_8h.html#afb7316a4ec228ed9b8ffc1864b03d85b >> >(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