projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: 'struct timex' removed upstream (v5.6)
[lttng-modules.git]
/
lttng-events.c
diff --git
a/lttng-events.c
b/lttng-events.c
index 46a8fe1b11e969b93b2bb06b962c648bf7758142..25c616ee82a8aecdc017695036c57445635d0e63 100644
(file)
--- a/
lttng-events.c
+++ b/
lttng-events.c
@@
-2515,15
+2515,16
@@
error:
}
static
}
static
-int print_metadata_session_name(struct lttng_session *session)
+int print_metadata_escaped_field(struct lttng_session *session, const char *field,
+ const char *field_value)
{
int ret;
{
int ret;
- ret = lttng_metadata_printf(session, "
trace_name = \""
);
+ ret = lttng_metadata_printf(session, "
%s = \"", field
);
if (ret)
goto error;
if (ret)
goto error;
- ret = print_escaped_ctf_string(session,
session->nam
e);
+ ret = print_escaped_ctf_string(session,
field_valu
e);
if (ret)
goto error;
if (ret)
goto error;
@@
-2620,7
+2621,11
@@
int _lttng_session_metadata_statedump(struct lttng_session *session)
if (ret)
goto end;
if (ret)
goto end;
- ret = print_metadata_session_name(session);
+ ret = print_metadata_escaped_field(session, "trace_name", session->name);
+ if (ret)
+ goto end;
+ ret = print_metadata_escaped_field(session, "trace_creation_datetime",
+ session->creation_time);
if (ret)
goto end;
if (ret)
goto end;
This page took
0.024001 seconds
and
4
git commands to generate.