On Fri, 17 Jun 2016 15:47:46 +0100 James Hogan <james.hogan@xxxxxxxxxx> wrote: > > BTW, I'm curious. Can you show me what you see in: > > > > /sys/kernel/debug/tracing/events/kvm/kvm_exit/format > > Sure: > > name: kvm_exit > ID: 472 > format: > field:unsigned short common_type; offset:0; size:2; signed:0; > field:unsigned char common_flags; offset:2; size:1; signed:0; > field:unsigned char common_preempt_count; offset:3; size:1; signed:0; > field:int common_pid; offset:4; size:4; signed:1; > > field:unsigned long pc; offset:8; size:4; signed:0; > field:unsigned int reason; offset:12; size:4; signed:0; > > print fmt: "[%s]PC: 0x%08lx", __print_symbolic(REC->reason, { 0, "Interrupt" }, { 1, "TLB Mod" }, { 2, "TLB Miss (LD)" }, { 3, "TLB Miss (ST)" }, { 4, "Address Error (LD)" }, { 5, "Address Err (ST)" }, { 8, "System Call" }, { 9, "Break Inst" }, { 10, "Reserved Inst" }, { 11, "COP0/1 Unusable" }, { 13, "Trap Inst" }, { 14, "MSA FPE" }, { 15, "FPE" }, { 21, "MSA Disabled" }, { 32, "WAIT" }, { 33, "CACHE" }, { 34, "Signal" }), REC->pc OK, cool. I just wanted to make sure that there were numbers there. Otherwise you would need to use the TRACE_DEFINE_ENUM() trick like what is done in include/trace/events/writeback.h -- Steve