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

Function handle_dev_xstats

dpdk/lib/eventdev/rte_eventdev.c:1893–1915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1891}
1892
1893static int
1894handle_dev_xstats(const char *cmd __rte_unused,
1895 const char *params,
1896 struct rte_tel_data *d)
1897{
1898 int dev_id;
1899 enum rte_event_dev_xstats_mode mode;
1900 char *end_param;
1901
1902 if (params == NULL || strlen(params) == 0 || !isdigit(*params))
1903 return -1;
1904
1905 /* Get dev ID from parameter string */
1906 dev_id = strtoul(params, &end_param, 10);
1907 if (*end_param != '\0')
1908 RTE_EDEV_LOG_DEBUG(
1909 "Extra parameters passed to eventdev telemetry command, ignoring");
1910
1911 RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
1912
1913 mode = RTE_EVENT_DEV_XSTATS_DEVICE;
1914 return eventdev_build_telemetry_data(dev_id, mode, 0, d);
1915}
1916
1917static int
1918handle_port_xstats(const char *cmd __rte_unused,

Callers

nothing calls this directly

Calls 3

isdigitFunction · 0.85
strtoulFunction · 0.85

Tested by

no test coverage detected