]> Git Repo - linux.git/commitdiff
selftests/ftrace: Correctly enable event in instance-event.tc
authorZheng Yejian <[email protected]>
Mon, 26 Jun 2023 00:11:44 +0000 (08:11 +0800)
committerShuah Khan <[email protected]>
Tue, 5 Sep 2023 22:41:28 +0000 (16:41 -0600)
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 <[email protected]>
Acked-by: Masami Hiramatsu (Google) <[email protected]>
Acked-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
tools/testing/selftests/ftrace/test.d/instances/instance-event.tc

index 0eb47fbb3f44d75d8fafe30af769cf015f7ecad0..42422e4251078729bb773d859283a0954c656f27 100644 (file)
@@ -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
 }
 
This page took 0.058662 seconds and 4 git commands to generate.