MCPcopy Create free account
hub / github.com/F-Stack/f-stack / run_pdump_server_tests

Function run_pdump_server_tests

dpdk/app/test/test_pdump.c:172–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 */
171
172int
173run_pdump_server_tests(void)
174{
175 int ret = 0;
176 char coremask[10];
177
178#ifdef RTE_EXEC_ENV_LINUX
179 char tmp[PATH_MAX] = { 0 };
180 char prefix[PATH_MAX] = { 0 };
181
182 get_current_prefix(tmp, sizeof(tmp));
183 snprintf(prefix, sizeof(prefix), "--file-prefix=%s", tmp);
184#else
185 const char *prefix = "";
186#endif
187
188 /* good case, using secondary */
189 const char *const argv1[] = {
190 prgname, "-c", coremask, "--proc-type=secondary",
191 prefix
192 };
193
194 snprintf(coremask, sizeof(coremask), "%x",
195 (1 << rte_get_main_lcore()));
196
197 ret = test_pdump_init();
198 ret |= launch_p(argv1);
199 ret |= test_pdump_uninit();
200 return ret;
201}
202
203int
204test_pdump(void)

Callers 1

test_pdumpFunction · 0.85

Calls 5

get_current_prefixFunction · 0.85
snprintfFunction · 0.85
rte_get_main_lcoreFunction · 0.85
test_pdump_initFunction · 0.85
test_pdump_uninitFunction · 0.85

Tested by

no test coverage detected