mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
Resctrl is a filesystem interface to hardware that provides cache allocation policy and bandwidth control for groups of tasks or CPUs. To support more than one architecture, resctrl needs to live in /fs/. Move the code that is concerned with the filesystem interface to /fs/resctrl. Signed-off-by: James Morse <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Tested-by: Fenghua Yu <[email protected]> Tested-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/[email protected]
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* 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>
|