babeltrace2-query-babeltrace.trace-infos - Linux


Overview

babeltrace2-query-babeltrace.trace-infos queries trace information from a Linux trace file. It provides metadata about traces for offline analysis.

Syntax

babeltrace2-query-babeltrace.trace-infos [options] <trace.trace-infos>

Options/Flags

  • -h, –help: Display help and usage information.
  • -v, –verbose: Enable verbose output.
  • -f, –format: Specify output format: text, json, or json-pretty (default is text).
  • -o, –output: Specify output file (defaults to stdout).

Examples

Basic usage:

Query trace information from a specified file:

babeltrace2-query-babeltrace.trace-infos /path/to/trace.trace-infos

Verbose output:

Display more detailed information during execution:

babeltrace2-query-babeltrace.trace-infos -v /path/to/trace.trace-infos

Custom output format:

Export trace information in JSON format:

babeltrace2-query-babeltrace.trace-infos -f json /path/to/trace.trace-infos

Common Issues

Error: File not found

Ensure that the specified trace file exists and is accessible.

Error: Invalid trace file

Check if the trace file is corrupted or in a different format.

Error: Permission denied

Ensure that you have appropriate permissions to read the trace file.

Integration

babeltrace2-query-babeltrace.trace-infos can be used with other tools, such as:

  • babeltrace2-instrument-*-offline: Generate trace data for various subsystems.
  • babeltrace2-analyze: Analyze traces and generate reports.

Related Commands

  • babeltrace2-query-babeltrace.events
  • babeltrace2-query-babeltrace.joined-events