X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fuserspace-probe.h;h=9378eda8a0a149cfb9509b0b1f1256ed88f4f015;hp=c8c1ae43af4850cd4bc9baa72100561d2edc2b53;hb=a94797228bb9f0752e012d67d45f49af0c76d9c3;hpb=f4d0bb2e92e94cb5eb304c8e92afcc804591539d diff --git a/include/lttng/userspace-probe.h b/include/lttng/userspace-probe.h index c8c1ae43a..9378eda8a 100644 --- a/include/lttng/userspace-probe.h +++ b/include/lttng/userspace-probe.h @@ -71,7 +71,9 @@ struct lttng_userspace_probe_location; enum lttng_userspace_probe_location_type { LTTNG_USERSPACE_PROBE_LOCATION_TYPE_UNKNOWN = -1, + /* Traces a function's entry and exit. */ LTTNG_USERSPACE_PROBE_LOCATION_TYPE_FUNCTION = 0, + /* Trace a single point. */ LTTNG_USERSPACE_PROBE_LOCATION_TYPE_TRACEPOINT = 1, }; @@ -126,7 +128,7 @@ extern int lttng_userspace_probe_location_function_get_binary_fd( * * The ownership of the lookup method is NOT transferred to the caller. */ -extern struct lttng_userspace_probe_location_lookup_method * +extern const struct lttng_userspace_probe_location_lookup_method * lttng_userspace_probe_location_get_lookup_method( const struct lttng_userspace_probe_location *location);