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

Function timer_secondary_spawn_wait

dpdk/app/test/test_timer_secondary.c:50–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50static int
51timer_secondary_spawn_wait(unsigned int lcore)
52{
53 char coremask[10];
54#ifdef RTE_EXEC_ENV_LINUXAPP
55 char tmp[PATH_MAX] = {0};
56 char prefix[PATH_MAX] = {0};
57
58 get_current_prefix(tmp, sizeof(tmp));
59
60 snprintf(prefix, sizeof(prefix), "--file-prefix=%s", tmp);
61#else
62 const char *prefix = "";
63#endif
64 char const *argv[] = {
65 prgname,
66 "-c", coremask,
67 "--proc-type=secondary",
68 prefix
69 };
70
71 snprintf(coremask, sizeof(coremask), "%x", (1 << lcore));
72
73 return launch_proc(argv);
74}
75
76static void
77handle_expired_timer(struct rte_timer *tim)

Callers 1

test_timer_secondaryFunction · 0.85

Calls 2

get_current_prefixFunction · 0.85
snprintfFunction · 0.85

Tested by

no test coverage detected