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, > >