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

Function test_latency_init

dpdk/app/test/test_latencystats.c:32–43  ·  view source on GitHub ↗

Test case for latency init with metrics init */

Source from the content-addressed store, hash-verified

30
31/* Test case for latency init with metrics init */
32static int test_latency_init(void)
33{
34 int ret = 0;
35
36 /* Metrics Initialization */
37 rte_metrics_init(rte_socket_id());
38
39 ret = rte_latencystats_init(1, NULL);
40 TEST_ASSERT(ret >= 0, "Test Failed: rte_latencystats_init failed");
41
42 return TEST_SUCCESS;
43}
44
45/* Test case to update the latency stats */
46static int test_latency_update(void)

Callers

nothing calls this directly

Calls 3

rte_metrics_initFunction · 0.85
rte_socket_idFunction · 0.85
rte_latencystats_initFunction · 0.85

Tested by

no test coverage detected