File: monitor_trace.h

package info (click to toggle)
linux 6.18.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,742,780 kB
  • sloc: ansic: 26,780,494; asm: 272,079; sh: 148,752; python: 79,241; makefile: 57,741; perl: 36,527; xml: 19,542; cpp: 5,911; yacc: 4,939; lex: 2,950; awk: 1,607; sed: 30; ruby: 25
file content (33 lines) | stat: -rw-r--r-- 1,142 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM resctrl

#if !defined(_FS_RESCTRL_MONITOR_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _FS_RESCTRL_MONITOR_TRACE_H

#include <linux/tracepoint.h>

TRACE_EVENT(mon_llc_occupancy_limbo,
	    TP_PROTO(u32 ctrl_hw_id, u32 mon_hw_id, int domain_id, u64 llc_occupancy_bytes),
	    TP_ARGS(ctrl_hw_id, mon_hw_id, domain_id, llc_occupancy_bytes),
	    TP_STRUCT__entry(__field(u32, ctrl_hw_id)
			     __field(u32, mon_hw_id)
			     __field(int, domain_id)
			     __field(u64, llc_occupancy_bytes)),
	    TP_fast_assign(__entry->ctrl_hw_id = ctrl_hw_id;
			   __entry->mon_hw_id = mon_hw_id;
			   __entry->domain_id = domain_id;
			   __entry->llc_occupancy_bytes = llc_occupancy_bytes;),
	    TP_printk("ctrl_hw_id=%u mon_hw_id=%u domain_id=%d llc_occupancy_bytes=%llu",
		      __entry->ctrl_hw_id, __entry->mon_hw_id, __entry->domain_id,
		      __entry->llc_occupancy_bytes)
	   );

#endif /* _FS_RESCTRL_MONITOR_TRACE_H */

#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .

#define TRACE_INCLUDE_FILE monitor_trace

#include <trace/define_trace.h>