1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Running average helpers to be used in BPF progs. Assumes vmlinux.h has
* already been included.
*/
;
/*
* Running avg mechanism. Accumulates values between 0 and RAVG_MAX_VAL in
* arbitrary time intervals. The accumulated values are halved every half_life
* with each period starting when the current time % half_life is 0. Zeroing is
* enough for initialization.
*
* See ravg_accumulate() and ravg_read() for more details.
*/
;
/* __SCX_RAVG_BPF_H__ */