he_stat
static void he_stat__add_cpumode_period(struct he_stat *he_stat,
he_stat->period_sys += period;
he_stat->period_us += period;
he_stat->period_guest_sys += period;
he_stat->period_guest_us += period;
static void he_stat__add_period(struct he_stat *he_stat, u64 period, u64 latency)
he_stat->period += period;
he_stat->latency += latency;
he_stat->nr_events += 1;
static void he_stat__add_stat(struct he_stat *dest, struct he_stat *src)
static void he_stat__decay(struct he_stat *he_stat)
he_stat->period = (he_stat->period * 7) / 8;
he_stat->nr_events = (he_stat->nr_events * 7) / 8;
he_stat->weight1 = (he_stat->weight1 * 7) / 8;
he_stat->weight2 = (he_stat->weight2 * 7) / 8;
he_stat->weight3 = (he_stat->weight3 * 7) / 8;
he_stat->latency = (he_stat->latency * 7) / 8;
struct he_stat stat;
struct he_stat *stat_acc;