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

Function pipeline_test_result

dpdk/app/test-eventdev/test_pipeline_common.c:8–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "test_pipeline_common.h"
7
8int
9pipeline_test_result(struct evt_test *test, struct evt_options *opt)
10{
11 RTE_SET_USED(opt);
12 int i;
13 uint64_t total = 0;
14 struct test_pipeline *t = evt_test_priv(test);
15
16 evt_info("Packet distribution across worker cores :");
17 for (i = 0; i < t->nb_workers; i++)
18 total += t->worker[i].processed_pkts;
19 for (i = 0; i < t->nb_workers; i++)
20 evt_info("Worker %d packets: "CLGRN"%"PRIx64""CLNRM" percentage:"
21 CLGRN" %3.2f"CLNRM, i,
22 t->worker[i].processed_pkts,
23 (((double)t->worker[i].processed_pkts)/total)
24 * 100);
25 return t->result;
26}
27
28void
29pipeline_opt_dump(struct evt_options *opt, uint8_t nb_queues)

Callers

nothing calls this directly

Calls 1

evt_test_privFunction · 0.85

Tested by

no test coverage detected