root/arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 #undef TRACE_SYSTEM
   3 #define TRACE_SYSTEM resctrl
   4 
   5 #if !defined(_TRACE_PSEUDO_LOCK_H) || defined(TRACE_HEADER_MULTI_READ)
   6 #define _TRACE_PSEUDO_LOCK_H
   7 
   8 #include <linux/tracepoint.h>
   9 
  10 TRACE_EVENT(pseudo_lock_mem_latency,
  11             TP_PROTO(u32 latency),
  12             TP_ARGS(latency),
  13             TP_STRUCT__entry(__field(u32, latency)),
  14             TP_fast_assign(__entry->latency = latency),
  15             TP_printk("latency=%u", __entry->latency)
  16            );
  17 
  18 TRACE_EVENT(pseudo_lock_l2,
  19             TP_PROTO(u64 l2_hits, u64 l2_miss),
  20             TP_ARGS(l2_hits, l2_miss),
  21             TP_STRUCT__entry(__field(u64, l2_hits)
  22                              __field(u64, l2_miss)),
  23             TP_fast_assign(__entry->l2_hits = l2_hits;
  24                            __entry->l2_miss = l2_miss;),
  25             TP_printk("hits=%llu miss=%llu",
  26                       __entry->l2_hits, __entry->l2_miss));
  27 
  28 TRACE_EVENT(pseudo_lock_l3,
  29             TP_PROTO(u64 l3_hits, u64 l3_miss),
  30             TP_ARGS(l3_hits, l3_miss),
  31             TP_STRUCT__entry(__field(u64, l3_hits)
  32                              __field(u64, l3_miss)),
  33             TP_fast_assign(__entry->l3_hits = l3_hits;
  34                            __entry->l3_miss = l3_miss;),
  35             TP_printk("hits=%llu miss=%llu",
  36                       __entry->l3_hits, __entry->l3_miss));
  37 
  38 #endif /* _TRACE_PSEUDO_LOCK_H */
  39 
  40 #undef TRACE_INCLUDE_PATH
  41 #define TRACE_INCLUDE_PATH .
  42 #define TRACE_INCLUDE_FILE pseudo_lock_event
  43 #include <trace/define_trace.h>

/* [<][>][^][v][top][bottom][index][help] */