[PATCH RT] tracing: make preempt_lazy and migrate_disable counter smaller

Sebastian Andrzej Siewior
2020-02-21T17:44:22Z

The migrate_disable counter should not exceed 255 so it is enough to
store it in an 8bit field.
With this change we can move the `preempt_lazy_count' member into the
gap so the whole struct shrinks by 4 bytes to 12 bytes in total.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
include/linux/trace_events.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
index f3b1ef07e4a5f..c8b3f06cb5ed7 100644
--- a/include/linux/trace_events.h
+++ b/include/linux/trace_events.h
@@ -62,9 +62,9 @@ struct trace_entry {
unsigned char flags;
unsigned char preempt_count;
int pid;
- unsigned short migrate_disable;
- unsigned short padding;
+ unsigned char migrate_disable;
unsigned char preempt_lazy_count;
+ unsigned short padding;
};

#define TRACE_EVENT_TYPE_MAX \
--
2.25.0