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 0/2] tools/bootconfig: Preserve filters when resetting and applying tracing
Date: Wed, 28 Oct 2026 20:36:22 +0100 [thread overview]
Message-ID: <cover.1793216183.git.edumucelli@gmail.com> (raw)
Hi Masami,
Here are two more fixes for the bootconfig tracing scripts. They address
resetting existing histograms and applying saved filter strings. The
patches can be applied independently.
The first patch fixes histogram removal when a filter contains brackets
or repeated spaces. A failed removal can leave a variable provider
installed after reset, including a case where the helper returns success.
It uses separate sed expressions for [active] and [paused], following
your portability feedback.
The second patch keeps quoted strings intact when applying a bootconfig.
Currently, repeated spaces can be collapsed and literal wildcard
characters can expand to filenames, changing the filter being installed.
Both were tested in temporary tracefs instances on my Ubuntu machine,
running kernel 7.0.0-38-generic, with recording disabled. The individual
patch emails include the reproduction details.
Feedback is welcome.
Thanks,
Eduardo
Eduardo Mucelli Rezende Oliveira (2):
tools/bootconfig: Preserve filters when resetting histogram triggers
tools/bootconfig: Quote command strings when applying ftrace settings
tools/bootconfig/scripts/bconf2ftrace.sh | 2 +-
tools/bootconfig/scripts/ftrace.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
base-commit: e28458ef30ad66ce7cd2299ec5ee8a8a016d67ff
--
2.53.0
next reply other threads:[~2026-10-28 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 19:36 Eduardo Mucelli Rezende Oliveira [this message]
2026-10-28 19:36 ` [PATCH 1/2] tools/bootconfig: Preserve filters when resetting histogram triggers Eduardo Mucelli Rezende Oliveira
2026-10-28 19:36 ` [PATCH 2/2] tools/bootconfig: Quote command strings when applying ftrace settings 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=cover.1793216183.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.