On Thu, Jun 12, 2014 at 09:28:08AM -0400, Steven Rostedt wrote: > > + TP_STRUCT__entry( > > + __field(u32, err_seq) > > + __field(u8, etype) > > + __field(u8, sev) > > + __field(u64, pa) > > + __field(u8, pa_mask_lsb) > > + __array(u8, fru_id, sizeof(uuid_le)) > > + __string(fru_text, fru_text) > > + __array(u8, data, sizeof(struct cper_mem_err_compact)) > > The above array works, but I'm wondering why you don't just use the > types themselves? > > That is: > > __field(uuid_le, fru_id) > __field(struct cper_mem_err_compact, data) > Every time when I use above codes I will hit some compiler error like "error: conversion to non-scalar type requested". It looks some data types like above (unless typedef) can't be used in __field. Is it true? How to fix that?
Attachment:
signature.asc
Description: Digital signature