[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2491069a-f9ff-46bd-a468-0ab3d9eb6371@kernel.org>
Date: Wed, 22 Nov 2023 17:17:01 +0100
From: Jesper Dangaard Brouer <hawk@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>, davem@...emloft.net
Cc: netdev@...r.kernel.org, edumazet@...gle.com, pabeni@...hat.com,
almasrymina@...gle.com, ilias.apalodimas@...aro.org, dsahern@...il.com,
dtatulea@...dia.com, willemb@...gle.com,
kernel-team <kernel-team@...udflare.com>
Subject: Re: [PATCH net-next v3 13/13] tools: ynl: add sample for getting
page-pool information
On 11/22/23 04:44, Jakub Kicinski wrote:
> Regenerate the tools/ code after netdev spec changes.
>
> Add sample to query page-pool info in a concise fashion:
>
> $ ./page-pool
> eth0[2] page pools: 10 (zombies: 0)
> refs: 41984 bytes: 171966464 (refs: 0 bytes: 0)
> recycling: 90.3% (alloc: 656:397681 recycle: 89652:270201)
>
> Signed-off-by: Jakub Kicinski<kuba@...nel.org>
> ---
> tools/include/uapi/linux/netdev.h | 36 +++
> tools/net/ynl/generated/netdev-user.c | 419 ++++++++++++++++++++++++++
> tools/net/ynl/generated/netdev-user.h | 171 +++++++++++
> tools/net/ynl/lib/ynl.h | 2 +-
> tools/net/ynl/samples/.gitignore | 1 +
> tools/net/ynl/samples/Makefile | 2 +-
> tools/net/ynl/samples/page-pool.c | 147 +++++++++
> 7 files changed, 776 insertions(+), 2 deletions(-)
> create mode 100644 tools/net/ynl/samples/page-pool.c
Nice a sample tool.
Acked-by: Jesper Dangaard Brouer <hawk@...nel.org>
Let me provide some lore links[1][2] to this, if someone want to take a
look at extracting for their own monitoring system... ;-)
[1]
https://lore.kernel.org/netdev/20231122034420.1158898-14-kuba@kernel.org/
[2]
https://lore.kernel.org/netdev/20231122034420.1158898-14-kuba@kernel.org/#Z31tools:net:ynl:samples:page-pool.c
[3]
https://lore.kernel.org/netdev/20231122034420.1158898-14-kuba@kernel.org/#Z31tools:net:ynl:generated:netdev-user.c
Powered by blists - more mailing lists