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

TOMOYO Linux Cross Reference
Linux/include/trace/events/tlb.h

Version: ~ [ linux-5.1-rc5 ] ~ [ linux-5.0.7 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.34 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.111 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.168 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.178 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.138 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.65 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM tlb
  4 
  5 #if !defined(_TRACE_TLB_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define _TRACE_TLB_H
  7 
  8 #include <linux/mm_types.h>
  9 #include <linux/tracepoint.h>
 10 
 11 #define TLB_FLUSH_REASON                                                \
 12         EM(  TLB_FLUSH_ON_TASK_SWITCH,  "flush on task switch" )        \
 13         EM(  TLB_REMOTE_SHOOTDOWN,      "remote shootdown" )            \
 14         EM(  TLB_LOCAL_SHOOTDOWN,       "local shootdown" )             \
 15         EM(  TLB_LOCAL_MM_SHOOTDOWN,    "local mm shootdown" )          \
 16         EMe( TLB_REMOTE_SEND_IPI,       "remote ipi send" )
 17 
 18 /*
 19  * First define the enums in TLB_FLUSH_REASON to be exported to userspace
 20  * via TRACE_DEFINE_ENUM().
 21  */
 22 #undef EM
 23 #undef EMe
 24 #define EM(a,b)         TRACE_DEFINE_ENUM(a);
 25 #define EMe(a,b)        TRACE_DEFINE_ENUM(a);
 26 
 27 TLB_FLUSH_REASON
 28 
 29 /*
 30  * Now redefine the EM() and EMe() macros to map the enums to the strings
 31  * that will be printed in the output.
 32  */
 33 #undef EM
 34 #undef EMe
 35 #define EM(a,b)         { a, b },
 36 #define EMe(a,b)        { a, b }
 37 
 38 TRACE_EVENT(tlb_flush,
 39 
 40         TP_PROTO(int reason, unsigned long pages),
 41         TP_ARGS(reason, pages),
 42 
 43         TP_STRUCT__entry(
 44                 __field(          int, reason)
 45                 __field(unsigned long,  pages)
 46         ),
 47 
 48         TP_fast_assign(
 49                 __entry->reason = reason;
 50                 __entry->pages  = pages;
 51         ),
 52 
 53         TP_printk("pages:%ld reason:%s (%d)",
 54                 __entry->pages,
 55                 __print_symbolic(__entry->reason, TLB_FLUSH_REASON),
 56                 __entry->reason)
 57 );
 58 
 59 #endif /* _TRACE_TLB_H */
 60 
 61 /* This part must be outside protection */
 62 #include <trace/define_trace.h>
 63 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp