X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fmetadata.h;h=d445a011c0bc2740a337e721b2e1873a190515d6;hb=5b80ddfb8dfa4db544efddcd8acaed1228f87daa;hp=dde51bb4d8f0a2efacd6d841e7814b3e57908faa;hpb=306eeaa621ff1e69d8b0fcabd71560f62c16c46a;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/metadata.h b/include/babeltrace/ctf-ir/metadata.h index dde51bb4..d445a011 100644 --- a/include/babeltrace/ctf-ir/metadata.h +++ b/include/babeltrace/ctf-ir/metadata.h @@ -108,6 +108,20 @@ struct ctf_clock { (ctf_trace)->(field); \ }) +#define TRACER_ENV_LEN 128 + +/* tracer-specific environment */ +struct ctf_tracer_env { + int vpid; /* negative if unset */ + + /* All strings below: "" if unset. */ + char procname[TRACER_ENV_LEN]; + char domain[TRACER_ENV_LEN]; + char sysname[TRACER_ENV_LEN]; + char release[TRACER_ENV_LEN]; + char version[TRACER_ENV_LEN]; +}; + struct ctf_trace { struct trace_descriptor parent; /* root scope */ @@ -127,6 +141,7 @@ struct ctf_trace { uint64_t minor; uuid_t uuid; int byte_order; /* trace BYTE_ORDER. 0 if unset. */ + struct ctf_tracer_env env; enum { /* Fields populated mask */ CTF_TRACE_major = (1U << 0), @@ -143,11 +158,7 @@ struct ctf_trace { /* Heap of streams, ordered to always get the lowest timestam */ struct ptr_heap *stream_heap; - char collection_path[PATH_MAX]; char path[PATH_MAX]; - char domain[PATH_MAX]; - char procname[PATH_MAX]; - char vpid[PATH_MAX]; }; #define CTF_STREAM_SET_FIELD(ctf_stream, field) \