lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 26 Jun 2023 19:12:55 +0900
From:   Masami Hiramatsu (Google) <mhiramat@...nel.org>
To:     Masami Hiramatsu (Google) <mhiramat@...nel.org>
Cc:     Zheng Yejian <zhengyejian1@...wei.com>, <rostedt@...dmis.org>,
        <shuah@...nel.org>, <linux-kernel@...r.kernel.org>,
        <linux-trace-kernel@...r.kernel.org>,
        <linux-kselftest@...r.kernel.org>
Subject: Re: [PATCH] selftests/ftrace: Correctly enable event in
 instance-event.tc

On Mon, 26 Jun 2023 19:11:14 +0900
Masami Hiramatsu (Google) <mhiramat@...nel.org> wrote:

> On Mon, 26 Jun 2023 08:11:44 +0800
> Zheng Yejian <zhengyejian1@...wei.com> wrote:
> 
> > Function instance_set() expects to enable event 'sched_switch', so we
> > should set 1 to its 'enable' file.
> > 
> > Testcase passed after this patch:
> >   # ./ftracetest test.d/instances/instance-event.tc
> >   === Ftrace unit tests ===
> >   [1] Test creation and deletion of trace instances while setting an event
> >   [PASS]
> > 
> >   # of passed:  1
> >   # of failed:  0
> >   # of unresolved:  0
> >   # of untested:  0
> >   # of unsupported:  0
> >   # of xfailed:  0
> >   # of undefined(test bug):  0
> > 
> 
> Good catch!
> 
> Fixes: 91e6f1ce8657 ("ftracetest: Add instance created, delete, read and enable event test")
> 
> It seems this tests internally broken but the result is same because this disabled
> error checking ('set +e').

And

Acked-by: Masami Hiramatsu (Google) <mhiramat@...nel.org>

Thanks!

> 
> 
> > Signed-off-by: Zheng Yejian <zhengyejian1@...wei.com>
> > ---
> >  .../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > 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
> >  }
> >  
> > -- 
> > 2.25.1
> > 
> 
> 
> -- 
> Masami Hiramatsu (Google) <mhiramat@...nel.org>


-- 
Masami Hiramatsu (Google) <mhiramat@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ