+ TP_STRUCT__entry(__string(name, dev->name ?: "unknown") __field(The contents of the tracepoints in the subsystems are determined by the
+ unsigned int, type) __field(unsigned int, code)
+ __field(int, value) __field(u16, bustype)
+ __field(u16, vendor)
+ __field(u16, product)),
+
subsystem maintainers, but please follow the tracepoint formatting. The
above is horrible. It should look like a structure layout. One wouldn't
write:
struct entry { char *name;
unsigned int type; unsigned int code;
int value; u16 bustype;
u16 vendor;
u16 product; };
That's what the above looks like. It should be instead:
TP_STRUCT__entry(
__string( name, dev->name ?: "unknown" )
__field( unsigned int, type )
__field( unsigned int, code )
__field( int, value )
__field( u16, bustype )
__field( u16, vendor )
__field( u16, product )
),
So the fields can be easily visible and easily reviewed.
Attachment:
OpenPGP_0xC5DA1F3046F40BEE.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature