DPDK
19.02.0
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
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_ */
Generated by
1.8.1.2