16 #ifndef __VOM_STAT_CLIENT_H__ 17 #define __VOM_STAT_CLIENT_H__ 48 const std::string&
name()
const;
67 const std::string m_name;
104 stat_client(std::string socket_name, std::vector<std::string> patterns);
134 const stat_data_vec_t&
dump();
139 const stat_data_vec_t&
dump_entry(uint32_t index);
172 std::string m_socket_name;
177 std::vector<std::string> m_patterns;
187 uint32_t* m_counter_vec;
197 stat_data_vec_t m_stat_data;
const stat_directory_type_t & type() const
get type of stat
vlib_counter_t ** get_stat_segment_combined_counter_data() const
Combined counter to hold both packets and byte differences.
stat_client()
Stat Client constructor.
vlib_counter_t ** m_combined_counter_vec
int vec_len(void *vec)
Get vector length of VPP style vector.
double get_stat_segment_scalar_data() const
Get pointer to actual data.
void disconnect()
Disconnect to stat segment.
A representation of a stat client in VPP.
#define vec_free(V)
Free vector's memory (no header).
const stat_data_vec_t & dump_entry(uint32_t index)
dump stats for given index in stat directory
std::vector< stat_data_t > stat_data_vec_t
vector of stat_data_t
~stat_client()
Stat Client destructor.
uint64_t get_stat_segment_error_data() const
uint64_t ** get_stat_segment_simple_counter_data() const
std::string index_to_name(uint32_t index)
get index to name of stat
int connect()
Connect to stat segment.
const stat_data_vec_t & dump()
dump all the stats for given pattern
The VPP Object Model (VOM) library.
counter_t ** m_simple_counter_vec
const std::string & name() const
get name of stat
stat_data_t(const stat_segment_data_t &stat_seg_data)
stat data custom constructor