MCPcopy Create free account
hub / github.com/F-Stack/f-stack / list_commands

Function list_commands

dpdk/lib/telemetry/telemetry.c:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111#ifndef RTE_EXEC_ENV_WINDOWS
112
113static int
114list_commands(const char *cmd __rte_unused, const char *params __rte_unused,
115 struct rte_tel_data *d)
116{
117 int i;
118
119 rte_tel_data_start_array(d, RTE_TEL_STRING_VAL);
120 rte_spinlock_lock(&callback_sl);
121 for (i = 0; i < num_callbacks; i++)
122 rte_tel_data_add_array_string(d, callbacks[i].cmd);
123 rte_spinlock_unlock(&callback_sl);
124 return 0;
125}
126
127static int
128json_info(const char *cmd __rte_unused, const char *params __rte_unused,

Callers

nothing calls this directly

Calls 4

rte_tel_data_start_arrayFunction · 0.85
rte_spinlock_lockFunction · 0.50
rte_spinlock_unlockFunction · 0.50

Tested by

no test coverage detected