projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New public API for lttng control
[lttng-tools.git]
/
lttng
/
commands
/
add_context.c
diff --git
a/lttng/commands/add_context.c
b/lttng/commands/add_context.c
index 1e6a807effb7393a30091bfb68e9a69c1d0cdeef..cc7aee35e49c0701dbf9530092a7832a52a53472 100644
(file)
--- a/
lttng/commands/add_context.c
+++ b/
lttng/commands/add_context.c
@@
-123,7
+123,8
@@
static void usage(FILE *ofp)
static int add_context(int type)
{
int ret = CMD_SUCCESS;
static int add_context(int type)
{
int ret = CMD_SUCCESS;
- struct lttng_kernel_context context;
+ struct lttng_event_context context;
+ struct lttng_domain dom;
if (set_session_name(opt_session_name) < 0) {
ret = CMD_ERROR;
if (set_session_name(opt_session_name) < 0) {
ret = CMD_ERROR;
@@
-139,8
+140,12
@@
static int add_context(int type)
}
if (opt_kernel) {
}
if (opt_kernel) {
+ /* Create kernel domain */
+ dom.type = LTTNG_DOMAIN_KERNEL;
+
DBG("Adding kernel context");
DBG("Adding kernel context");
- ret = lttng_kernel_add_context(&context, opt_event_name, opt_channel_name);
+ ret = lttng_add_context(&dom, &context, opt_event_name,
+ opt_channel_name);
if (ret < 0) {
goto error;
} else {
if (ret < 0) {
goto error;
} else {
This page took
0.025555 seconds
and
4
git commands to generate.