| 6 | #include "test_pipeline_common.h" |
| 7 | |
| 8 | int |
| 9 | pipeline_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 | |
| 28 | void |
| 29 | pipeline_opt_dump(struct evt_options *opt, uint8_t nb_queues) |
nothing calls this directly
no test coverage detected