~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/dtl.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _ASM_POWERPC_DTL_H
  2 #define _ASM_POWERPC_DTL_H
  3 
  4 #include <asm/lppaca.h>
  5 #include <linux/spinlock_types.h>
  6 
  7 /*
  8  * Layout of entries in the hypervisor's dispatch trace log buffer.
  9  */
 10 struct dtl_entry {
 11         u8      dispatch_reason;
 12         u8      preempt_reason;
 13         __be16  processor_id;
 14         __be32  enqueue_to_dispatch_time;
 15         __be32  ready_to_enqueue_time;
 16         __be32  waiting_to_ready_time;
 17         __be64  timebase;
 18         __be64  fault_addr;
 19         __be64  srr0;
 20         __be64  srr1;
 21 };
 22 
 23 #define DISPATCH_LOG_BYTES      4096    /* bytes per cpu */
 24 #define N_DISPATCH_LOG          (DISPATCH_LOG_BYTES / sizeof(struct dtl_entry))
 25 
 26 /*
 27  * Dispatch trace log event enable mask:
 28  *   0x1: voluntary virtual processor waits
 29  *   0x2: time-slice preempts
 30  *   0x4: virtual partition memory page faults
 31  */
 32 #define DTL_LOG_CEDE            0x1
 33 #define DTL_LOG_PREEMPT         0x2
 34 #define DTL_LOG_FAULT           0x4
 35 #define DTL_LOG_ALL             (DTL_LOG_CEDE | DTL_LOG_PREEMPT | DTL_LOG_FAULT)
 36 
 37 extern struct kmem_cache *dtl_cache;
 38 extern rwlock_t dtl_access_lock;
 39 
 40 extern void register_dtl_buffer(int cpu);
 41 extern void alloc_dtl_buffers(unsigned long *time_limit);
 42 
 43 #endif /* _ASM_POWERPC_DTL_H */
 44 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php