From: Eduardo Mucelli Rezende Oliveira <edumucelli@gmail.com>
To: mhiramat@kernel.org
Cc: rostedt@goodmis.org, linux-trace-kernel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] tools/bootconfig: Preserve event enable state when retrying histograms
Date: Sat, 28 Nov 2026 12:57:56 +0100 [thread overview]
Message-ID: <eeeed6cb5248903e64f6be45de79ceb3c7f7909e.1795867077.git.edumucelli@gmail.com> (raw)
In-Reply-To: <cover.1795867077.git.edumucelli@gmail.com>
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@gmail.com>
---
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
next prev parent reply other threads:[~2026-11-28 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 11:57 [PATCH 0/2] tools/bootconfig: Fix tracing settings export Eduardo Mucelli Rezende Oliveira
2026-11-28 11:57 ` Eduardo Mucelli Rezende Oliveira [this message]
2026-11-28 11:57 ` [PATCH 2/2] tools/bootconfig: Export tracing state without the function graph tracer Eduardo Mucelli Rezende Oliveira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eeeed6cb5248903e64f6be45de79ceb3c7f7909e.1795867077.git.edumucelli@gmail.com \
--to=edumucelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox