X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=3a5a3385d2522ae094046cef4d570cc61dd303eb;hb=1e8c9e7b5464b708572fe0d28f9d8bf572784e45;hp=0a8fc8e80f2e2d2e7bdbc3ead5df30a97d40a61f;hpb=b73a4c471dc987ea8548632dffb3c7050de77dd0;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 0a8fc8e..3a5a338 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -640,7 +640,6 @@ static int do_cmd_put_subbuffer(const char *recvbuf, struct ustcomm_source *src) if(!strcmp(trace->channels[i].channel_name, ch_name)) { struct ust_buffer *buf = channel->buf[ch_cpu]; char *reply; - long consumed_old=0; found = 1; @@ -1117,6 +1116,11 @@ static void __attribute__((constructor)) init() /* Ensure markers are initialized */ init_markers(); + /* Ensure buffers are initialized, for the transport to be available. + * We are about to set a trace type and it will fail without this. + */ + init_ustrelay_transport(); + /* FIXME: When starting early tracing (here), depending on the * order of constructors, it is very well possible some marker * sections are not yet registered. Because of this, some