mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zheng Yejian <zhengyejian1@huawei.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>,
	Ajay Kaher <akaher@vmware.com>, <shuah@kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-trace-kernel@vger.kernel.org>,
	<linux-kselftest@vger.kernel.org>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Ye Weihua <yeweihua4@huawei.com>
Subject: Re: [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc
Date: Wed, 6 Sep 2023 21:31:32 +0800	[thread overview]
Message-ID: <fcc5d688-9d58-3b4c-58de-472330160142@huawei.com> (raw)
In-Reply-To: <20230906090252.36219543@gandalf.local.home>

On 2023/9/6 21:02, Steven Rostedt wrote:
> On Wed, 6 Sep 2023 08:56:21 -0400
> Steven Rostedt <rostedt@goodmis.org> wrote:
> 
>> On Wed, 6 Sep 2023 19:57:24 +0800
>> Zheng Yejian <zhengyejian1@huawei.com> wrote:
>>
>>> BTW, I do reproduce with following testcase fix, then just run:
>>> ./ftracetest test.d/instances/instance-event.tc
>>> diff --git
>>> a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc
>>> b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc
>>> index 0eb47fbb3f44..42422e425107 100644
>>> --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc
>>> +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc
>>> @@ -39,7 +39,7 @@ instance_read() {
>>>
>>>    instance_set() {
>>>            while :; do
>>> -                echo 1 > foo/events/sched/sched_switch
>>> +                echo 1 > foo/events/sched/sched_switch/enable
>>>            done 2> /dev/null
>>>    }
>>
>> Ah thanks. I didn't have that on my test box :-p
>>
>> Although I'm still having issues reproducing it. Do you have anything
>> special on your kernel command line?
>>

I can reproduce it on qemu, boot command seems nothing special (replace
${kernel} with bzImage path and replace ${rootfs} with a ubuntu image):

qemu-system-x86_64 -M pc -m 8G -enable-kvm -smp cpus=12 -kernel 
${kernel} -drive file=${rootfs},if=virtio,format=raw,id=hd0 -fsdev 
local,security_model=passthrough,id=fsdev0,path=/home/test -nographic 
-append "rootwait root=/dev/vda rw console=ttyS0 rodata=off"

> 
> Also, which branch are you testing? What's the sha of the code you are testing?
>

I think it can be reproduced after any commit after commit
27152bceea1d ("eventfs: Move tracing/events to eventfs")

also can be reproduced with the newest:
65d6e954e378 ("Merge tag 'gfs2-v6.5-rc5-fixes' of 
git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2")

And revert commit 27152bceea1d ("eventfs: Move tracing/events to
eventfs"), the issue just seems gone.

--

Thanks,
Zheng Yejian

> -- Steve
> 


  reply	other threads:[~2023-09-06 13:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-26  0:11 Zheng Yejian
2023-06-26 10:11 ` Masami Hiramatsu
2023-06-26 10:12   ` Masami Hiramatsu
2023-07-10 22:37     ` Steven Rostedt
2023-09-05 12:54       ` Zheng Yejian
2023-09-05 16:25         ` Steven Rostedt
2023-09-05 16:49           ` Steven Rostedt
2023-09-05 18:45         ` Steven Rostedt
2023-09-05 20:32           ` Steven Rostedt
2023-09-06  1:26           ` Zheng Yejian
2023-09-05 22:36         ` Steven Rostedt
2023-09-06  1:42           ` Zheng Yejian
2023-09-06 11:27             ` Steven Rostedt
2023-09-06 11:57               ` Zheng Yejian
2023-09-06 12:56                 ` Steven Rostedt
2023-09-06 13:02                   ` Steven Rostedt
2023-09-06 13:31                     ` Zheng Yejian [this message]
2023-09-06 13:43                       ` Steven Rostedt
2023-09-06 13:45                         ` Steven Rostedt
2023-09-06 14:01                           ` Zheng Yejian
2023-09-06 14:04                             ` Steven Rostedt
2023-09-05 22:43         ` Shuah Khan
2023-09-06  1:45           ` Zheng Yejian
2023-09-06 14:26             ` "[PATCH] selftests/ftrace: Correctly enable event in instance-event.tc" Naresh Kamboju
2023-09-06 14:37               ` Steven Rostedt
2023-09-06 21:37                 ` Steven Rostedt
2023-09-07  1:01                   ` Zheng Yejian
2023-09-06 18:50               ` Steven Rostedt
2023-09-06 22:46                 ` Steven Rostedt
2023-09-07  1:39                   ` Zheng Yejian
2023-09-07  1:44                     ` Steven Rostedt

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=fcc5d688-9d58-3b4c-58de-472330160142@huawei.com \
    --to=zhengyejian1@huawei.com \
    --cc=akaher@vmware.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=yeweihua4@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®