diff options
Diffstat (limited to 'kernel-headers/linux/kct.h')
| -rw-r--r-- | kernel-headers/linux/kct.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kernel-headers/linux/kct.h b/kernel-headers/linux/kct.h index e0bed69..2fb92c0 100644 --- a/kernel-headers/linux/kct.h +++ b/kernel-headers/linux/kct.h @@ -19,7 +19,7 @@ #ifndef KCT_H_ #define KCT_H_ #include <linux/netlink.h> -#define EV_FLAGS_PRIORITY_LOW (1 << 0) +#define EV_FLAGS_PRIORITY_LOW (1<<0) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef MAX_SB_N #define MAX_SB_N 32 @@ -32,67 +32,67 @@ #define ATTCHMT_ALIGN 4U /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum ct_ev_type { - CT_EV_STAT, - CT_EV_INFO, - CT_EV_ERROR, + CT_EV_STAT, + CT_EV_INFO, + CT_EV_ERROR, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - CT_EV_CRASH, - CT_EV_LAST + CT_EV_CRASH, + CT_EV_LAST }; enum ct_attchmt_type { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - CT_ATTCHMT_DATA0, - CT_ATTCHMT_DATA1, - CT_ATTCHMT_DATA2, - CT_ATTCHMT_DATA3, + CT_ATTCHMT_DATA0, + CT_ATTCHMT_DATA1, + CT_ATTCHMT_DATA2, + CT_ATTCHMT_DATA3, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - CT_ATTCHMT_DATA4, - CT_ATTCHMT_DATA5, - CT_ATTCHMT_BINARY, - CT_ATTCHMT_FILELIST, + CT_ATTCHMT_DATA4, + CT_ATTCHMT_DATA5, + CT_ATTCHMT_BINARY, + CT_ATTCHMT_FILELIST, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - CT_ATTCHMT_ADDITIONAL + CT_ATTCHMT_ADDITIONAL }; #define CT_ADDITIONAL_NONE 0 -#define CT_ADDITIONAL_APLOG (1 << 0) +#define CT_ADDITIONAL_APLOG (1<<0) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define CT_ADDITIONAL_LAST_KMSG (1 << 1) -#define CT_ADDITIONAL_FWMSG (1 << 2) +#define CT_ADDITIONAL_LAST_KMSG (1<<1) +#define CT_ADDITIONAL_FWMSG (1<<2) struct ct_attchmt { - __u32 size; + __u32 size; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum ct_attchmt_type type; - char data[]; + enum ct_attchmt_type type; + char data[]; } __aligned(4); struct ct_event { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u64 timestamp; - char submitter_name[MAX_SB_N]; - char ev_name[MAX_EV_N]; - enum ct_ev_type type; + __u64 timestamp; + char submitter_name[MAX_SB_N]; + char ev_name[MAX_EV_N]; + enum ct_ev_type type; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 attchmt_size; - __u32 flags; - struct ct_attchmt attachments[]; + __u32 attchmt_size; + __u32 flags; + struct ct_attchmt attachments[]; } __aligned(4); /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ enum kct_nlmsg_type { - KCT_EVENT, - KCT_SET_PID = 4200, + KCT_EVENT, + KCT_SET_PID = 4200, }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct kct_packet { - struct nlmsghdr nlh; - struct ct_event event; + struct nlmsghdr nlh; + struct ct_event event; }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define ATTCHMT_ALIGNMENT 4 #ifndef KCT_ALIGN -#define __KCT_ALIGN_MASK(x,mask) (((x) + (mask)) & ~(mask)) -#define __KCT_ALIGN(x,a) __KCT_ALIGN_MASK(x, (typeof(x)) (a) - 1) +#define __KCT_ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) +#define __KCT_ALIGN(x, a) __KCT_ALIGN_MASK(x, (typeof(x))(a) - 1) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define KCT_ALIGN(x,a) __KCT_ALIGN((x), (a)) +#define KCT_ALIGN(x, a) __KCT_ALIGN((x), (a)) #endif -#define foreach_attchmt(Event,Attchmt) if((Event)->attchmt_size) for((Attchmt) = (Event)->attachments; (Attchmt) < (typeof(Attchmt)) (((char *) (Event)->attachments) + (Event)->attchmt_size); (Attchmt) = (typeof(Attchmt)) KCT_ALIGN(((size_t) (Attchmt)) + sizeof(* (Attchmt)) + (Attchmt)->size, ATTCHMT_ALIGNMENT)) +#define foreach_attchmt(Event, Attchmt) if ((Event)->attchmt_size) for ((Attchmt) = (Event)->attachments; (Attchmt) < (typeof(Attchmt))(((char *) (Event)->attachments) + (Event)->attchmt_size); (Attchmt) = (typeof(Attchmt))KCT_ALIGN(((size_t)(Attchmt)) + sizeof(*(Attchmt)) + (Attchmt)->size, ATTCHMT_ALIGNMENT)) #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
