DPDK  18.11.11
rte_latencystats.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017 Intel Corporation
3  */
4 
5 #ifndef _RTE_LATENCYSTATS_H_
6 #define _RTE_LATENCYSTATS_H_
7 
15 #include <stdint.h>
16 #include <rte_metrics.h>
17 #include <rte_mbuf.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
40 typedef uint16_t (*rte_latency_stats_flow_type_fn)(struct rte_mbuf *pkt,
41  void *user_param);
42 
62 int rte_latencystats_init(uint64_t samp_intvl,
64 
72 int32_t rte_latencystats_update(void);
73 
81 int rte_latencystats_uninit(void);
82 
100  uint16_t size);
101 
121 int rte_latencystats_get(struct rte_metric_value *values,
122  uint16_t size);
123 
124 #ifdef __cplusplus
125 }
126 #endif
127 
128 #endif /* _RTE_LATENCYSTATS_H_ */
int rte_latencystats_uninit(void)
int rte_latencystats_get_names(struct rte_metric_name *names, uint16_t size)
int32_t rte_latencystats_update(void)
int rte_latencystats_init(uint64_t samp_intvl, rte_latency_stats_flow_type_fn user_cb)
uint16_t(* rte_latency_stats_flow_type_fn)(struct rte_mbuf *pkt, void *user_param)
int rte_latencystats_get(struct rte_metric_value *values, uint16_t size)