Skip to content

verification/rvgen: validate the monitor type

Chaosheng Qu linux-trace-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Thread the series; 2/2 replies to this cover letter.
- Tag both patches verification/rvgen: and capitalise the subject.
- Patch content unchanged.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2verification/rvgen: Validate the monitor typetools/verification/rvgen/__main__.py+1 -01 reply
2/2verification/rvgen: Cover an invalid monitor typetools/verification/rvgen/tests/rvgen_monitor.t+4 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchGabriele Monaco
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] verification/rvgen: validate the monitor type

rvgen takes the monitor type on the command line and pastes it into the generated monitor as RV_MON_<TYPE>. Nothing validates it, so a typo produces a monitor that cannot build while the tool still exits 0. Monitor.monitor_types already holds the accepted set; pass it to argparse as choices. Patch 2 covers the rejection next to the other error tests.

v2:
- Thread the series; 2/2 replies to this cover letter.
- Tag both patches verification/rvgen: and capitalise the subject.
- Patch content unchanged.

Testing: make check in tools/verification/rvgen -- 31/31 pass.

Chaosheng Qu (2):
verification/rvgen: Validate the monitor type verification/rvgen: Cover an invalid monitor type

 tools/verification/rvgen/__main__.py           | 1 +
 tools/verification/rvgen/tests/rvgen_monitor.t | 4 ++++
 2 files changed, 5 insertions(+)
Signature · 1 line
2.43.0