[PATCH 1/2] tools/bootconfig: Preserve event enable state when retrying histograms
From: Eduardo Mucelli Rezende Oliveira
Date: Sat Nov 28 2026 - 06:58:14 EST
An event with a histogram dependency is exported after the main group
walk. On retry, GROUP_ENABLED still describes the last group in that
walk. If the last group is fully enabled, an enabled event in a mixed
group can lose its individual enable setting.
Look up the group enable state for the event being retried. Still
suppress the individual setting when all events are enabled globally or
the retried event's group is fully enabled.
Fixes: 1eaad3ac3f39 ("tools/bootconfig: Use per-group/all enable option in ftrace2bconf script")
Signed-off-by: Eduardo Mucelli Rezende Oliveira <edumucelli@xxxxxxxxx>
---
tools/bootconfig/scripts/ftrace2bconf.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/bootconfig/scripts/ftrace2bconf.sh b/tools/bootconfig/scripts/ftrace2bconf.sh
index f62372adbfd598..b685dd6b070b0c 100755
--- a/tools/bootconfig/scripts/ftrace2bconf.sh
+++ b/tools/bootconfig/scripts/ftrace2bconf.sh
@@ -135,6 +135,11 @@ retry_unresolved() {
for evdir in $unresolved; do
event=${evdir##*/}
group=${evdir%/*}; group=${group##*/}
+ GROUP_ENABLED=$ALL_ENABLED
+ if [ "$ALL_ENABLED" -eq 0 ] &&
+ event_is_enabled "$INSTANCE/events/$group/enable"; then
+ GROUP_ENABLED=1
+ fi
per_event_options $evdir
done
}
--
2.53.0