RTLA updates for v7.3

- Extend support for unsetting CLI options
 
   libsubcmd auto-generates "--no-<option>" to unset options, provided
   the option callback supports it. Implement this for RTLA CLI beyond
   boolean options, and document the few exceptions that are left out.
 
 - Test all tracer options in runtime tests
 
   Verify that RTLA sets osnoise/timerlat options correctly by reading them
   from tracefs during runtime tests.
 
 - Improve range validation for option arguments
 
   Make CLI range validation consistent with the kernel limits and unify
   implementation and error messages between options.
 
 - Improve invalid option argument parsing
 
   Consistently reject invalid values for numeric option arguments with
   a unified error message for all options.
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYKADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCan+DpBQccm9zdGVkdEBn
 b29kbWlzLm9yZwAKCRAp5XQQmuv6qpEsAP90dBAnAxttyHCUIfdDJuVZRRu2EXzn
 xuBVPvL2sMt89wEA8Un0jTztzmGEUohIWpUG4tQJ7Ebi9xGYqkbmcymbKQo=
 =aUyh
 -----END PGP SIGNATURE-----

Merge tag 'trace-tools-v7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull RTLA updates from Steven Rostedt:

 - Extend support for unsetting CLI options

   libsubcmd auto-generates "--no-<option>" to unset options, provided
   the option callback supports it. Implement this for RTLA CLI beyond
   boolean options, and document the few exceptions that are left out.

 - Test all tracer options in runtime tests

   Verify that RTLA sets osnoise/timerlat options correctly by reading
   them from tracefs during runtime tests.

 - Improve range validation for option arguments

   Make CLI range validation consistent with the kernel limits and unify
   implementation and error messages between options.

 - Improve invalid option argument parsing

   Consistently reject invalid values for numeric option arguments with
   a unified error message for all options.

* tag 'trace-tools-v7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  rtla/cli: Unify and improve handling of invalid option arguments
  rtla/cli: Unify and improve range validation logic
  rtla/tests: Test all tracer options in runtime tests
  Documentation/rtla: Document unsetting options
  rtla: Add unit tests for CLI with unset
  rtla: Add unit tests for unset in opt callbacks
  rtla: Allow unsetting non-list custom-callback CLI options
This commit is contained in:
Linus Torvalds 2026-08-19 14:00:15 -07:00
commit 3793b558ff
17 changed files with 949 additions and 384 deletions