Docs: distinction between function and tracepoint probe locations
[lttng-tools.git] / include / lttng / userspace-probe.h
index c8c1ae43af4850cd4bc9baa72100561d2edc2b53..9378eda8a0a149cfb9509b0b1f1256ed88f4f015 100644 (file)
@@ -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);
 
This page took 0.023149 seconds and 4 git commands to generate.