Lines Matching refs:ls

67 lcore_stat_update(struct lcore_stat *ls, uint64_t call, uint64_t obj,  in lcore_stat_update()  argument
70 ls->op.nb_call += call; in lcore_stat_update()
71 ls->op.nb_obj += obj; in lcore_stat_update()
72 ls->op.nb_cycle += tm; in lcore_stat_update()
74 ls->op.max_cycle = RTE_MAX(ls->op.max_cycle, tm); in lcore_stat_update()
75 ls->op.min_cycle = RTE_MIN(ls->op.min_cycle, tm); in lcore_stat_update()
80 lcore_op_stat_aggr(struct lcore_stat *ms, const struct lcore_stat *ls) in lcore_op_stat_aggr() argument
83 ms->op.nb_call += ls->op.nb_call; in lcore_op_stat_aggr()
84 ms->op.nb_obj += ls->op.nb_obj; in lcore_op_stat_aggr()
85 ms->op.nb_cycle += ls->op.nb_cycle; in lcore_op_stat_aggr()
86 ms->op.max_cycle = RTE_MAX(ms->op.max_cycle, ls->op.max_cycle); in lcore_op_stat_aggr()
87 ms->op.min_cycle = RTE_MIN(ms->op.min_cycle, ls->op.min_cycle); in lcore_op_stat_aggr()
91 lcore_stat_aggr(struct lcore_stat *ms, const struct lcore_stat *ls) in lcore_stat_aggr() argument
93 ms->nb_cycle = RTE_MAX(ms->nb_cycle, ls->nb_cycle); in lcore_stat_aggr()
94 lcore_op_stat_aggr(ms, ls); in lcore_stat_aggr()
98 lcore_stat_dump(FILE *f, uint32_t lc, const struct lcore_stat *ls) in lcore_stat_dump() argument
110 ls->nb_cycle, (long double)ls->nb_cycle / st); in lcore_stat_dump()
114 fprintf(f, "\t\tnb_call=%" PRIu64 ",\n", ls->op.nb_call); in lcore_stat_dump()
115 fprintf(f, "\t\tnb_obj=%" PRIu64 ",\n", ls->op.nb_obj); in lcore_stat_dump()
116 fprintf(f, "\t\tnb_cycle=%" PRIu64 ",\n", ls->op.nb_cycle); in lcore_stat_dump()
118 (long double)ls->op.nb_obj / ls->op.nb_call); in lcore_stat_dump()
120 (long double)ls->op.nb_cycle / ls->op.nb_obj); in lcore_stat_dump()
122 (long double)ls->op.nb_cycle / ls->op.nb_call); in lcore_stat_dump()
125 if (ls->op.min_cycle != UINT64_MAX) { in lcore_stat_dump()
127 ls->op.max_cycle, in lcore_stat_dump()
128 (long double)ls->op.max_cycle / st); in lcore_stat_dump()
130 ls->op.min_cycle, in lcore_stat_dump()
131 (long double)ls->op.min_cycle / st); in lcore_stat_dump()