1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM resctrl
4 
5 #if !defined(_TRACE_RESCTRL_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_RESCTRL_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 TRACE_EVENT(mon_llc_occupancy_limbo,
39 	    TP_PROTO(u32 ctrl_hw_id, u32 mon_hw_id, int domain_id, u64 llc_occupancy_bytes),
40 	    TP_ARGS(ctrl_hw_id, mon_hw_id, domain_id, llc_occupancy_bytes),
41 	    TP_STRUCT__entry(__field(u32, ctrl_hw_id)
42 			     __field(u32, mon_hw_id)
43 			     __field(int, domain_id)
44 			     __field(u64, llc_occupancy_bytes)),
45 	    TP_fast_assign(__entry->ctrl_hw_id = ctrl_hw_id;
46 			   __entry->mon_hw_id = mon_hw_id;
47 			   __entry->domain_id = domain_id;
48 			   __entry->llc_occupancy_bytes = llc_occupancy_bytes;),
49 	    TP_printk("ctrl_hw_id=%u mon_hw_id=%u domain_id=%d llc_occupancy_bytes=%llu",
50 		      __entry->ctrl_hw_id, __entry->mon_hw_id, __entry->domain_id,
51 		      __entry->llc_occupancy_bytes)
52 	   );
53 
54 #endif /* _TRACE_RESCTRL_H */
55 
56 #undef TRACE_INCLUDE_PATH
57 #define TRACE_INCLUDE_PATH .
58 #define TRACE_INCLUDE_FILE trace
59 #include <trace/define_trace.h>
60