session->metadata->fd,
session->metadata->conf->attr.subbuf_size,
0, /* for kernel */
- "metadata",
+ DEFAULT_METADATA_NAME,
1);
health_code_update(&health_thread_kernel);
session->gid,
consumer->net_seq_index,
1, /* Metadata flag set */
- "metadata",
+ DEFAULT_METADATA_NAME,
pathname,
session->id);
lum->handle = -1;
/* Set metadata trace path */
- ret = snprintf(lum->pathname, PATH_MAX, "%s/metadata", path);
+ ret = snprintf(lum->pathname, PATH_MAX, "%s/" DEFAULT_METADATA_NAME, path);
if (ret < 0) {
PERROR("asprintf ust metadata");
goto error_free_metadata;
}
ret = snprintf(ua_sess->metadata->pathname, PATH_MAX,
- "%s/metadata", ua_sess->path);
+ "%s/" DEFAULT_METADATA_NAME, ua_sess->path);
if (ret < 0) {
PERROR("asprintf UST create stream");
goto error;
usess->metadata->obj->shm_fd,
usess->metadata->attr.subbuf_size,
usess->metadata->obj->memory_map_size,
- "metadata",
+ DEFAULT_METADATA_NAME,
1);
health_code_update(&health_thread_cmd);
usess->gid,
consumer->net_seq_index,
1, /* Flag metadata set */
- "metadata",
+ DEFAULT_METADATA_NAME,
pathname,
usess->id);
/* Default unix group name for tracing. */
#define DEFAULT_TRACING_GROUP "tracing"
+/*
+ * This value is defined in the CTF specification (see
+ * git://git.efficios.com/ctf.git in the file
+ * common-trace-format-specification.txt.
+ */
+#define DEFAULT_METADATA_NAME "metadata"
+
/* Environment variable to set session daemon binary path. */
#define DEFAULT_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"