mirror of https://github.com/sipwise/rtpengine.git
These will be shared between userspace and kernel space and so the definitions must be part of the kernel includes. Change-Id: Iabf7a4ecff3638ea1765a6d7341bb24e9955b509pull/1826/head
parent
7ec6d91a88
commit
7f07a5d24b
@ -1,3 +1,4 @@
|
|||||||
kernel-module/*.c usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
kernel-module/*.c usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
||||||
kernel-module/*.h usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
kernel-module/*.h usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
||||||
|
kernel-module/*.inc usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
||||||
kernel-module/Makefile usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
kernel-module/Makefile usr/src/${env:DEB_SOURCE}-${env:DEB_VERSION_UPSTREAM}
|
||||||
|
|||||||
@ -0,0 +1,37 @@
|
|||||||
|
#ifndef _RTPE_COMMON_STATS_H_
|
||||||
|
#define _RTPE_COMMON_STATS_H_
|
||||||
|
|
||||||
|
|
||||||
|
struct interface_counter_stats_dir {
|
||||||
|
#define F(n) atomic64 n;
|
||||||
|
#include "interface_counter_stats_fields_dir.inc"
|
||||||
|
#undef F
|
||||||
|
};
|
||||||
|
struct interface_counter_stats {
|
||||||
|
#define F(n) atomic64 n;
|
||||||
|
#include "interface_counter_stats_fields.inc"
|
||||||
|
#undef F
|
||||||
|
};
|
||||||
|
struct interface_sampled_stats_fields {
|
||||||
|
#define F(n) atomic64 n;
|
||||||
|
#include "interface_sampled_stats_fields.inc"
|
||||||
|
#undef F
|
||||||
|
};
|
||||||
|
struct interface_sampled_stats {
|
||||||
|
struct interface_sampled_stats_fields sums;
|
||||||
|
struct interface_sampled_stats_fields sums_squared;
|
||||||
|
struct interface_sampled_stats_fields counts;
|
||||||
|
};
|
||||||
|
struct interface_sampled_stats_avg {
|
||||||
|
struct interface_sampled_stats_fields avg;
|
||||||
|
struct interface_sampled_stats_fields stddev;
|
||||||
|
};
|
||||||
|
struct interface_stats_block {
|
||||||
|
struct interface_counter_stats_dir in,
|
||||||
|
out;
|
||||||
|
struct interface_counter_stats s;
|
||||||
|
struct interface_sampled_stats sampled;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Reference in new issue