X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fkernel-probe-internal.h;fp=include%2Flttng%2Fkernel-probe-internal.h;h=2a655fb806b3259cb8d4a03553a6d439e22feff2;hp=e2889fd78d2b04d034505d806486ba12c78d7ce0;hb=6a751b953a43c566b74818ec6325db0978e16c66;hpb=1aa9c49c60b7d7370ceafc3ac076de423de22b7f diff --git a/include/lttng/kernel-probe-internal.h b/include/lttng/kernel-probe-internal.h index e2889fd78..2a655fb80 100644 --- a/include/lttng/kernel-probe-internal.h +++ b/include/lttng/kernel-probe-internal.h @@ -18,6 +18,7 @@ struct lttng_payload; struct lttng_payload_view; struct lttng_dynamic_buffer; +struct mi_writer; typedef bool (*kernel_probe_location_equal_cb)( const struct lttng_kernel_probe_location *a, @@ -33,6 +34,9 @@ typedef ssize_t (*kernel_probe_location_create_from_payload_cb)( struct lttng_kernel_probe_location **kernel_probe_location); typedef unsigned long (*kernel_probe_location_hash_cb)( const struct lttng_kernel_probe_location *location); +typedef enum lttng_error_code (*kernel_probe_location_mi_serialize_cb)( + const struct lttng_kernel_probe_location *location, + struct mi_writer *writer); struct lttng_kernel_probe_location_comm { /* enum lttng_kernel_probe_location_type */ @@ -66,6 +70,7 @@ struct lttng_kernel_probe_location { kernel_probe_location_equal_cb equal; kernel_probe_location_serialize_cb serialize; kernel_probe_location_hash_cb hash; + kernel_probe_location_mi_serialize_cb mi_serialize; }; struct lttng_kernel_probe_location_symbol { @@ -102,4 +107,9 @@ LTTNG_HIDDEN unsigned long lttng_kernel_probe_location_hash( const struct lttng_kernel_probe_location *location); +LTTNG_HIDDEN +enum lttng_error_code lttng_kernel_probe_location_mi_serialize( + const struct lttng_kernel_probe_location *location, + struct mi_writer *writer); + #endif /* LTTNG_KERNEL_PROBE_INTERNAL_H */