Skip to content

Dromajo STF Trace Support Improvements #130

Open
@kathlenemagnus

Description

@kathlenemagnus

I have been reviewing the STF trace generation support in Dromajo and have some recommendations to improve the implementation.

  • Add register read and write records
  • Add memory read and write records
  • Refactor parameters to control enablement of tracepoint and privilege mode checks
  • Better handling of "no trace generated" scenarios (no trace created + a warning if no instructions are traced)

These are the current STF trace parameters in Dromajo:

--stf_trace <filename>  Dump an STF trace to the given file"
--stf_no_priv_check Turn off the privledge check in STF generation"

I would like to propose removing --stf_no_priv_check and adding these parameters:

--stf-tracepoint Enable tracepoint detection for STF trace generation"
--stf-priv-modes <MHSU|HSU|SU|U> Specify which privilege modes to include in STF trace generation"

These parameters would allow the user to specify whether tracepoints should be used to start/stop trace generation and specify which privilege modes to include in the trace. All conditions specified must be met for tracing to be enabled. These new options would also allow for noncontiguous traces, which is well handled by the STF library.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions