Project

General

Profile

Actions

Feature #284

closed

Add a CTF metadata text output

Added by Philippe Proulx almost 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/21/2012
Due date:
% Done:

0%

Estimated time:

Description

Suggestion to add an option to Babeltrace for outputting the metadata text without the packets headers bits. Ideally: pretty-printed.

Actually maybe this could be an output format, even if it doesn't output any event.

Example:

$ babeltrace -i ctf -o ctf-metadata /path/to/ctf/trace
/* CTF 1.8 */
typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
typealias integer { size = 5; align = 1; signed = false; } := uint5_t;
typealias integer { size = 27; align = 1; signed = false; } := uint27_t;

trace {
    major = 1;
    minor = 8;
    uuid = "1e14da56-7cf5-9d40-b7ff-bac53d7b0b25";
    byte_order = le;
    packet.header := struct {
        uint32_t magic;
        uint8_t  uuid[16];
        uint32_t stream_id;
    };
};

env {
    domain = "kernel";
    sysname = "Linux";
    kernel_release = "3.0.0-19-generic";
    kernel_version = "#33-Ubuntu SMP Thu Apr 19 19:05:14 UTC 2012";
    tracer_name = "lttng-modules";
    tracer_major = 2;
    tracer_minor = 0;
    tracer_patchlevel = 0;
};

...
Actions #1

Updated by Mathieu Desnoyers about 11 years ago

  • Status changed from New to Resolved

commit 7237592a76cceda97a1c79904fed583e215d3fa9
Author: Mathieu Desnoyers <>
Date: Sat Apr 6 15:47:13 2013 -0400

Implement ctf-metadata output plugin
Fixes #284
Signed-off-by: Mathieu Desnoyers &lt;&gt;
Actions

Also available in: Atom PDF