X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fkernel-probe.h;fp=include%2Flttng%2Fkernel-probe.h;h=8e894fae8714564cfa0d71108f65b35cae30dedc;hp=cdd617dea12625296435615fa72f778f3ff84938;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b diff --git a/include/lttng/kernel-probe.h b/include/lttng/kernel-probe.h index cdd617dea..8e894fae8 100644 --- a/include/lttng/kernel-probe.h +++ b/include/lttng/kernel-probe.h @@ -9,6 +9,7 @@ #define LTTNG_KERNEL_PROBE_H #include + #include #ifdef __cplusplus @@ -18,53 +19,50 @@ extern "C" { struct lttng_kernel_probe_location; enum lttng_kernel_probe_location_status { - LTTNG_KERNEL_PROBE_LOCATION_STATUS_OK = 0, + LTTNG_KERNEL_PROBE_LOCATION_STATUS_OK = 0, /* Invalid parameters provided. */ - LTTNG_KERNEL_PROBE_LOCATION_STATUS_INVALID = -1, + LTTNG_KERNEL_PROBE_LOCATION_STATUS_INVALID = -1, }; enum lttng_kernel_probe_location_type { - LTTNG_KERNEL_PROBE_LOCATION_TYPE_UNKNOWN = -1, + LTTNG_KERNEL_PROBE_LOCATION_TYPE_UNKNOWN = -1, /* Location derived from a symbol and an offset. */ - LTTNG_KERNEL_PROBE_LOCATION_TYPE_SYMBOL_OFFSET = 0, + LTTNG_KERNEL_PROBE_LOCATION_TYPE_SYMBOL_OFFSET = 0, /* Location derived from an address. */ - LTTNG_KERNEL_PROBE_LOCATION_TYPE_ADDRESS = 1, + LTTNG_KERNEL_PROBE_LOCATION_TYPE_ADDRESS = 1, }; /* * Get the type of the kernel probe location. */ LTTNG_EXPORT extern enum lttng_kernel_probe_location_type -lttng_kernel_probe_location_get_type( - const struct lttng_kernel_probe_location *location); +lttng_kernel_probe_location_get_type(const struct lttng_kernel_probe_location *location); /* * Destroy the kernel probe location. */ -LTTNG_EXPORT extern void lttng_kernel_probe_location_destroy( - struct lttng_kernel_probe_location *location); +LTTNG_EXPORT extern void +lttng_kernel_probe_location_destroy(struct lttng_kernel_probe_location *location); /* * Create a symbol derived probe location. * On failure, NULL is returned. */ LTTNG_EXPORT extern struct lttng_kernel_probe_location * -lttng_kernel_probe_location_symbol_create(const char *symbol_name, - uint64_t offset); +lttng_kernel_probe_location_symbol_create(const char *symbol_name, uint64_t offset); /* * Get the symbol name of a symbol derived probe location. */ -LTTNG_EXPORT extern const char *lttng_kernel_probe_location_symbol_get_name( - const struct lttng_kernel_probe_location *location); +LTTNG_EXPORT extern const char * +lttng_kernel_probe_location_symbol_get_name(const struct lttng_kernel_probe_location *location); /* * Get the offset of a symbol derived location. */ LTTNG_EXPORT extern enum lttng_kernel_probe_location_status -lttng_kernel_probe_location_symbol_get_offset( - const struct lttng_kernel_probe_location *location, - uint64_t *offset); +lttng_kernel_probe_location_symbol_get_offset(const struct lttng_kernel_probe_location *location, + uint64_t *offset); /* * Create an address derived probe location. @@ -77,9 +75,8 @@ lttng_kernel_probe_location_address_create(uint64_t address); * Get the address of an address derived probe location. */ LTTNG_EXPORT extern enum lttng_kernel_probe_location_status -lttng_kernel_probe_location_address_get_address( - const struct lttng_kernel_probe_location *location, - uint64_t *offset); +lttng_kernel_probe_location_address_get_address(const struct lttng_kernel_probe_location *location, + uint64_t *offset); #ifdef __cplusplus }