Take care of units in description for ftrace and kprobes
[lttng-modules.git] / probes / lttng-kprobes.c
index 96e7509c328bedb3211e3e3e3dfc4e4d6450f4a8..87806e37240695b6d2452b9e39d22a3f482769f7 100644 (file)
@@ -65,8 +65,8 @@ int lttng_create_kprobe_event(const char *name, struct ltt_event *event)
        }
        field->name = "ip";
        field->type.atype = atype_integer;
-       field->type.u.basic.integer.size = sizeof(unsigned long);
-       field->type.u.basic.integer.alignment = ltt_alignof(unsigned long);
+       field->type.u.basic.integer.size = sizeof(unsigned long) * CHAR_BIT;
+       field->type.u.basic.integer.alignment = ltt_alignof(unsigned long) * CHAR_BIT;
        field->type.u.basic.integer.signedness = 0;
        field->type.u.basic.integer.reverse_byte_order = 0;
        field->type.u.basic.integer.base = 16;
This page took 0.022834 seconds and 4 git commands to generate.