DPDK  19.02.0
rte_telemetry_parser_test.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4 
5 #ifndef _RTE_TELEMETRY_PARSER_TEST_H_
6 #define _RTE_TELEMETRY_PARSER_TEST_H_
7 
8 int32_t
9 rte_telemetry_parser_test(struct telemetry_impl *telemetry);
10 
11 int32_t
12 rte_telemetry_format_port_stat_ids(int *port_ids, int num_port_ids,
13  const char * const stat_names, int num_stat_names, json_t **data);
14 
15 int32_t
16 rte_telemetry_create_json_request(int action, char *command,
17  const char *client_path, int *port_ids, int num_port_ids,
18  const char * const stat_names, int num_stat_names, char **request,
19  int inv_choice);
20 
21 int32_t
22 rte_telemetry_send_get_ports_and_stats_request(struct telemetry_impl *telemetry,
23  int action_choice, char *command_choice, int inv_choice);
24 
25 int32_t
26 rte_telemetry_send_get_ports_details_request(struct telemetry_impl *telemetry,
27  int action_choice, int *port_ids, int num_port_ids, int inv_choice);
28 
29 int32_t
30 rte_telemetry_send_stats_values_by_name_request(struct telemetry_impl
31  *telemetry, int action_choice, int *port_ids, int num_port_ids,
32  const char * const stat_names, int num_stat_names,
33  int inv_choice);
34 
35 int32_t
36 rte_telemetry_send_unreg_request(int action_choice, const char *client_path,
37  int inv_choice);
38 
39 #endif