iPXE
Data Structures | Macros | Functions
trace.h File Reference

Go to the source code of this file.

Data Structures

struct  t_rec
 
struct  t_buf
 
struct  t_info
 

Macros

#define TRACE_EXTRA_MAX   7
 
#define TRACE_EXTRA_SHIFT   28
 
#define TRC_CLS_SHIFT   16
 
#define TRC_GEN   0x0001f000 /* General trace */
 
#define TRC_SCHED   0x0002f000 /* Xen Scheduler trace */
 
#define TRC_DOM0OP   0x0004f000 /* Xen DOM0 operation trace */
 
#define TRC_HVM   0x0008f000 /* Xen HVM trace */
 
#define TRC_MEM   0x0010f000 /* Xen memory trace */
 
#define TRC_PV   0x0020f000 /* Xen PV traces */
 
#define TRC_SHADOW   0x0040f000 /* Xen shadow tracing */
 
#define TRC_HW   0x0080f000 /* Xen hardware-related traces */
 
#define TRC_GUEST   0x0800f000 /* Guest-generated traces */
 
#define TRC_ALL   0x0ffff000
 
#define TRC_HD_TO_EVENT(x)   ((x)&0x0fffffff)
 
#define TRC_HD_CYCLE_FLAG   (1UL<<31)
 
#define TRC_HD_INCLUDES_CYCLE_COUNT(x)   ( !!( (x) & TRC_HD_CYCLE_FLAG ) )
 
#define TRC_HD_EXTRA(x)   (((x)>>TRACE_EXTRA_SHIFT)&TRACE_EXTRA_MAX)
 
#define TRC_SUBCLS_SHIFT   12
 
#define TRC_HVM_ENTRYEXIT   0x00081000 /* VMENTRY and #VMEXIT */
 
#define TRC_HVM_HANDLER   0x00082000 /* various HVM handlers */
 
#define TRC_HVM_EMUL   0x00084000 /* emulated devices */
 
#define TRC_SCHED_MIN   0x00021000 /* Just runstate changes */
 
#define TRC_SCHED_CLASS   0x00022000 /* Scheduler-specific */
 
#define TRC_SCHED_VERBOSE   0x00028000 /* More inclusive scheduling */
 
#define TRC_SCHED_ID_BITS   3
 
#define TRC_SCHED_ID_SHIFT   (TRC_SUBCLS_SHIFT - TRC_SCHED_ID_BITS)
 
#define TRC_SCHED_ID_MASK   (((1UL<<TRC_SCHED_ID_BITS) - 1) << TRC_SCHED_ID_SHIFT)
 
#define TRC_SCHED_EVT_MASK   (~(TRC_SCHED_ID_MASK))
 
#define TRC_SCHED_CSCHED   0
 
#define TRC_SCHED_CSCHED2   1
 
#define TRC_SCHED_SEDF   2
 
#define TRC_SCHED_ARINC653   3
 
#define TRC_SCHED_CLASS_EVT(_c, _e)
 
#define TRC_HW_PM   0x00801000 /* Power management traces */
 
#define TRC_HW_IRQ   0x00802000 /* Traces relating to the handling of IRQs */
 
#define TRC_LOST_RECORDS   (TRC_GEN + 1)
 
#define TRC_TRACE_WRAP_BUFFER   (TRC_GEN + 2)
 
#define TRC_TRACE_CPU_CHANGE   (TRC_GEN + 3)
 
#define TRC_SCHED_RUNSTATE_CHANGE   (TRC_SCHED_MIN + 1)
 
#define TRC_SCHED_CONTINUE_RUNNING   (TRC_SCHED_MIN + 2)
 
#define TRC_SCHED_DOM_ADD   (TRC_SCHED_VERBOSE + 1)
 
#define TRC_SCHED_DOM_REM   (TRC_SCHED_VERBOSE + 2)
 
#define TRC_SCHED_SLEEP   (TRC_SCHED_VERBOSE + 3)
 
#define TRC_SCHED_WAKE   (TRC_SCHED_VERBOSE + 4)
 
#define TRC_SCHED_YIELD   (TRC_SCHED_VERBOSE + 5)
 
#define TRC_SCHED_BLOCK   (TRC_SCHED_VERBOSE + 6)
 
#define TRC_SCHED_SHUTDOWN   (TRC_SCHED_VERBOSE + 7)
 
#define TRC_SCHED_CTL   (TRC_SCHED_VERBOSE + 8)
 
#define TRC_SCHED_ADJDOM   (TRC_SCHED_VERBOSE + 9)
 
#define TRC_SCHED_SWITCH   (TRC_SCHED_VERBOSE + 10)
 
#define TRC_SCHED_S_TIMER_FN   (TRC_SCHED_VERBOSE + 11)
 
#define TRC_SCHED_T_TIMER_FN   (TRC_SCHED_VERBOSE + 12)
 
#define TRC_SCHED_DOM_TIMER_FN   (TRC_SCHED_VERBOSE + 13)
 
#define TRC_SCHED_SWITCH_INFPREV   (TRC_SCHED_VERBOSE + 14)
 
#define TRC_SCHED_SWITCH_INFNEXT   (TRC_SCHED_VERBOSE + 15)
 
#define TRC_SCHED_SHUTDOWN_CODE   (TRC_SCHED_VERBOSE + 16)
 
#define TRC_MEM_PAGE_GRANT_MAP   (TRC_MEM + 1)
 
#define TRC_MEM_PAGE_GRANT_UNMAP   (TRC_MEM + 2)
 
#define TRC_MEM_PAGE_GRANT_TRANSFER   (TRC_MEM + 3)
 
#define TRC_MEM_SET_P2M_ENTRY   (TRC_MEM + 4)
 
#define TRC_MEM_DECREASE_RESERVATION   (TRC_MEM + 5)
 
#define TRC_MEM_POD_POPULATE   (TRC_MEM + 16)
 
#define TRC_MEM_POD_ZERO_RECLAIM   (TRC_MEM + 17)
 
#define TRC_MEM_POD_SUPERPAGE_SPLINTER   (TRC_MEM + 18)
 
#define TRC_PV_ENTRY   0x00201000 /* Hypervisor entry points for PV guests. */
 
#define TRC_PV_SUBCALL   0x00202000 /* Sub-call in a multicall hypercall */
 
#define TRC_PV_HYPERCALL   (TRC_PV_ENTRY + 1)
 
#define TRC_PV_TRAP   (TRC_PV_ENTRY + 3)
 
#define TRC_PV_PAGE_FAULT   (TRC_PV_ENTRY + 4)
 
#define TRC_PV_FORCED_INVALID_OP   (TRC_PV_ENTRY + 5)
 
#define TRC_PV_EMULATE_PRIVOP   (TRC_PV_ENTRY + 6)
 
#define TRC_PV_EMULATE_4GB   (TRC_PV_ENTRY + 7)
 
#define TRC_PV_MATH_STATE_RESTORE   (TRC_PV_ENTRY + 8)
 
#define TRC_PV_PAGING_FIXUP   (TRC_PV_ENTRY + 9)
 
#define TRC_PV_GDT_LDT_MAPPING_FAULT   (TRC_PV_ENTRY + 10)
 
#define TRC_PV_PTWR_EMULATION   (TRC_PV_ENTRY + 11)
 
#define TRC_PV_PTWR_EMULATION_PAE   (TRC_PV_ENTRY + 12)
 
#define TRC_PV_HYPERCALL_V2   (TRC_PV_ENTRY + 13)
 
#define TRC_PV_HYPERCALL_SUBCALL   (TRC_PV_SUBCALL + 14)
 
#define TRC_PV_HYPERCALL_V2_ARG_32(i)   (0x1 << (20 + 2*(i)))
 
#define TRC_PV_HYPERCALL_V2_ARG_64(i)   (0x2 << (20 + 2*(i)))
 
#define TRC_PV_HYPERCALL_V2_ARG_MASK   (0xfff00000)
 
#define TRC_SHADOW_NOT_SHADOW   (TRC_SHADOW + 1)
 
#define TRC_SHADOW_FAST_PROPAGATE   (TRC_SHADOW + 2)
 
#define TRC_SHADOW_FAST_MMIO   (TRC_SHADOW + 3)
 
#define TRC_SHADOW_FALSE_FAST_PATH   (TRC_SHADOW + 4)
 
#define TRC_SHADOW_MMIO   (TRC_SHADOW + 5)
 
#define TRC_SHADOW_FIXUP   (TRC_SHADOW + 6)
 
#define TRC_SHADOW_DOMF_DYING   (TRC_SHADOW + 7)
 
#define TRC_SHADOW_EMULATE   (TRC_SHADOW + 8)
 
#define TRC_SHADOW_EMULATE_UNSHADOW_USER   (TRC_SHADOW + 9)
 
#define TRC_SHADOW_EMULATE_UNSHADOW_EVTINJ   (TRC_SHADOW + 10)
 
#define TRC_SHADOW_EMULATE_UNSHADOW_UNHANDLED   (TRC_SHADOW + 11)
 
#define TRC_SHADOW_WRMAP_BF   (TRC_SHADOW + 12)
 
#define TRC_SHADOW_PREALLOC_UNPIN   (TRC_SHADOW + 13)
 
#define TRC_SHADOW_RESYNC_FULL   (TRC_SHADOW + 14)
 
#define TRC_SHADOW_RESYNC_ONLY   (TRC_SHADOW + 15)
 
#define TRC_HVM_NESTEDFLAG   (0x400)
 
#define TRC_HVM_VMENTRY   (TRC_HVM_ENTRYEXIT + 0x01)
 
#define TRC_HVM_VMEXIT   (TRC_HVM_ENTRYEXIT + 0x02)
 
#define TRC_HVM_VMEXIT64   (TRC_HVM_ENTRYEXIT + TRC_64_FLAG + 0x02)
 
#define TRC_HVM_PF_XEN   (TRC_HVM_HANDLER + 0x01)
 
#define TRC_HVM_PF_XEN64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x01)
 
#define TRC_HVM_PF_INJECT   (TRC_HVM_HANDLER + 0x02)
 
#define TRC_HVM_PF_INJECT64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x02)
 
#define TRC_HVM_INJ_EXC   (TRC_HVM_HANDLER + 0x03)
 
#define TRC_HVM_INJ_VIRQ   (TRC_HVM_HANDLER + 0x04)
 
#define TRC_HVM_REINJ_VIRQ   (TRC_HVM_HANDLER + 0x05)
 
#define TRC_HVM_IO_READ   (TRC_HVM_HANDLER + 0x06)
 
#define TRC_HVM_IO_WRITE   (TRC_HVM_HANDLER + 0x07)
 
#define TRC_HVM_CR_READ   (TRC_HVM_HANDLER + 0x08)
 
#define TRC_HVM_CR_READ64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x08)
 
#define TRC_HVM_CR_WRITE   (TRC_HVM_HANDLER + 0x09)
 
#define TRC_HVM_CR_WRITE64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x09)
 
#define TRC_HVM_DR_READ   (TRC_HVM_HANDLER + 0x0A)
 
#define TRC_HVM_DR_WRITE   (TRC_HVM_HANDLER + 0x0B)
 
#define TRC_HVM_MSR_READ   (TRC_HVM_HANDLER + 0x0C)
 
#define TRC_HVM_MSR_WRITE   (TRC_HVM_HANDLER + 0x0D)
 
#define TRC_HVM_CPUID   (TRC_HVM_HANDLER + 0x0E)
 
#define TRC_HVM_INTR   (TRC_HVM_HANDLER + 0x0F)
 
#define TRC_HVM_NMI   (TRC_HVM_HANDLER + 0x10)
 
#define TRC_HVM_SMI   (TRC_HVM_HANDLER + 0x11)
 
#define TRC_HVM_VMMCALL   (TRC_HVM_HANDLER + 0x12)
 
#define TRC_HVM_HLT   (TRC_HVM_HANDLER + 0x13)
 
#define TRC_HVM_INVLPG   (TRC_HVM_HANDLER + 0x14)
 
#define TRC_HVM_INVLPG64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x14)
 
#define TRC_HVM_MCE   (TRC_HVM_HANDLER + 0x15)
 
#define TRC_HVM_IOPORT_READ   (TRC_HVM_HANDLER + 0x16)
 
#define TRC_HVM_IOMEM_READ   (TRC_HVM_HANDLER + 0x17)
 
#define TRC_HVM_CLTS   (TRC_HVM_HANDLER + 0x18)
 
#define TRC_HVM_LMSW   (TRC_HVM_HANDLER + 0x19)
 
#define TRC_HVM_LMSW64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x19)
 
#define TRC_HVM_RDTSC   (TRC_HVM_HANDLER + 0x1a)
 
#define TRC_HVM_INTR_WINDOW   (TRC_HVM_HANDLER + 0x20)
 
#define TRC_HVM_NPF   (TRC_HVM_HANDLER + 0x21)
 
#define TRC_HVM_REALMODE_EMULATE   (TRC_HVM_HANDLER + 0x22)
 
#define TRC_HVM_TRAP   (TRC_HVM_HANDLER + 0x23)
 
#define TRC_HVM_TRAP_DEBUG   (TRC_HVM_HANDLER + 0x24)
 
#define TRC_HVM_VLAPIC   (TRC_HVM_HANDLER + 0x25)
 
#define TRC_HVM_IOPORT_WRITE   (TRC_HVM_HANDLER + 0x216)
 
#define TRC_HVM_IOMEM_WRITE   (TRC_HVM_HANDLER + 0x217)
 
#define TRC_HVM_EMUL_HPET_START_TIMER   (TRC_HVM_EMUL + 0x1)
 
#define TRC_HVM_EMUL_PIT_START_TIMER   (TRC_HVM_EMUL + 0x2)
 
#define TRC_HVM_EMUL_RTC_START_TIMER   (TRC_HVM_EMUL + 0x3)
 
#define TRC_HVM_EMUL_LAPIC_START_TIMER   (TRC_HVM_EMUL + 0x4)
 
#define TRC_HVM_EMUL_HPET_STOP_TIMER   (TRC_HVM_EMUL + 0x5)
 
#define TRC_HVM_EMUL_PIT_STOP_TIMER   (TRC_HVM_EMUL + 0x6)
 
#define TRC_HVM_EMUL_RTC_STOP_TIMER   (TRC_HVM_EMUL + 0x7)
 
#define TRC_HVM_EMUL_LAPIC_STOP_TIMER   (TRC_HVM_EMUL + 0x8)
 
#define TRC_HVM_EMUL_PIT_TIMER_CB   (TRC_HVM_EMUL + 0x9)
 
#define TRC_HVM_EMUL_LAPIC_TIMER_CB   (TRC_HVM_EMUL + 0xA)
 
#define TRC_HVM_EMUL_PIC_INT_OUTPUT   (TRC_HVM_EMUL + 0xB)
 
#define TRC_HVM_EMUL_PIC_KICK   (TRC_HVM_EMUL + 0xC)
 
#define TRC_HVM_EMUL_PIC_INTACK   (TRC_HVM_EMUL + 0xD)
 
#define TRC_HVM_EMUL_PIC_POSEDGE   (TRC_HVM_EMUL + 0xE)
 
#define TRC_HVM_EMUL_PIC_NEGEDGE   (TRC_HVM_EMUL + 0xF)
 
#define TRC_HVM_EMUL_PIC_PEND_IRQ_CALL   (TRC_HVM_EMUL + 0x10)
 
#define TRC_HVM_EMUL_LAPIC_PIC_INTR   (TRC_HVM_EMUL + 0x11)
 
#define TRC_PM_FREQ_CHANGE   (TRC_HW_PM + 0x01)
 
#define TRC_PM_IDLE_ENTRY   (TRC_HW_PM + 0x02)
 
#define TRC_PM_IDLE_EXIT   (TRC_HW_PM + 0x03)
 
#define TRC_HW_IRQ_MOVE_CLEANUP_DELAY   (TRC_HW_IRQ + 0x1)
 
#define TRC_HW_IRQ_MOVE_CLEANUP   (TRC_HW_IRQ + 0x2)
 
#define TRC_HW_IRQ_BIND_VECTOR   (TRC_HW_IRQ + 0x3)
 
#define TRC_HW_IRQ_CLEAR_VECTOR   (TRC_HW_IRQ + 0x4)
 
#define TRC_HW_IRQ_MOVE_FINISH   (TRC_HW_IRQ + 0x5)
 
#define TRC_HW_IRQ_ASSIGN_VECTOR   (TRC_HW_IRQ + 0x6)
 
#define TRC_HW_IRQ_UNMAPPED_VECTOR   (TRC_HW_IRQ + 0x7)
 
#define TRC_HW_IRQ_HANDLED   (TRC_HW_IRQ + 0x8)
 
#define TRC_64_FLAG   0x100 /* Addresses are 64 bits (instead of 32 bits) */
 

Functions

 FILE_LICENCE (MIT)
 

Macro Definition Documentation

◆ TRACE_EXTRA_MAX

#define TRACE_EXTRA_MAX   7

Definition at line 31 of file trace.h.

◆ TRACE_EXTRA_SHIFT

#define TRACE_EXTRA_SHIFT   28

Definition at line 32 of file trace.h.

◆ TRC_CLS_SHIFT

#define TRC_CLS_SHIFT   16

Definition at line 35 of file trace.h.

◆ TRC_GEN

#define TRC_GEN   0x0001f000 /* General trace */

Definition at line 36 of file trace.h.

◆ TRC_SCHED

#define TRC_SCHED   0x0002f000 /* Xen Scheduler trace */

Definition at line 37 of file trace.h.

◆ TRC_DOM0OP

#define TRC_DOM0OP   0x0004f000 /* Xen DOM0 operation trace */

Definition at line 38 of file trace.h.

◆ TRC_HVM

#define TRC_HVM   0x0008f000 /* Xen HVM trace */

Definition at line 39 of file trace.h.

◆ TRC_MEM

#define TRC_MEM   0x0010f000 /* Xen memory trace */

Definition at line 40 of file trace.h.

◆ TRC_PV

#define TRC_PV   0x0020f000 /* Xen PV traces */

Definition at line 41 of file trace.h.

◆ TRC_SHADOW

#define TRC_SHADOW   0x0040f000 /* Xen shadow tracing */

Definition at line 42 of file trace.h.

◆ TRC_HW

#define TRC_HW   0x0080f000 /* Xen hardware-related traces */

Definition at line 43 of file trace.h.

◆ TRC_GUEST

#define TRC_GUEST   0x0800f000 /* Guest-generated traces */

Definition at line 44 of file trace.h.

◆ TRC_ALL

#define TRC_ALL   0x0ffff000

Definition at line 45 of file trace.h.

◆ TRC_HD_TO_EVENT

#define TRC_HD_TO_EVENT (   x)    ((x)&0x0fffffff)

Definition at line 46 of file trace.h.

◆ TRC_HD_CYCLE_FLAG

#define TRC_HD_CYCLE_FLAG   (1UL<<31)

Definition at line 47 of file trace.h.

◆ TRC_HD_INCLUDES_CYCLE_COUNT

#define TRC_HD_INCLUDES_CYCLE_COUNT (   x)    ( !!( (x) & TRC_HD_CYCLE_FLAG ) )

Definition at line 48 of file trace.h.

◆ TRC_HD_EXTRA

#define TRC_HD_EXTRA (   x)    (((x)>>TRACE_EXTRA_SHIFT)&TRACE_EXTRA_MAX)

Definition at line 49 of file trace.h.

◆ TRC_SUBCLS_SHIFT

#define TRC_SUBCLS_SHIFT   12

Definition at line 52 of file trace.h.

◆ TRC_HVM_ENTRYEXIT

#define TRC_HVM_ENTRYEXIT   0x00081000 /* VMENTRY and #VMEXIT */

Definition at line 55 of file trace.h.

◆ TRC_HVM_HANDLER

#define TRC_HVM_HANDLER   0x00082000 /* various HVM handlers */

Definition at line 56 of file trace.h.

◆ TRC_HVM_EMUL

#define TRC_HVM_EMUL   0x00084000 /* emulated devices */

Definition at line 57 of file trace.h.

◆ TRC_SCHED_MIN

#define TRC_SCHED_MIN   0x00021000 /* Just runstate changes */

Definition at line 59 of file trace.h.

◆ TRC_SCHED_CLASS

#define TRC_SCHED_CLASS   0x00022000 /* Scheduler-specific */

Definition at line 60 of file trace.h.

◆ TRC_SCHED_VERBOSE

#define TRC_SCHED_VERBOSE   0x00028000 /* More inclusive scheduling */

Definition at line 61 of file trace.h.

◆ TRC_SCHED_ID_BITS

#define TRC_SCHED_ID_BITS   3

Definition at line 72 of file trace.h.

◆ TRC_SCHED_ID_SHIFT

#define TRC_SCHED_ID_SHIFT   (TRC_SUBCLS_SHIFT - TRC_SCHED_ID_BITS)

Definition at line 73 of file trace.h.

◆ TRC_SCHED_ID_MASK

#define TRC_SCHED_ID_MASK   (((1UL<<TRC_SCHED_ID_BITS) - 1) << TRC_SCHED_ID_SHIFT)

Definition at line 74 of file trace.h.

◆ TRC_SCHED_EVT_MASK

#define TRC_SCHED_EVT_MASK   (~(TRC_SCHED_ID_MASK))

Definition at line 75 of file trace.h.

◆ TRC_SCHED_CSCHED

#define TRC_SCHED_CSCHED   0

Definition at line 78 of file trace.h.

◆ TRC_SCHED_CSCHED2

#define TRC_SCHED_CSCHED2   1

Definition at line 79 of file trace.h.

◆ TRC_SCHED_SEDF

#define TRC_SCHED_SEDF   2

Definition at line 80 of file trace.h.

◆ TRC_SCHED_ARINC653

#define TRC_SCHED_ARINC653   3

Definition at line 81 of file trace.h.

◆ TRC_SCHED_CLASS_EVT

#define TRC_SCHED_CLASS_EVT (   _c,
  _e 
)
Value:
((TRC_SCHED_##_c << TRC_SCHED_ID_SHIFT) & TRC_SCHED_ID_MASK) ) + \
#define TRC_SCHED_ID_MASK
Definition: trace.h:74
#define TRC_SCHED_ID_SHIFT
Definition: trace.h:73
#define TRC_SCHED_CLASS
Definition: trace.h:60
#define TRC_SCHED_EVT_MASK
Definition: trace.h:75

Definition at line 84 of file trace.h.

◆ TRC_HW_PM

#define TRC_HW_PM   0x00801000 /* Power management traces */

Definition at line 90 of file trace.h.

◆ TRC_HW_IRQ

#define TRC_HW_IRQ   0x00802000 /* Traces relating to the handling of IRQs */

Definition at line 91 of file trace.h.

◆ TRC_LOST_RECORDS

#define TRC_LOST_RECORDS   (TRC_GEN + 1)

Definition at line 94 of file trace.h.

◆ TRC_TRACE_WRAP_BUFFER

#define TRC_TRACE_WRAP_BUFFER   (TRC_GEN + 2)

Definition at line 95 of file trace.h.

◆ TRC_TRACE_CPU_CHANGE

#define TRC_TRACE_CPU_CHANGE   (TRC_GEN + 3)

Definition at line 96 of file trace.h.

◆ TRC_SCHED_RUNSTATE_CHANGE

#define TRC_SCHED_RUNSTATE_CHANGE   (TRC_SCHED_MIN + 1)

Definition at line 98 of file trace.h.

◆ TRC_SCHED_CONTINUE_RUNNING

#define TRC_SCHED_CONTINUE_RUNNING   (TRC_SCHED_MIN + 2)

Definition at line 99 of file trace.h.

◆ TRC_SCHED_DOM_ADD

#define TRC_SCHED_DOM_ADD   (TRC_SCHED_VERBOSE + 1)

Definition at line 100 of file trace.h.

◆ TRC_SCHED_DOM_REM

#define TRC_SCHED_DOM_REM   (TRC_SCHED_VERBOSE + 2)

Definition at line 101 of file trace.h.

◆ TRC_SCHED_SLEEP

#define TRC_SCHED_SLEEP   (TRC_SCHED_VERBOSE + 3)

Definition at line 102 of file trace.h.

◆ TRC_SCHED_WAKE

#define TRC_SCHED_WAKE   (TRC_SCHED_VERBOSE + 4)

Definition at line 103 of file trace.h.

◆ TRC_SCHED_YIELD

#define TRC_SCHED_YIELD   (TRC_SCHED_VERBOSE + 5)

Definition at line 104 of file trace.h.

◆ TRC_SCHED_BLOCK

#define TRC_SCHED_BLOCK   (TRC_SCHED_VERBOSE + 6)

Definition at line 105 of file trace.h.

◆ TRC_SCHED_SHUTDOWN

#define TRC_SCHED_SHUTDOWN   (TRC_SCHED_VERBOSE + 7)

Definition at line 106 of file trace.h.

◆ TRC_SCHED_CTL

#define TRC_SCHED_CTL   (TRC_SCHED_VERBOSE + 8)

Definition at line 107 of file trace.h.

◆ TRC_SCHED_ADJDOM

#define TRC_SCHED_ADJDOM   (TRC_SCHED_VERBOSE + 9)

Definition at line 108 of file trace.h.

◆ TRC_SCHED_SWITCH

#define TRC_SCHED_SWITCH   (TRC_SCHED_VERBOSE + 10)

Definition at line 109 of file trace.h.

◆ TRC_SCHED_S_TIMER_FN

#define TRC_SCHED_S_TIMER_FN   (TRC_SCHED_VERBOSE + 11)

Definition at line 110 of file trace.h.

◆ TRC_SCHED_T_TIMER_FN

#define TRC_SCHED_T_TIMER_FN   (TRC_SCHED_VERBOSE + 12)

Definition at line 111 of file trace.h.

◆ TRC_SCHED_DOM_TIMER_FN

#define TRC_SCHED_DOM_TIMER_FN   (TRC_SCHED_VERBOSE + 13)

Definition at line 112 of file trace.h.

◆ TRC_SCHED_SWITCH_INFPREV

#define TRC_SCHED_SWITCH_INFPREV   (TRC_SCHED_VERBOSE + 14)

Definition at line 113 of file trace.h.

◆ TRC_SCHED_SWITCH_INFNEXT

#define TRC_SCHED_SWITCH_INFNEXT   (TRC_SCHED_VERBOSE + 15)

Definition at line 114 of file trace.h.

◆ TRC_SCHED_SHUTDOWN_CODE

#define TRC_SCHED_SHUTDOWN_CODE   (TRC_SCHED_VERBOSE + 16)

Definition at line 115 of file trace.h.

◆ TRC_MEM_PAGE_GRANT_MAP

#define TRC_MEM_PAGE_GRANT_MAP   (TRC_MEM + 1)

Definition at line 117 of file trace.h.

◆ TRC_MEM_PAGE_GRANT_UNMAP

#define TRC_MEM_PAGE_GRANT_UNMAP   (TRC_MEM + 2)

Definition at line 118 of file trace.h.

◆ TRC_MEM_PAGE_GRANT_TRANSFER

#define TRC_MEM_PAGE_GRANT_TRANSFER   (TRC_MEM + 3)

Definition at line 119 of file trace.h.

◆ TRC_MEM_SET_P2M_ENTRY

#define TRC_MEM_SET_P2M_ENTRY   (TRC_MEM + 4)

Definition at line 120 of file trace.h.

◆ TRC_MEM_DECREASE_RESERVATION

#define TRC_MEM_DECREASE_RESERVATION   (TRC_MEM + 5)

Definition at line 121 of file trace.h.

◆ TRC_MEM_POD_POPULATE

#define TRC_MEM_POD_POPULATE   (TRC_MEM + 16)

Definition at line 122 of file trace.h.

◆ TRC_MEM_POD_ZERO_RECLAIM

#define TRC_MEM_POD_ZERO_RECLAIM   (TRC_MEM + 17)

Definition at line 123 of file trace.h.

◆ TRC_MEM_POD_SUPERPAGE_SPLINTER

#define TRC_MEM_POD_SUPERPAGE_SPLINTER   (TRC_MEM + 18)

Definition at line 124 of file trace.h.

◆ TRC_PV_ENTRY

#define TRC_PV_ENTRY   0x00201000 /* Hypervisor entry points for PV guests. */

Definition at line 126 of file trace.h.

◆ TRC_PV_SUBCALL

#define TRC_PV_SUBCALL   0x00202000 /* Sub-call in a multicall hypercall */

Definition at line 127 of file trace.h.

◆ TRC_PV_HYPERCALL

#define TRC_PV_HYPERCALL   (TRC_PV_ENTRY + 1)

Definition at line 129 of file trace.h.

◆ TRC_PV_TRAP

#define TRC_PV_TRAP   (TRC_PV_ENTRY + 3)

Definition at line 130 of file trace.h.

◆ TRC_PV_PAGE_FAULT

#define TRC_PV_PAGE_FAULT   (TRC_PV_ENTRY + 4)

Definition at line 131 of file trace.h.

◆ TRC_PV_FORCED_INVALID_OP

#define TRC_PV_FORCED_INVALID_OP   (TRC_PV_ENTRY + 5)

Definition at line 132 of file trace.h.

◆ TRC_PV_EMULATE_PRIVOP

#define TRC_PV_EMULATE_PRIVOP   (TRC_PV_ENTRY + 6)

Definition at line 133 of file trace.h.

◆ TRC_PV_EMULATE_4GB

#define TRC_PV_EMULATE_4GB   (TRC_PV_ENTRY + 7)

Definition at line 134 of file trace.h.

◆ TRC_PV_MATH_STATE_RESTORE

#define TRC_PV_MATH_STATE_RESTORE   (TRC_PV_ENTRY + 8)

Definition at line 135 of file trace.h.

◆ TRC_PV_PAGING_FIXUP

#define TRC_PV_PAGING_FIXUP   (TRC_PV_ENTRY + 9)

Definition at line 136 of file trace.h.

◆ TRC_PV_GDT_LDT_MAPPING_FAULT

#define TRC_PV_GDT_LDT_MAPPING_FAULT   (TRC_PV_ENTRY + 10)

Definition at line 137 of file trace.h.

◆ TRC_PV_PTWR_EMULATION

#define TRC_PV_PTWR_EMULATION   (TRC_PV_ENTRY + 11)

Definition at line 138 of file trace.h.

◆ TRC_PV_PTWR_EMULATION_PAE

#define TRC_PV_PTWR_EMULATION_PAE   (TRC_PV_ENTRY + 12)

Definition at line 139 of file trace.h.

◆ TRC_PV_HYPERCALL_V2

#define TRC_PV_HYPERCALL_V2   (TRC_PV_ENTRY + 13)

Definition at line 140 of file trace.h.

◆ TRC_PV_HYPERCALL_SUBCALL

#define TRC_PV_HYPERCALL_SUBCALL   (TRC_PV_SUBCALL + 14)

Definition at line 141 of file trace.h.

◆ TRC_PV_HYPERCALL_V2_ARG_32

#define TRC_PV_HYPERCALL_V2_ARG_32 (   i)    (0x1 << (20 + 2*(i)))

Definition at line 168 of file trace.h.

◆ TRC_PV_HYPERCALL_V2_ARG_64

#define TRC_PV_HYPERCALL_V2_ARG_64 (   i)    (0x2 << (20 + 2*(i)))

Definition at line 169 of file trace.h.

◆ TRC_PV_HYPERCALL_V2_ARG_MASK

#define TRC_PV_HYPERCALL_V2_ARG_MASK   (0xfff00000)

Definition at line 170 of file trace.h.

◆ TRC_SHADOW_NOT_SHADOW

#define TRC_SHADOW_NOT_SHADOW   (TRC_SHADOW + 1)

Definition at line 172 of file trace.h.

◆ TRC_SHADOW_FAST_PROPAGATE

#define TRC_SHADOW_FAST_PROPAGATE   (TRC_SHADOW + 2)

Definition at line 173 of file trace.h.

◆ TRC_SHADOW_FAST_MMIO

#define TRC_SHADOW_FAST_MMIO   (TRC_SHADOW + 3)

Definition at line 174 of file trace.h.

◆ TRC_SHADOW_FALSE_FAST_PATH

#define TRC_SHADOW_FALSE_FAST_PATH   (TRC_SHADOW + 4)

Definition at line 175 of file trace.h.

◆ TRC_SHADOW_MMIO

#define TRC_SHADOW_MMIO   (TRC_SHADOW + 5)

Definition at line 176 of file trace.h.

◆ TRC_SHADOW_FIXUP

#define TRC_SHADOW_FIXUP   (TRC_SHADOW + 6)

Definition at line 177 of file trace.h.

◆ TRC_SHADOW_DOMF_DYING

#define TRC_SHADOW_DOMF_DYING   (TRC_SHADOW + 7)

Definition at line 178 of file trace.h.

◆ TRC_SHADOW_EMULATE

#define TRC_SHADOW_EMULATE   (TRC_SHADOW + 8)

Definition at line 179 of file trace.h.

◆ TRC_SHADOW_EMULATE_UNSHADOW_USER

#define TRC_SHADOW_EMULATE_UNSHADOW_USER   (TRC_SHADOW + 9)

Definition at line 180 of file trace.h.

◆ TRC_SHADOW_EMULATE_UNSHADOW_EVTINJ

#define TRC_SHADOW_EMULATE_UNSHADOW_EVTINJ   (TRC_SHADOW + 10)

Definition at line 181 of file trace.h.

◆ TRC_SHADOW_EMULATE_UNSHADOW_UNHANDLED

#define TRC_SHADOW_EMULATE_UNSHADOW_UNHANDLED   (TRC_SHADOW + 11)

Definition at line 182 of file trace.h.

◆ TRC_SHADOW_WRMAP_BF

#define TRC_SHADOW_WRMAP_BF   (TRC_SHADOW + 12)

Definition at line 183 of file trace.h.

◆ TRC_SHADOW_PREALLOC_UNPIN

#define TRC_SHADOW_PREALLOC_UNPIN   (TRC_SHADOW + 13)

Definition at line 184 of file trace.h.

◆ TRC_SHADOW_RESYNC_FULL

#define TRC_SHADOW_RESYNC_FULL   (TRC_SHADOW + 14)

Definition at line 185 of file trace.h.

◆ TRC_SHADOW_RESYNC_ONLY

#define TRC_SHADOW_RESYNC_ONLY   (TRC_SHADOW + 15)

Definition at line 186 of file trace.h.

◆ TRC_HVM_NESTEDFLAG

#define TRC_HVM_NESTEDFLAG   (0x400)

Definition at line 189 of file trace.h.

◆ TRC_HVM_VMENTRY

#define TRC_HVM_VMENTRY   (TRC_HVM_ENTRYEXIT + 0x01)

Definition at line 190 of file trace.h.

◆ TRC_HVM_VMEXIT

#define TRC_HVM_VMEXIT   (TRC_HVM_ENTRYEXIT + 0x02)

Definition at line 191 of file trace.h.

◆ TRC_HVM_VMEXIT64

#define TRC_HVM_VMEXIT64   (TRC_HVM_ENTRYEXIT + TRC_64_FLAG + 0x02)

Definition at line 192 of file trace.h.

◆ TRC_HVM_PF_XEN

#define TRC_HVM_PF_XEN   (TRC_HVM_HANDLER + 0x01)

Definition at line 193 of file trace.h.

◆ TRC_HVM_PF_XEN64

#define TRC_HVM_PF_XEN64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x01)

Definition at line 194 of file trace.h.

◆ TRC_HVM_PF_INJECT

#define TRC_HVM_PF_INJECT   (TRC_HVM_HANDLER + 0x02)

Definition at line 195 of file trace.h.

◆ TRC_HVM_PF_INJECT64

#define TRC_HVM_PF_INJECT64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x02)

Definition at line 196 of file trace.h.

◆ TRC_HVM_INJ_EXC

#define TRC_HVM_INJ_EXC   (TRC_HVM_HANDLER + 0x03)

Definition at line 197 of file trace.h.

◆ TRC_HVM_INJ_VIRQ

#define TRC_HVM_INJ_VIRQ   (TRC_HVM_HANDLER + 0x04)

Definition at line 198 of file trace.h.

◆ TRC_HVM_REINJ_VIRQ

#define TRC_HVM_REINJ_VIRQ   (TRC_HVM_HANDLER + 0x05)

Definition at line 199 of file trace.h.

◆ TRC_HVM_IO_READ

#define TRC_HVM_IO_READ   (TRC_HVM_HANDLER + 0x06)

Definition at line 200 of file trace.h.

◆ TRC_HVM_IO_WRITE

#define TRC_HVM_IO_WRITE   (TRC_HVM_HANDLER + 0x07)

Definition at line 201 of file trace.h.

◆ TRC_HVM_CR_READ

#define TRC_HVM_CR_READ   (TRC_HVM_HANDLER + 0x08)

Definition at line 202 of file trace.h.

◆ TRC_HVM_CR_READ64

#define TRC_HVM_CR_READ64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x08)

Definition at line 203 of file trace.h.

◆ TRC_HVM_CR_WRITE

#define TRC_HVM_CR_WRITE   (TRC_HVM_HANDLER + 0x09)

Definition at line 204 of file trace.h.

◆ TRC_HVM_CR_WRITE64

#define TRC_HVM_CR_WRITE64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x09)

Definition at line 205 of file trace.h.

◆ TRC_HVM_DR_READ

#define TRC_HVM_DR_READ   (TRC_HVM_HANDLER + 0x0A)

Definition at line 206 of file trace.h.

◆ TRC_HVM_DR_WRITE

#define TRC_HVM_DR_WRITE   (TRC_HVM_HANDLER + 0x0B)

Definition at line 207 of file trace.h.

◆ TRC_HVM_MSR_READ

#define TRC_HVM_MSR_READ   (TRC_HVM_HANDLER + 0x0C)

Definition at line 208 of file trace.h.

◆ TRC_HVM_MSR_WRITE

#define TRC_HVM_MSR_WRITE   (TRC_HVM_HANDLER + 0x0D)

Definition at line 209 of file trace.h.

◆ TRC_HVM_CPUID

#define TRC_HVM_CPUID   (TRC_HVM_HANDLER + 0x0E)

Definition at line 210 of file trace.h.

◆ TRC_HVM_INTR

#define TRC_HVM_INTR   (TRC_HVM_HANDLER + 0x0F)

Definition at line 211 of file trace.h.

◆ TRC_HVM_NMI

#define TRC_HVM_NMI   (TRC_HVM_HANDLER + 0x10)

Definition at line 212 of file trace.h.

◆ TRC_HVM_SMI

#define TRC_HVM_SMI   (TRC_HVM_HANDLER + 0x11)

Definition at line 213 of file trace.h.

◆ TRC_HVM_VMMCALL

#define TRC_HVM_VMMCALL   (TRC_HVM_HANDLER + 0x12)

Definition at line 214 of file trace.h.

◆ TRC_HVM_HLT

#define TRC_HVM_HLT   (TRC_HVM_HANDLER + 0x13)

Definition at line 215 of file trace.h.

◆ TRC_HVM_INVLPG

#define TRC_HVM_INVLPG   (TRC_HVM_HANDLER + 0x14)

Definition at line 216 of file trace.h.

◆ TRC_HVM_INVLPG64

#define TRC_HVM_INVLPG64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x14)

Definition at line 217 of file trace.h.

◆ TRC_HVM_MCE

#define TRC_HVM_MCE   (TRC_HVM_HANDLER + 0x15)

Definition at line 218 of file trace.h.

◆ TRC_HVM_IOPORT_READ

#define TRC_HVM_IOPORT_READ   (TRC_HVM_HANDLER + 0x16)

Definition at line 219 of file trace.h.

◆ TRC_HVM_IOMEM_READ

#define TRC_HVM_IOMEM_READ   (TRC_HVM_HANDLER + 0x17)

Definition at line 220 of file trace.h.

◆ TRC_HVM_CLTS

#define TRC_HVM_CLTS   (TRC_HVM_HANDLER + 0x18)

Definition at line 221 of file trace.h.

◆ TRC_HVM_LMSW

#define TRC_HVM_LMSW   (TRC_HVM_HANDLER + 0x19)

Definition at line 222 of file trace.h.

◆ TRC_HVM_LMSW64

#define TRC_HVM_LMSW64   (TRC_HVM_HANDLER + TRC_64_FLAG + 0x19)

Definition at line 223 of file trace.h.

◆ TRC_HVM_RDTSC

#define TRC_HVM_RDTSC   (TRC_HVM_HANDLER + 0x1a)

Definition at line 224 of file trace.h.

◆ TRC_HVM_INTR_WINDOW

#define TRC_HVM_INTR_WINDOW   (TRC_HVM_HANDLER + 0x20)

Definition at line 225 of file trace.h.

◆ TRC_HVM_NPF

#define TRC_HVM_NPF   (TRC_HVM_HANDLER + 0x21)

Definition at line 226 of file trace.h.

◆ TRC_HVM_REALMODE_EMULATE

#define TRC_HVM_REALMODE_EMULATE   (TRC_HVM_HANDLER + 0x22)

Definition at line 227 of file trace.h.

◆ TRC_HVM_TRAP

#define TRC_HVM_TRAP   (TRC_HVM_HANDLER + 0x23)

Definition at line 228 of file trace.h.

◆ TRC_HVM_TRAP_DEBUG

#define TRC_HVM_TRAP_DEBUG   (TRC_HVM_HANDLER + 0x24)

Definition at line 229 of file trace.h.

◆ TRC_HVM_VLAPIC

#define TRC_HVM_VLAPIC   (TRC_HVM_HANDLER + 0x25)

Definition at line 230 of file trace.h.

◆ TRC_HVM_IOPORT_WRITE

#define TRC_HVM_IOPORT_WRITE   (TRC_HVM_HANDLER + 0x216)

Definition at line 232 of file trace.h.

◆ TRC_HVM_IOMEM_WRITE

#define TRC_HVM_IOMEM_WRITE   (TRC_HVM_HANDLER + 0x217)

Definition at line 233 of file trace.h.

◆ TRC_HVM_EMUL_HPET_START_TIMER

#define TRC_HVM_EMUL_HPET_START_TIMER   (TRC_HVM_EMUL + 0x1)

Definition at line 236 of file trace.h.

◆ TRC_HVM_EMUL_PIT_START_TIMER

#define TRC_HVM_EMUL_PIT_START_TIMER   (TRC_HVM_EMUL + 0x2)

Definition at line 237 of file trace.h.

◆ TRC_HVM_EMUL_RTC_START_TIMER

#define TRC_HVM_EMUL_RTC_START_TIMER   (TRC_HVM_EMUL + 0x3)

Definition at line 238 of file trace.h.

◆ TRC_HVM_EMUL_LAPIC_START_TIMER

#define TRC_HVM_EMUL_LAPIC_START_TIMER   (TRC_HVM_EMUL + 0x4)

Definition at line 239 of file trace.h.

◆ TRC_HVM_EMUL_HPET_STOP_TIMER

#define TRC_HVM_EMUL_HPET_STOP_TIMER   (TRC_HVM_EMUL + 0x5)

Definition at line 240 of file trace.h.

◆ TRC_HVM_EMUL_PIT_STOP_TIMER

#define TRC_HVM_EMUL_PIT_STOP_TIMER   (TRC_HVM_EMUL + 0x6)

Definition at line 241 of file trace.h.

◆ TRC_HVM_EMUL_RTC_STOP_TIMER

#define TRC_HVM_EMUL_RTC_STOP_TIMER   (TRC_HVM_EMUL + 0x7)

Definition at line 242 of file trace.h.

◆ TRC_HVM_EMUL_LAPIC_STOP_TIMER

#define TRC_HVM_EMUL_LAPIC_STOP_TIMER   (TRC_HVM_EMUL + 0x8)

Definition at line 243 of file trace.h.

◆ TRC_HVM_EMUL_PIT_TIMER_CB

#define TRC_HVM_EMUL_PIT_TIMER_CB   (TRC_HVM_EMUL + 0x9)

Definition at line 244 of file trace.h.

◆ TRC_HVM_EMUL_LAPIC_TIMER_CB

#define TRC_HVM_EMUL_LAPIC_TIMER_CB   (TRC_HVM_EMUL + 0xA)

Definition at line 245 of file trace.h.

◆ TRC_HVM_EMUL_PIC_INT_OUTPUT

#define TRC_HVM_EMUL_PIC_INT_OUTPUT   (TRC_HVM_EMUL + 0xB)

Definition at line 246 of file trace.h.

◆ TRC_HVM_EMUL_PIC_KICK

#define TRC_HVM_EMUL_PIC_KICK   (TRC_HVM_EMUL + 0xC)

Definition at line 247 of file trace.h.

◆ TRC_HVM_EMUL_PIC_INTACK

#define TRC_HVM_EMUL_PIC_INTACK   (TRC_HVM_EMUL + 0xD)

Definition at line 248 of file trace.h.

◆ TRC_HVM_EMUL_PIC_POSEDGE

#define TRC_HVM_EMUL_PIC_POSEDGE   (TRC_HVM_EMUL + 0xE)

Definition at line 249 of file trace.h.

◆ TRC_HVM_EMUL_PIC_NEGEDGE

#define TRC_HVM_EMUL_PIC_NEGEDGE   (TRC_HVM_EMUL + 0xF)

Definition at line 250 of file trace.h.

◆ TRC_HVM_EMUL_PIC_PEND_IRQ_CALL

#define TRC_HVM_EMUL_PIC_PEND_IRQ_CALL   (TRC_HVM_EMUL + 0x10)

Definition at line 251 of file trace.h.

◆ TRC_HVM_EMUL_LAPIC_PIC_INTR

#define TRC_HVM_EMUL_LAPIC_PIC_INTR   (TRC_HVM_EMUL + 0x11)

Definition at line 252 of file trace.h.

◆ TRC_PM_FREQ_CHANGE

#define TRC_PM_FREQ_CHANGE   (TRC_HW_PM + 0x01)

Definition at line 255 of file trace.h.

◆ TRC_PM_IDLE_ENTRY

#define TRC_PM_IDLE_ENTRY   (TRC_HW_PM + 0x02)

Definition at line 256 of file trace.h.

◆ TRC_PM_IDLE_EXIT

#define TRC_PM_IDLE_EXIT   (TRC_HW_PM + 0x03)

Definition at line 257 of file trace.h.

◆ TRC_HW_IRQ_MOVE_CLEANUP_DELAY

#define TRC_HW_IRQ_MOVE_CLEANUP_DELAY   (TRC_HW_IRQ + 0x1)

Definition at line 260 of file trace.h.

◆ TRC_HW_IRQ_MOVE_CLEANUP

#define TRC_HW_IRQ_MOVE_CLEANUP   (TRC_HW_IRQ + 0x2)

Definition at line 261 of file trace.h.

◆ TRC_HW_IRQ_BIND_VECTOR

#define TRC_HW_IRQ_BIND_VECTOR   (TRC_HW_IRQ + 0x3)

Definition at line 262 of file trace.h.

◆ TRC_HW_IRQ_CLEAR_VECTOR

#define TRC_HW_IRQ_CLEAR_VECTOR   (TRC_HW_IRQ + 0x4)

Definition at line 263 of file trace.h.

◆ TRC_HW_IRQ_MOVE_FINISH

#define TRC_HW_IRQ_MOVE_FINISH   (TRC_HW_IRQ + 0x5)

Definition at line 264 of file trace.h.

◆ TRC_HW_IRQ_ASSIGN_VECTOR

#define TRC_HW_IRQ_ASSIGN_VECTOR   (TRC_HW_IRQ + 0x6)

Definition at line 265 of file trace.h.

◆ TRC_HW_IRQ_UNMAPPED_VECTOR

#define TRC_HW_IRQ_UNMAPPED_VECTOR   (TRC_HW_IRQ + 0x7)

Definition at line 266 of file trace.h.

◆ TRC_HW_IRQ_HANDLED

#define TRC_HW_IRQ_HANDLED   (TRC_HW_IRQ + 0x8)

Definition at line 267 of file trace.h.

◆ TRC_64_FLAG

#define TRC_64_FLAG   0x100 /* Addresses are 64 bits (instead of 32 bits) */

Definition at line 276 of file trace.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( MIT  )