Skip to content

Ftrace: do not throw when validating a trace #187

@arfio

Description

@arfio

Bug Description:

When loading a binary trace, the BinaryFTrace validate method should not throw. In this instance, the getMagicValuesAndFtraceVersion throws if it fails to parse the trace file. This happens when the binary file is not an ftrace trace.

Steps to Reproduce:

  1. Have a binary trace file which is not an ftrace trace
  2. Open it in Trace Compass
  3. The validation throws a TmfTraceException which interrupts validation and the trace is parsed incorrectly.

Additional Information

  • Operating System: EndeavourOS Linux
  • Trace Compass Version: latest

Metadata

Metadata

Assignees

No one assigned

    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