DPDK
19.11.1
lib
librte_latencystats
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,
63
rte_latency_stats_flow_type_fn
user_cb);
64
72
int32_t
rte_latencystats_update
(
void
);
73
81
int
rte_latencystats_uninit
(
void
);
82
99
int
rte_latencystats_get_names
(
struct
rte_metric_name
*names,
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_ */
rte_metrics.h
rte_latency_stats_flow_type_fn
uint16_t(* rte_latency_stats_flow_type_fn)(struct rte_mbuf *pkt, void *user_param)
Definition:
rte_latencystats.h:40
rte_latencystats_init
int rte_latencystats_init(uint64_t samp_intvl, rte_latency_stats_flow_type_fn user_cb)
rte_latencystats_uninit
int rte_latencystats_uninit(void)
rte_latencystats_get_names
int rte_latencystats_get_names(struct rte_metric_name *names, uint16_t size)
rte_metric_name
Definition:
rte_metrics.h:53
rte_metric_value
Definition:
rte_metrics.h:67
rte_mbuf
Definition:
rte_mbuf_core.h:480
rte_latencystats_update
int32_t rte_latencystats_update(void)
rte_mbuf.h
rte_latencystats_get
int rte_latencystats_get(struct rte_metric_value *values, uint16_t size)
Generated by
1.8.17