]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: Shrink the size of the recursion counter.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 4 Jul 2024 17:03:38 +0000 (19:03 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 9 Jul 2024 11:26:35 +0000 (13:26 +0200)
commit5af42f928f3ac555c228740fb4a92d05b19fdd49
treeebce35c0bd10a125e88d6cc74b8bfe10fa86e1cd
parentc5d93d23a26012a98b77f9e354ab9b3afd420059
perf: Shrink the size of the recursion counter.

There are four recursion counter, one for each context. The type of the
counter is `int' but the counter is used as `bool' since it is only
incremented if zero.
The main goal here is to shrink the whole struct into 32bit int which
can later be added task_struct into an existing hole.

Reduce the type of the recursion counter to an unsigned char, keep the
increment/ decrement operation.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20240704170424.1466941-5-bigeasy@linutronix.de
kernel/events/callchain.c
kernel/events/core.c
kernel/events/internal.h