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

Function main

dpdk/examples/vm_power_manager/guest_cli/main.c:177–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177int
178main(int argc, char **argv)
179{
180 int ret;
181 unsigned lcore_id;
182
183 ret = rte_eal_init(argc, argv);
184 if (ret < 0)
185 rte_panic("Cannot init EAL\n");
186
187 signal(SIGINT, sig_handler);
188 signal(SIGTERM, sig_handler);
189
190 argc -= ret;
191 argv += ret;
192
193 /* parse application arguments (after the EAL ones) */
194 ret = parse_args(argc, argv);
195 if (ret < 0)
196 rte_exit(EXIT_FAILURE, "Invalid arguments\n");
197
198 rte_power_set_env(PM_ENV_KVM_VM);
199 RTE_LCORE_FOREACH(lcore_id) {
200 rte_power_init(lcore_id);
201 }
202 run_cli(NULL);
203
204 /* clean up the EAL */
205 rte_eal_cleanup();
206
207 return 0;
208}

Callers

nothing calls this directly

Calls 7

rte_exitFunction · 0.85
rte_power_set_envFunction · 0.85
rte_power_initFunction · 0.85
parse_argsFunction · 0.70
run_cliFunction · 0.70
rte_eal_initFunction · 0.50
rte_eal_cleanupFunction · 0.50

Tested by

no test coverage detected