Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   babeltrace2-convert    ( 1 )

преобразование одной или нескольких трасс в заданный формат (Convert one or more traces to a given format)

  Name  |  Synopsis  |  Description  |  Options  |    Examples    |  Environment variables  |  Files  |  Exit  |  Bugs  |  Resources  |

Примеры (Examples)

Example 1. Pretty-print the events, in order, of one or more CTF
       traces.

$ babeltrace2 my-ctf-traces

$ babeltrace2 my-ctf-traces

$ babeltrace2 my-ctf-trace-1 my-ctf-trace-2 my-ctf-trace-3

Example 2. Trim a CTF trace and pretty-print the events.

$ babeltrace2 my-ctf-trace --begin=22:55:43.658582931 \ --end=22:55:46.967687564

$ babeltrace2 my-trace --begin=22:55:43.658582931

$ babeltrace2 my-trace --end=22:55:46.967687564

$ babeltrace2 my-trace --timerange=22:55:43,22:55:46.967687564

Example 3. Trim a CTF trace, enable the stream intersection mode, and write a CTF trace.

$ babeltrace2 my-ctf-trace --stream-intersection \ --timerange=22:55:43,22:55:46.967687564 \ --output-format=ctf --output=out-ctf-trace

Example 4. Print the available remote LTTng sessions (through LTTng live).

$ babeltrace2 --input-format=lttng-live net://localhost

Example 5. Pretty-print LTTng live events.

$ babeltrace2 net://localhost/host/myhostname/my-session-name

Example 6. Record LTTng live traces to the file system (as CTF traces).

$ babeltrace2 net://localhost/host/myhostname/my-session-name \ --params=session-not-found-action=end \ --output-format=ctf --output=out-ctf-traces

Example 7. Read a CTF trace as fast as possible using a dummy output.

$ babeltrace2 my-trace --output-format=dummy

Example 8. Read three CTF traces in stream intersection mode, add debugging information, and pretty-print them to a file.

$ babeltrace2 ctf-trace1 ctf-trace2 ctf-trace3 --stream-intersection \ --debug-info --output=pretty-out

Example 9. Pretty-print a CTF trace and traces from an explicit source component, with the event times showed in seconds since the Unix epoch.

$ babeltrace2 ctf-trace --component=src.my-plugin.my-src \ --params='path="spec-trace",output-some-event-type=yes' \ --clock-seconds

Example 10. Send LTTng live events to an explicit sink component.

$ babeltrace2 net://localhost/host/myhostname/mysession \ --component=sink.my-plugin.my-sink

Example 11. Trim a CTF trace, add debugging information, apply an explicit filter component, and write as a CTF trace.

$ babeltrace2 /path/to/ctf/trace --timerange=22:14:38,22:15:07 \ --debug-info --component=filter.my-plugin.my-filter \ --params=criteria=xyz,ignore-abc=yes \ --output-format=ctf --output=out-ctf-trace

Example 12. Print the metadata text of a CTF trace.

$ babeltrace2 /path/to/ctf/trace --output-format=ctf-metadata