#undef TRACE_SYSTEM #define TRACE_SYSTEM spmi #if !defined(_TRACE_SPMI_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SPMI_H #include #include /* * drivers/spmi/spmi.c */ TRACE_EVENT(spmi_write_begin, TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf), TP_ARGS(opcode, sid, addr, len, buf), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) __field ( u8, len ) __dynamic_array ( u8, buf, len + 1 ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; __entry->len = len + 1; memcpy(__get_dynamic_array(buf), buf, len + 1); ), TP_printk("opc=%d sid=%02d addr=0x%04x len=%d buf=0x[%*phD]", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr, (int)__entry->len, (int)__entry->len, __get_dynamic_array(buf)) ); TRACE_EVENT(spmi_write_end, TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret), TP_ARGS(opcode, sid, addr, ret), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) __field ( int, ret ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; __entry->ret = ret; ), TP_printk("opc=%d sid=%02d addr=0x%04x ret=%d", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr, __entry->ret) ); TRACE_EVENT(spmi_read_begin, TP_PROTO(u8 opcode, u8 sid, u16 addr), TP_ARGS(opcode, sid, addr), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; ), TP_printk("opc=%d sid=%02d addr=0x%04x", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr) ); TRACE_EVENT(spmi_read_end, TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret, u8 len, const u8 *buf), TP_ARGS(opcode, sid, addr, ret, len, buf), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) __field ( int, ret ) __field ( u8, len ) __dynamic_array ( u8, buf, len + 1 ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; __entry->ret = ret; __entry->len = len + 1; memcpy(__get_dynamic_array(buf), buf, len + 1); ), TP_printk("opc=%d sid=%02d addr=0x%04x ret=%d len=%02d buf=0x[%*phD]", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr, __entry->ret, (int)__entry->len, (int)__entry->len, __get_dynamic_array(buf)) ); TRACE_EVENT(spmi_cmd, TP_PROTO(u8 opcode, u8 sid, int ret), TP_ARGS(opcode, sid, ret), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( int, ret ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->ret = ret; ), TP_printk("opc=%d sid=%02d ret=%d", (int)__entry->opcode, (int)__entry->sid, ret) ); #endif /* _TRACE_SPMI_H */ /* This part must be outside protection */ #include 5space:mode:
authorBorislav Petkov <bp@suse.de>2016-12-09 19:29:08 +0100
committerThomas Gleixner <tglx@linutronix.de>2016-12-09 21:23:20 +0100
commita588b9836447ac683a8f63949ad55265813826f5 (patch)
tree829b758a50fe91fd13c7792e02e34a6e56abc1f9 /Documentation
parent7a3e686e1bb57c34f73d3f19d620fe29035a6c99 (diff)
x86/cpufeature: Provide helper to set bugs bits
Will be used in a later patch to set bug bits for bugs which need late detection. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20161209182912.2726-2-bp@alien8.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation')