selftests/ftrace: Correctly enable event in instance-event.tc
authorZheng Yejian <zhengyejian1@huawei.com>
Mon, 26 Jun 2023 00:11:44 +0000 (08:11 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 5 Sep 2023 22:41:28 +0000 (16:41 -0600)
commitf4e4ada586995b17f828c6d147d1800eb1471450
tree8a596c910a6a37da3eeb19c8ed4f10d46c82009f
parent9b1db732866bee060b9bca9493e5ebf5e8874c48
selftests/ftrace: Correctly enable event in instance-event.tc

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

Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/instances/instance-event.tc