X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.h;h=19fd5080f5fed73ca6381d60afd161a31c057c3e;hb=df56ddd82ae3886325f93be0dfb01760280e6e02;hp=09d561812d77dcc8cb843046437e16e6d11385d9;hpb=6dccd6c113eb0431a145b92abaf869b85ef7a92f;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index 09d56181..19fd5080 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -30,8 +30,7 @@ #include "lttng-abi.h" #include "lttng-abi-old.h" -#undef is_signed_type -#define is_signed_type(type) (((type)(-1)) < 0) +#define lttng_is_signed_type(type) (((type)(-1)) < 0) struct lttng_channel; struct lttng_session; @@ -71,7 +70,7 @@ struct lttng_enum_entry { { \ .size = sizeof(_type) * CHAR_BIT, \ .alignment = lttng_alignof(_type) * CHAR_BIT, \ - .signedness = is_signed_type(_type), \ + .signedness = lttng_is_signed_type(_type), \ .reverse_byte_order = _byte_order != __BYTE_ORDER, \ .base = _base, \ .encoding = lttng_encode_##_encoding, \ @@ -163,7 +162,8 @@ struct lttng_ctx { }; struct lttng_event_desc { - const char *name; + const char *name; /* lttng-modules name */ + const char *kname; /* Linux kernel name (tracepoints) */ void *probe_callback; const struct lttng_event_ctx *ctx; /* context */ const struct lttng_event_field *fields; /* event payload */