babeltrace2-convert

Från Wiki.linux.se
Hoppa till navigering Hoppa till sök

babeltrace2-convert(1) - Linux manual page

Name

babeltrace2-convert - Convert one or more traces to a given format.

Synopsis

Pretty-print (plain text) the events, in order, of one or more traces:

   babeltrace2 [GENERAL OPTIONS] [convert] [--retry-duration=<TIME-US>]
                    TRACE-PATH...

Convert one or more traces to a given format:

   babeltrace2 [GENERAL OPTIONS] [convert] [--retry-duration=<TIME-US>]
                    CONVERSION ARGS

Print the metadata text of a CTF trace:

   babeltrace2 [GENERAL OPTIONS] [convert] [--output=<OUTPATH>]
                    --output-format=ctf-metadata TRACE-PATH

Description

The convert command converts one or more traces to a given format, possibly with filters in the conversion path.

- Convert a trace:

 Creates a specialized trace processing graph, focusing on converting traces from one format to another.

- Pretty-print events:

 If no output format is specified, the default output is pretty-printed text on the standard output.

Conversion Graph

The convert command constructs a conversion graph, a linear chain of components to process and transform trace data.

Components in the conversion graph include:

  • Source components (e.g., CTF trace readers).
  • Filters (e.g., stream trimmers, debug info enhancers).
  • Sink components (e.g., text printers, file writers).

Implicit Components

Components can be automatically created from options or non-option arguments. For example:

  • Specifying a trace path creates an implicit CTF source component.
  • Adding --output-format=ctf creates an implicit sink for writing CTF traces.

Explicit Components

Use the --component option to explicitly define components in the graph.

Options

General options include:

  • -d, --debug - Enable detailed debugging logs.
  • -l <LVL>, --log-level=<LVL> - Set the log level. Options include TRACE, DEBUG, INFO, WARN, ERROR, FATAL.
  • --omit-home-plugin-path - Skip loading plugins from the user directory.
  • --plugin-path=<PATH> - Add custom plugin directories.

Trace-specific options:

  • --begin=
  • --end=
  • --debug-info - Add debug information to LTTng events.
  • --output-format=<FORMAT> - Specify the output format (e.g., ctf, text, dummy).
  • --output=<PATH> - Define the output file/directory.

Examples

1. Pretty-print the events of a CTF trace:

  ```bash
  babeltrace2 /path/to/trace

Sidslut

Orginalhemsidan på Engelska https://man7.org/linux/man-pages/man1/babeltrace2-convert.1.html


Det här är en maskinöversättning av Linux man sidor till svenska. Om du hittar fel är vi tacksamma om du rapporterar dem via formuläret som finns på https://www.linux.se/kontaka-linux-se/

Tack till Datorhjälp som har sponsrat Linux.se med webbhotell.

Sidslut

Orginalhemsidan på Engelska :https://man7.org/linux/man-pages/man1/babeltrace2-convert.1.html


Det här är en maskinöversättning av Linux man sidor till svenska. Om du hittar fel är vi tacksamma om du rapporterar dem via formuläret som finns på https://www.linux.se/kontaka-linux-se/

Tack till Datorhjälp som har sponsrat Linux.se med webbhotell.