projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add load command to the lttng client
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
add_context.c
diff --git
a/src/bin/lttng/commands/add_context.c
b/src/bin/lttng/commands/add_context.c
index 4904d2772b5181bb835d928595671b456b38f562..3cd00f3d3411ac2e9b0801c3c8d421cc5feb8744 100644
(file)
--- a/
src/bin/lttng/commands/add_context.c
+++ b/
src/bin/lttng/commands/add_context.c
@@
-67,6
+67,7
@@
enum context_type {
CONTEXT_VPPID = 9,
CONTEXT_PTHREAD_ID = 10,
CONTEXT_HOSTNAME = 11,
CONTEXT_VPPID = 9,
CONTEXT_PTHREAD_ID = 10,
CONTEXT_HOSTNAME = 11,
+ CONTEXT_IP = 12,
};
/*
};
/*
@@
-203,6
+204,7
@@
const struct ctx_opts {
{ "ppid", CONTEXT_PPID },
{ "vppid", CONTEXT_VPPID },
{ "hostname", CONTEXT_HOSTNAME },
{ "ppid", CONTEXT_PPID },
{ "vppid", CONTEXT_VPPID },
{ "hostname", CONTEXT_HOSTNAME },
+ { "ip", CONTEXT_IP },
/* Perf options */
PERF_HW(cpu-cycles, CPU_CYCLES),
PERF_HW(cycles, CPU_CYCLES),
/* Perf options */
PERF_HW(cpu-cycles, CPU_CYCLES),
PERF_HW(cycles, CPU_CYCLES),
@@
-366,7
+368,7
@@
static int add_context(char *session_name)
} else if (opt_userspace) {
dom.type = LTTNG_DOMAIN_UST;
} else {
} else if (opt_userspace) {
dom.type = LTTNG_DOMAIN_UST;
} else {
-
ERR("Please specify a tracer (-k/--kernel or -u/--userspace)"
);
+
print_missing_domain(
);
ret = CMD_ERROR;
goto error;
}
ret = CMD_ERROR;
goto error;
}
@@
-478,7
+480,7
@@
int cmd_add_context(int argc, const char **argv)
ret = CMD_ERROR;
goto end;
} else {
ret = CMD_ERROR;
goto end;
} else {
- cds_list_add(&type->list, &ctx_type_list.head);
+ cds_list_add
_tail
(&type->list, &ctx_type_list.head);
}
break;
case OPT_USERSPACE:
}
break;
case OPT_USERSPACE:
This page took
0.025965 seconds
and
4
git commands to generate.