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,
};
*
* 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);