Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] utils: Add the v4l2top tool
@ 2026-09-16 15:20 Detlev Casanova
  2026-09-16 15:20 ` [PATCH RFC v4l-utils 1/3] v4l-util: Add the v4l2top utility Detlev Casanova
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Detlev Casanova @ 2026-09-16 15:20 UTC (permalink / raw)
  To: linux-media, Detlev Casanova

Hello !

As we are currently adding support for fdinfo[1] and memory tracking[2]
in v4l2 drivers, I propose the v4l2top utility to show
media devices time and memory usage in a nice TUI, much like htop.

The tool is written in Rust and only built when cargo is detected,
using a wrapper in the meson build system.

Currently, the code has been copied in the tree from my git repository[3],
but if needed, we can use a submodule or recreate the git history.

As [1] and [2] have not been accepted upstream yet, this should not be
merged yet and be regarded as an RFC.

Regards,
Detlev

[1]: https://lore.kernel.org/all/20260706-v4l2-add-fdinfo-v3-0-d556568cf38e@collabora.com/
[2]: https://lore.kernel.org/all/20260916-v4l2-add-mem-tracker-v1-0-900fa45e3e6a@collabora.com/
[3]: https://github.com/cazou/v4l2top # upstream branch

Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
---
Detlev Casanova (3):
      v4l-util: Add the v4l2top utility
      meson: Add meson build file for v4l2top
      README: Add v4l2top util

 README.md                         |   7 +
 meson.build                       |   1 +
 meson_options.txt                 |   2 +
 utils/meson.build                 |   2 +
 utils/v4l2top/.gitignore          |   2 +
 utils/v4l2top/Cargo.toml          |  13 +
 utils/v4l2top/README.md           |  43 +++
 utils/v4l2top/cargo-wrapper.sh    |  22 ++
 utils/v4l2top/meson.build         |  43 +++
 utils/v4l2top/src/main.rs         |  51 ++++
 utils/v4l2top/src/renderers.rs    | 593 ++++++++++++++++++++++++++++++++++++++
 utils/v4l2top/src/v4l2_mem.rs     |  56 ++++
 utils/v4l2top/src/v4l2_metrics.rs | 148 ++++++++++
 13 files changed, 983 insertions(+)
---
base-commit: fa05ca502293f65e25930e6321c82eeaccf382ab
change-id: 20260910-add-v4l2top-671130a4d43e

Best regards,
--  
Detlev Casanova <detlev.casanova@collabora.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-16 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 15:20 [PATCH RFC 0/3] utils: Add the v4l2top tool Detlev Casanova
2026-09-16 15:20 ` [PATCH RFC v4l-utils 1/3] v4l-util: Add the v4l2top utility Detlev Casanova
2026-09-16 15:20 ` [PATCH RFC v4l-utils 2/3] meson: Add meson build file for v4l2top Detlev Casanova
2026-09-16 15:20 ` [PATCH RFC v4l-utils 3/3] README: Add v4l2top util Detlev Casanova
2026-09-16 15:33 ` [PATCH RFC 0/3] utils: Add the v4l2top tool Mauro Carvalho Chehab
2026-09-16 17:07   ` Detlev Casanova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox