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

Function rdtsc_prof_end

dpdk/app/test/test_red.c:148–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static inline void rdtsc_prof_end(struct rdtsc_prof *p)
149{
150 uint64_t clk_start = rte_rdtsc() - p->clk_start;
151
152 p->clk_avgc++;
153 p->clk_avg += (double) clk_start;
154
155 if (clk_start > p->clk_max)
156 p->clk_max = clk_start;
157 if (clk_start < p->clk_min)
158 p->clk_min = clk_start;
159}
160
161static void rdtsc_prof_print(struct rdtsc_prof *p)
162{

Callers 2

enqueue_dequeue_perfFunction · 0.70
perf2_testFunction · 0.70

Calls 1

rte_rdtscFunction · 0.50

Tested by

no test coverage detected