X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-kprobes.c;h=481807de92a2796a36a1033fec6189ca7e2a97ff;hb=9e7e489272e646b39c51e3074de800e928bb5cec;hp=9dd3569b4a794d59f5a7cbec2a060fb1d3cd9a6f;hpb=2dccf128a59b5353176277d01da4eabcc2086211;p=lttng-modules.git diff --git a/probes/lttng-kprobes.c b/probes/lttng-kprobes.c index 9dd3569b..481807de 100644 --- a/probes/lttng-kprobes.c +++ b/probes/lttng-kprobes.c @@ -67,7 +67,7 @@ int lttng_create_kprobe_event(const char *name, struct ltt_event *event) field->type.atype = atype_integer; 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.signedness = is_signed_type(unsigned long); field->type.u.basic.integer.reverse_byte_order = 0; field->type.u.basic.integer.base = 16; field->type.u.basic.integer.encoding = lttng_encode_none;