projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add vtid (gettid()) context
[lttng-ust.git]
/
tests
/
ust-basic-tracing
/
ust-basic-tracing.c
diff --git
a/tests/ust-basic-tracing/ust-basic-tracing.c
b/tests/ust-basic-tracing/ust-basic-tracing.c
index d0ba4137d9899ed760194e749b94626fc8d022b1..d200b4f98f50566eb4bc031d0d749f73e3705cad 100644
(file)
--- a/
tests/ust-basic-tracing/ust-basic-tracing.c
+++ b/
tests/ust-basic-tracing/ust-basic-tracing.c
@@
-565,11
+565,12
@@
int send_app_msgs(int sock, const char *outputpath,
printf("received event handle %u\n", event_handle[k]);
}
printf("received event handle %u\n", event_handle[k]);
}
- /* Attach
pthread_
id context */
+ /* Attach
vt
id context */
memset(&lum, 0, sizeof(lum));
lum.handle = channel_data.handle;
lum.cmd = LTTNG_UST_CONTEXT;
memset(&lum, 0, sizeof(lum));
lum.handle = channel_data.handle;
lum.cmd = LTTNG_UST_CONTEXT;
- lum.u.context.ctx = LTTNG_UST_CONTEXT_PTHREAD_ID;
+ lum.u.context.ctx = LTTNG_UST_CONTEXT_VTID;
+ //lum.u.context.ctx = LTTNG_UST_CONTEXT_PTHREAD_ID;
ret = send_app_cmd(sock, &lum, &lur);
if (ret)
return ret;
ret = send_app_cmd(sock, &lum, &lur);
if (ret)
return ret;
This page took
0.026775 seconds
and
4
git commands to generate.