Use per cpu spinlock on trace list.<br>
Finish the control module, libltt and lttctl : netlink interface<br>
Finish integrating lttctl with lttd.<br>
+fix lttctl signal waiting : use a flag.<br>
<br>
<br>
* TODO<br>
-> this information is so small that we can repeat it. Makes flight recorder
easier to decode.<br>
Add trace start structure to facility channel.<br>
+fix genevent : take no lock if num traces active is 0.<br>
<br>
<br>
<br>
static char *channel_root = NULL;
static char *trace_root = NULL;
+static int sigio_received = 0;
+
void handler(int signo)
{
printf("signal %d received\n", signo);
+ sigio_received = 1;
}
sigaddset(&(act.sa_mask), SIGIO);
sigaction(SIGIO, &act, NULL);
+ sigio_received = 0;
+
pid = fork();
if(pid > 0) {
- //sleep(1);
/* parent */
- pause();
+ while(!sigio_received) pause();
/* Now the trace is created, go on and create the supplementary files... */
printf("Creating supplementary trace files\n");