2 // Copyright (c) 2010-2017 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 #ifndef _STATS_L4GEN_H_
18 #define _STATS_L4GEN_H_
22 #include "genl4_bundle.h"
24 struct task_l4gen_stats;
26 struct l4_stats_sample {
28 struct l4_stats stats;
31 struct task_l4_stats {
32 struct task_l4gen_stats *task;
33 struct l4_stats_sample sample[2];
38 void stats_l4gen_init(void);
39 void stats_l4gen_update(void);
40 int stats_get_n_l4gen(void);
41 struct task_l4_stats *stats_get_l4_stats(uint32_t i);
42 struct l4_stats_sample *stats_get_l4_stats_sample(uint32_t i, int l);
44 #endif /* _STATS_L4GEN_H_ */