| 148 | } |
| 149 | |
| 150 | static void rdtsc_prof_print(struct rdtsc_prof *p) |
| 151 | { |
| 152 | if (p->clk_avgc > 0) { |
| 153 | printf("RDTSC stats for %s: n=%" PRIu64 ", min=%" PRIu64 |
| 154 | ",max=%" PRIu64 ", avg=%.1f\n", |
| 155 | p->name, |
| 156 | p->clk_avgc, |
| 157 | p->clk_min, |
| 158 | p->clk_max, |
| 159 | (p->clk_avg / ((double) p->clk_avgc))); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | static uint16_t rte_pie_get_active(const struct rte_pie_config *pie_cfg, |
| 164 | struct rte_pie *pie) |
no test coverage detected