Reference Gcc Gnu Site
Month: July 2020
Printf 64 bits data-type in C
For int64_t type #include <inttypes.h> int64_t t; printf("%" PRId64 "\n", t); For uint64_t type #include <inttypes.h> uint64_t t; printf("%" PRIu64 "\n", t); Use PRIx64 to print in hexadecimal Refer: http://en.cppreference.com/w/cpp/types/integer Refer: https://stackoverflow.com/questions/9225567/how-to-print-a-int64-t-type-in-c#:~:text=for%20uint64_t%20type%3A,PRIx64%20to%20print%20in%20hexadecimal. Sizeof char c; printf("%zu,%zu\n", sizeof c, sizeof (int));
DPDK-Procinfo and multi-process
Memory sharing between DPDK Multi-process Refer: https://doc.dpdk.org/guides/prog_guide/multi_proc_support.html DPDK-Procinfo as secondary process Default DPDK EAL arguments for dpdk-procinfo are -c1, -n4 & --proc-type=secondary Refer: https://doc.dpdk.org/guides-18.08/tools/proc_info.html Modify dpdk-helloworld to create mempool and rte-ring DPDK helloword application "dpdk-stable-19.11.2/examples/helloworld" is a primary proc type. This is modified to create a rte-mempool, and a rte_ring to use that mempool to enqueue and dequeue message from mempool. … Continue reading DPDK-Procinfo and multi-process