X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Fltt-events.c;h=f048e27817a69cb9f1aee3c23f41c4d1360341a7;hb=f4681817263e0d8daa2839da41ea3ef666d6bc1b;hp=d28a430d4c649776af1abb4ae02f9d441dcb3216;hpb=403c40b4b90356fddbb18cd12c6e6891c8bd317b;p=lttng-ust.git diff --git a/libust/ltt-events.c b/libust/ltt-events.c index d28a430d..f048e278 100644 --- a/libust/ltt-events.c +++ b/libust/ltt-events.c @@ -18,9 +18,11 @@ #include #include #include +#include +#include +#include #include "usterr_signal_safe.h" #include "ust/core.h" -#include "ltt-events.h" #include "ltt-tracer.h" #include "ust/wait.h" @@ -194,8 +196,7 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session, void *buf_addr, size_t subbuf_size, size_t num_subbuf, unsigned int switch_timer_interval, - unsigned int read_timer_interval, - int *shmid) + unsigned int read_timer_interval) { struct ltt_channel *chan; struct ltt_transport *transport; @@ -214,6 +215,7 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session, goto nomem; chan->session = session; chan->id = session->free_chan_id++; + //chan->shmid = shmget(getpid(), shmlen, IPC_CREAT | IPC_EXCL | 0700); /* * Note: the channel creation op already writes into the packet * headers. Therefore the "chan" information used as input