Integrate irq mode into PROX (support display and command line)
[samplevnf.git] / VNFs / DPPD-PROX / stats_cons.h
1 /*
2 // Copyright (c) 2010-2017 Intel Corporation
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 */
16
17 #ifndef _STATS_CONS_H_
18 #define _STATS_CONS_H_
19
20 #define STATS_CONS_F_TASKS      0x01
21 #define STATS_CONS_F_LCORE      0x02
22 #define STATS_CONS_F_PORTS      0x04
23 #define STATS_CONS_F_MEMPOOLS   0x08
24 #define STATS_CONS_F_RINGS      0x10
25 #define STATS_CONS_F_LATENCY    0x20
26 #define STATS_CONS_F_L4GEN      0x40
27 #define STATS_CONS_F_GLOBAL     0x80
28 #define STATS_CONS_F_PRIO_TASKS 0x100
29 #define STATS_CONS_F_IRQ        0x200
30 #define STATS_CONS_F_ALL        0x3ff
31
32 struct stats_cons {
33         void (*init)(void);
34         void (*notify)(void);
35         void (*refresh)(void); /* Only called if not NULL, used to signal lsc or core stop/start */
36         void (*finish)(void);
37         uint16_t flags;
38 };
39
40 #endif /* _STATS_CONS_H_ */