Revision 31d3c9b8 simpletrace.c
b/simpletrace.c | ||
---|---|---|
14 | 14 |
#include <time.h> |
15 | 15 |
#include <signal.h> |
16 | 16 |
#include <pthread.h> |
17 |
#include "qerror.h" |
|
18 | 17 |
#include "qemu-timer.h" |
19 | 18 |
#include "trace.h" |
20 | 19 |
|
... | ... | |
331 | 330 |
flush_trace_file(true); |
332 | 331 |
} |
333 | 332 |
|
334 |
void st_init(const char *file)
|
|
333 |
bool st_init(const char *file)
|
|
335 | 334 |
{ |
336 | 335 |
pthread_t thread; |
337 | 336 |
pthread_attr_t attr; |
... | ... | |
347 | 346 |
pthread_sigmask(SIG_SETMASK, &oldset, NULL); |
348 | 347 |
|
349 | 348 |
if (ret != 0) { |
350 |
error_report("warning: unable to create trace file thread\n"); |
|
351 |
return; |
|
349 |
return false; |
|
352 | 350 |
} |
353 | 351 |
|
354 | 352 |
atexit(st_flush_trace_buffer); |
355 | 353 |
st_set_trace_file(file); |
354 |
return true; |
|
356 | 355 |
} |
Also available in: Unified diff