X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=0a12d9be75e4b97be6728bad11727105f4e68b8c;hb=38ee087f699718e57d1bc5614c2f79c3c30ccca9;hp=4171cde41c998d123fac3b407a337ec622b42cfe;hpb=c8f59ee5fc11492ef472dc5cfd2fd2c4926b1787;p=lttng-tools.git diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 4171cde41..0a12d9be7 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -472,9 +472,20 @@ extern int lttng_start_tracing(const char *session_name); /* * Stop tracing for *all* registered traces (kernel and user-space). + * + * This call will wait for data availability for each domain of the session so + * this can take an abritrary amount of time. However, when returning you have + * the guarantee that the data is ready to be read and analyse. Use the + * _no_wait call below to avoid this behavior. */ extern int lttng_stop_tracing(const char *session_name); +/* + * Behave exactly like lttng_stop_tracing but does not wait for data + * availability. + */ +extern int lttng_stop_tracing_no_wait(const char *session_name); + /* * Add context to event(s) for a specific channel (or for all). *