[GIT PULL] rtla: Updates for 7.3
Steven Rostedt <[email protected]>
| Newsgroups | org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Linus,
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.
Please pull the latest trace-tools-v7.3 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace-tools-v7.3
Tag SHA1: 9b2f5507e61a2e53704645c0181abb5b0840664b
Head SHA1: 0ad45018ace734e3a21c8b15280df65b429135d1
Tomas Glozar (7):
rtla: Allow unsetting non-list custom-callback CLI options
rtla: Add unit tests for unset in opt callbacks
rtla: Add unit tests for CLI with unset
Documentation/rtla: Document unsetting options
rtla/tests: Test all tracer options in runtime tests
rtla/cli: Unify and improve range validation logic
rtla/cli: Unify and improve handling of invalid option arguments
----
Documentation/tools/rtla/common_appendix.txt | 17 +
Documentation/tools/rtla/common_options.txt | 13 +-
.../tools/rtla/common_osnoise_options.txt | 4 +
.../tools/rtla/common_timerlat_options.txt | 4 +
tools/tracing/rtla/src/cli.c | 42 +-
tools/tracing/rtla/src/cli_p.h | 497 ++++++++++++-------
tools/tracing/rtla/tests/engine.sh | 41 +-
tools/tracing/rtla/tests/hwnoise.t | 3 +
tools/tracing/rtla/tests/osnoise.t | 39 +-
.../rtla/tests/scripts/check-osnoise-option.sh | 16 +
.../rtla/tests/scripts/check-tracefs-value.sh | 11 +
tools/tracing/rtla/tests/timerlat.t | 40 +-
tools/tracing/rtla/tests/unit/cli_opt_callback.c | 534 ++++++++++++++-------
tools/tracing/rtla/tests/unit/osnoise_hist_cli.c | 18 +
tools/tracing/rtla/tests/unit/osnoise_top_cli.c | 18 +
tools/tracing/rtla/tests/unit/timerlat_hist_cli.c | 18 +
tools/tracing/rtla/tests/unit/timerlat_top_cli.c | 18 +
17 files changed, 949 insertions(+), 384 deletions(-)
create mode 100755 tools/tracing/rtla/tests/scripts/check-osnoise-option.sh
create mode 100755 tools/tracing/rtla/tests/scripts/check-tracefs-value.sh
---------------------------