mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
17 lines
297 B
C
17 lines
297 B
C
|
#ifndef __PERF_STATS_H
|
||
|
#define __PERF_STATS_H
|
||
|
|
||
|
#include "types.h"
|
||
|
|
||
|
struct stats
|
||
|
{
|
||
|
double n, mean, M2;
|
||
|
};
|
||
|
|
||
|
void update_stats(struct stats *stats, u64 val);
|
||
|
double avg_stats(struct stats *stats);
|
||
|
double stddev_stats(struct stats *stats);
|
||
|
double rel_stddev_stats(double stddev, double avg);
|
||
|
|
||
|
#endif
|