#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include "cnet-graph.h"
extern struct cnet_info *cinfo;
static int
{
char hostname[256];
if (gethostname(hostname, sizeof(hostname)) < 0)
return -1;
return 0;
}
static int
{
return 0;
}
static int
{
struct fwd_port *pd = lport->priv_;
lport_stats_t stats = {0};
metrics_client_t *c = arg;
}
static int
{
return jcfg_lport_foreach(cinfo->jinfo, handle_stats, c);
}
int
enable_metrics(void)
{
CNE_ERR_RET(
"metrics failed to initialize: %s\n", strerror(errno));
return 0;
}
CNDP_API int metrics_port_stats(metrics_client_t *c, char *name, lport_stats_t *s)
#define metrics_append(c, fmt,...)
CNDP_API int metrics_init(void *priv_)
CNDP_API int metrics_register(const char *cmd, metrics_cb fn)
CNDP_API int pktdev_stats_get(uint16_t lport_id, lport_stats_t *stats)