Cleanup: ust-tracepoint-event.h: extract `__num_fields` in a variable
[lttng-ust.git] / liblttng-ust / lttng-context-ip.c
index 6f3edf83b65903c4a9ff8bbac023fa681ae88c0c..47f5af03f3246eeadc8dfadc767f5c10f35ac095 100644 (file)
@@ -20,6 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
@@ -27,7 +29,7 @@
 #include <lttng/ringbuffer-config.h>
 
 static
-size_t ip_get_size(size_t offset)
+size_t ip_get_size(struct lttng_ctx_field *field, size_t offset)
 {
        size_t size = 0;
 
@@ -69,5 +71,6 @@ int lttng_add_ip_to_ctx(struct lttng_ctx **ctx)
        field->event_field.type.u.basic.integer.encoding = lttng_encode_none;
        field->get_size = ip_get_size;
        field->record = ip_record;
+       lttng_context_update(*ctx);
        return 0;
 }
This page took 0.024493 seconds and 4 git commands to generate.