hw/cxl: add trace-events coverage
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 0 repliesNew
- v13 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- Split patch 2 into HDM-only; dropped CDAT traces -- source is commandline-controlled (Jonathan)
- Split patch 3 into separate event-log and CFMWS patches (Jonathan)
- Pass set and cmd as separate uint8_t parameters instead of a combined opcode (Jonathan)
- Cover all 21 CXL_MBOX_INVALID_PAYLOAD_LENGTH return sites, not just the centralised entry check (Jonathan)
- Rename depth -> occupancy in event log trace (Jonathan)
- Defer passthrough-specific trace pending upstream support (Jonathan)
- Add cxl_hdm_decoder_uncommit for commit/uncommit symmetry
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | hw/cxl: introduce trace-events infrastructurehw/ hw/ meson.build | +4 | 0 replies | |
| 2/5 | hw/cxl: trace mailbox command dispatch and payload errorshw/ hw/ include/ | +75 | 0 replies | |
| 3/5 | hw/cxl: trace HDM decoder write, commit and uncommithw/ hw/ | +23 | 0 replies | |
| 4/5 | hw/cxl: trace event log insertion, overflow and clearhw/ hw/ | +16 | 0 replies | |
| 5/5 | hw/cxl: trace CFMWS address-to-device routinghw/ hw/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/5] hw/cxl: add trace-events coverage
The CXL subsystem in QEMU currently has no trace coverage. Debugging mailbox commands, HDM decoder programming, event log activity, and CFMWS address decoding relies on temporary printf or qemu_log_mask.
This series introduces trace-events infrastructure for the CXL subsystem and adds 11 trace points covering the above paths. All events use the cxl_ prefix so -trace 'cxl_*' captures everything.
Changes since v1:
- Split patch 2 into HDM-only; dropped CDAT traces -- source is commandline-controlled (Jonathan)
- Split patch 3 into separate event-log and CFMWS patches (Jonathan)
- Pass set and cmd as separate uint8_t parameters instead of a combined opcode (Jonathan)
- Cover all 21 CXL_MBOX_INVALID_PAYLOAD_LENGTH return sites, not just the centralised entry check (Jonathan)
- Rename depth -> occupancy in event log trace (Jonathan)
- Defer passthrough-specific trace pending upstream support (Jonathan)
- Add cxl_hdm_decoder_uncommit for commit/uncommit symmetry
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Junjie Cao (5):
hw/cxl: introduce trace-events infrastructure hw/cxl: trace mailbox command dispatch and payload errors hw/cxl: trace HDM decoder write, commit and uncommit hw/cxl: trace event log insertion, overflow and clear hw/cxl: trace CFMWS address-to-device routing
hw/cxl/cxl-events.c | 13 +++++-- hw/cxl/cxl-host.c | 4 +++ hw/cxl/cxl-mailbox-utils.c | 71 +++++++++++++++++++++++++++++++++++-- hw/cxl/trace-events | 15 ++++++++ hw/cxl/trace.h | 2 ++ hw/mem/cxl_type3.c | 19 +++++++++- hw/mem/trace-events | 5 +++ include/hw/cxl/cxl_device.h | 1 + meson.build | 1 + 9 files changed, 126 insertions(+), 5 deletions(-) create mode 100644 hw/cxl/trace-events create mode 100644 hw/cxl/trace.h
Signature · 1 line
2.43.0