[PATCH v1] platform/x86/intel/ifs: trace: Avoid hole in ifs_status trace struct
From: Kuppuswamy Sathyanarayanan
Date: Tue Jul 30 2024 - 12:00:40 EST
Rearrange the ifs_status trace struct members to eliminate a 4-byte
alignment hole. It reduces memory overhead.
Suggested-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
Reviewed-by: Jithu Joseph <jithu.joseph@xxxxxxxxx>
Reviewed-by: Ashok Raj <ashok.raj@xxxxxxxxx>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
---
include/trace/events/intel_ifs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/trace/events/intel_ifs.h b/include/trace/events/intel_ifs.h
index 0d88ebf2c980..32e9532e954e 100644
--- a/include/trace/events/intel_ifs.h
+++ b/include/trace/events/intel_ifs.h
@@ -15,8 +15,8 @@ TRACE_EVENT(ifs_status,
TP_ARGS(batch, start, stop, status),
TP_STRUCT__entry(
- __field( int, batch )
__field( u64, status )
+ __field( int, batch )
__field( u16, start )
__field( u16, stop )
),
--
2.25.1