ubus: report ring size and data size via ubus api
authorFelix Fietkau <nbd@nbd.name>
Thu, 30 Nov 2023 08:53:21 +0000 (09:53 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 30 Nov 2023 08:53:40 +0000 (09:53 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ubus.c

diff --git a/ubus.c b/ubus.c
index ca82d0b53d7b7d2d5f3a33e2f78610b261248720..e612a50e9e8d50f868c8c69b6539f849e8888f78 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -79,6 +79,8 @@ udebug_list_add_ring_data(struct client_ring *r)
        blobmsg_add_string(&b, "ring_name", r->name);
        blobmsg_add_u32(&b, "pid", r->cl->pid);
        blobmsg_add_u32(&b, "uid", r->cl->uid);
+       blobmsg_add_u32(&b, "ring_size", r->ring_size);
+       blobmsg_add_u32(&b, "data_size", r->data_size);
        if (r->flags)
                blobmsg_add_blob(&b, r->flags);
 }