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

Function mempool_handle_info

dpdk/lib/mempool/rte_mempool.c:1539–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1537}
1538
1539static int
1540mempool_handle_info(const char *cmd __rte_unused, const char *params,
1541 struct rte_tel_data *d)
1542{
1543 struct mempool_info_cb_arg mp_arg;
1544 char name[RTE_MEMZONE_NAMESIZE];
1545
1546 if (!params || strlen(params) == 0)
1547 return -EINVAL;
1548
1549 rte_strlcpy(name, params, RTE_MEMZONE_NAMESIZE);
1550
1551 rte_tel_data_start_dict(d);
1552 mp_arg.pool_name = name;
1553 mp_arg.d = d;
1554 rte_mempool_walk(mempool_info_cb, &mp_arg);
1555
1556 return 0;
1557}
1558
1559RTE_INIT(mempool_init_telemetry)
1560{

Callers

nothing calls this directly

Calls 3

rte_strlcpyFunction · 0.85
rte_tel_data_start_dictFunction · 0.85
rte_mempool_walkFunction · 0.85

Tested by

no test coverage detected