X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=lttng-context-hostname.c;h=15aabe63c3f18bb31800f9b7ed61fc14dd6a859d;hp=4ecee6355162292027ef3799f59ab55441a1c07e;hb=refs%2Fheads%2Fstable-2.4;hpb=31c77635394eb16a84e467ced6cb35b23d491ece diff --git a/lttng-context-hostname.c b/lttng-context-hostname.c index 4ecee635..15aabe63 100644 --- a/lttng-context-hostname.c +++ b/lttng-context-hostname.c @@ -89,6 +89,7 @@ int lttng_add_hostname_to_ctx(struct lttng_ctx **ctx) field->get_size = hostname_get_size; field->record = hostname_record; + lttng_context_update(*ctx); wrapper_vmalloc_sync_all(); return 0; }