X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=0a12d9be75e4b97be6728bad11727105f4e68b8c;hb=659ed79f6b4a6ebbe7219a0fd4a347d24d62c545;hp=4171cde41c998d123fac3b407a337ec622b42cfe;hpb=806e2684ce24d3772af37ee46c5f0500c7a0723f;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). *