From: Steven Rostedt <rostedt@goodmis.org>
To: Zheng Yejian <zhengyejian1@huawei.com>
Cc: <mingo@redhat.com>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ftrace: Properly unset FTRACE_HASH_FL_MOD
Date: Mon, 26 Sep 2022 10:32:42 -0400 [thread overview]
Message-ID: <20220926103242.6d0fc1ea@gandalf.local.home> (raw)
In-Reply-To: <20220926152008.2239274-1-zhengyejian1@huawei.com>
On Mon, 26 Sep 2022 15:20:08 +0000
Zheng Yejian <zhengyejian1@huawei.com> wrote:
> When executing following commands like what document said, but the log
> "#### all functions enabled ####" was not shown as expect:
> 1. Set a 'mod' filter:
> $ echo 'write*:mod:ext3' > /sys/kernel/tracing/set_ftrace_filter
> 2. Invert above filter:
> $ echo '!write*:mod:ext3' >> /sys/kernel/tracing/set_ftrace_filter
> 3. Read the file:
> $ cat /sys/kernel/tracing/set_ftrace_filter
>
> By some debugging, I found that flag FTRACE_HASH_FL_MOD was not unset
> after inversion like above step 2 and then result of ftrace_hash_empty()
> is incorrect.
>
> Cc: stable@vger.kernel.org
> Fixes: 8c08f0d5c6fb ("ftrace: Have cached module filters be an active filter")
> Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Thanks, this definitely looks like a bug.
I'll be reviewing these patches later this week.
-- Steve
prev parent reply other threads:[~2022-09-26 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 15:20 Zheng Yejian
2022-09-26 14:32 ` Steven Rostedt [this message]
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=20220926103242.6d0fc1ea@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=zhengyejian1@huawei.com \
/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
all inboxes | Powered by JetHome®