lkml.org 
[lkml]   [2023]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc
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?

-- Steve

\
 
 \ /
  Last update: 2023-09-06 14:56    [W:0.081 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site