]> www.infradead.org Git - nvme.git/commit
tools/rv: Allow rv list to filter for container
authorGabriele Monaco <gmonaco@redhat.com>
Wed, 5 Mar 2025 14:04:02 +0000 (15:04 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 24 Mar 2025 21:27:40 +0000 (17:27 -0400)
commit4ffef9579ffc51647c5eb55869fb310f3c1e2db2
tree51ad89b968d00509bad55e10cac8029a254cd833
parent03abeaa63c08a8c14af5d456697aa79d7cc3c3b2
tools/rv: Allow rv list to filter for container

Add possibility to supply the container name to rv list:

  # rv list sched
  mon1
  mon2
  mon3

This lists only monitors in sched, without indentation.
Supplying -h, any option (string starting with -) or more than 1
argument will still print the usage.
Passing a non-existent container prints nothing and passing no container
continues to print all monitors, showing indentation for nested
monitors, reported after their container.

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/20250305140406.350227-10-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/verification/rv/include/in_kernel.h
tools/verification/rv/src/in_kernel.c
tools/verification/rv/src/rv.c