Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository was 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

@vext01

Description

@vext01

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions