X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=aec2d4df70d8ef991f3d54fdfa1fd4d315ffc019;hp=b580d037b9924dfbbea909c9561ab7587ed4b3f1;hb=54773d681e44cb32d6923bd2db0dcecd4bd10079;hpb=5556277c49932fd8a53d0da595de3870839b05d8 diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index b580d037b..aec2d4df7 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -67,6 +67,7 @@ enum context_type { CONTEXT_PPID = 8, CONTEXT_VPPID = 9, CONTEXT_PTHREAD_ID = 10, + CONTEXT_HOSTNAME = 11, }; /* @@ -203,6 +204,7 @@ const struct ctx_opts { { "vtid", CONTEXT_VTID }, { "ppid", CONTEXT_PPID }, { "vppid", CONTEXT_VPPID }, + { "hostname", CONTEXT_HOSTNAME }, /* Perf options */ PERF_HW(cpu-cycles, CPU_CYCLES), PERF_HW(cycles, CPU_CYCLES),