Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

hwtracer assumes that any decoder can decode a trace from any collector. #100

Open
vext01 opened this issue Oct 14, 2022 · 0 comments
Open
Assignees

Comments

@vext01
Copy link
Collaborator

vext01 commented Oct 14, 2022

This is not strictly correct. Depending on the platform, Linux perf can collect different kinds of traces. For example on ARM perf can collect coresight traces instead of Intel PT traces.

If we supported collecting coresight traces (we don't any trace is currently assumed to be an Intel PT trace), hwtracer would happily let us pass a coresight trace to the libipt decoder.

I wonder if the Trace trait should have a fn format() -> TraceFormat which is checked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant