RTE_GRAPH_CLUSTER_STATS_PARAM(3)

πŸ’– rte_graph_cluster_stats_param β€” the manual page bestie πŸ’–

okay so this is a page from the DPDK manual, section 3 (library functions, iykyk). It's a struct page, which means it's mostly a list of fields and the little notes Doxygen spat out about each one. Let's get into it πŸ¦‹


✨ NAME ✨

rte_graph_cluster_stats_param β€” no cap, that's the whole name, that's the whole vibe.


🌸 SYNOPSIS 🌸

#include <rte_graph.h>

πŸŽ€ Data Fields

  • int socket_id
  • rte_graph_cluster_stats_cb_t fn
  • uint16_t nb_graph_patterns
  • const char ** graph_patterns

πŸ’œ DESCRIPTION πŸ’œ

It's giving configuration. This struct is literally just a lil container that holds the parameters you need when you're creating graph cluster stats β€” like, it's the thing you fill in and hand over so the stats machinery knows what you want. πŸ’…

See also

rte_graph_cluster_stats_create()

oh and btw, this struct is defined at line 196 of the file rte_graph.h, so if you ever need to go touch grass with the actual source, that's where it lives 🫢


πŸ”₯ FIELD DOCUMENTATION πŸ”₯

one field at a time, bestie, we are going in order and we are not skipping anybody ✨

int socket_id

Socket id where memory is allocated. πŸ’–

that's the socket the memory gets allocated on β€” that's it, that's the whole field.

Definition at line 197 of file rte_graph.h.

rte_graph_cluster_stats_cb_t fn

Stats print callback function. A NULL value is allowed, and in that case the default print stat function is used. 😌

so like, you can pass NULL here and it'll just do the default thing. main character energy honestly.

Definition at line 199 of file rte_graph.h.

FILE* f

File pointer to dump the stats when fn == NULL. πŸ“

so this one matters when you left fn as NULL β€” this is the file pointer the stats get dumped to.

Definition at line 205 of file rte_graph.h.

uint16_t nb_graph_patterns

Number of graph patterns. ✨

literally just how many graph patterns there are. it counts them. that's the job.

Definition at line 207 of file rte_graph.h.

const char** graph_patterns

Array of graph patterns based on shell pattern. πŸ¦‹

an array of graph patterns, and they're shell patterns, so yes, the globby kind.

Definition at line 208 of file rte_graph.h.


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. πŸ€–βœ¨


and that's the whole page, periodt πŸ’… this was DPDK, Version 25.11.3, manual page rte_graph_...stats_param(3) β€” ty for coming to my ted talk, go read rte_graph.h and slay πŸŽ€πŸ’–πŸŒˆ

πŸ“¦ where this page comes from