linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc
@ 2023-06-26  0:11 Zheng Yejian
  2023-06-26 10:11 ` Masami Hiramatsu
  0 siblings, 1 reply; 31+ messages in thread
From: Zheng Yejian @ 2023-06-26  0:11 UTC (permalink / raw)
  To: rostedt, mhiramat, shuah
  Cc: linux-kernel, linux-trace-kernel, linux-kselftest, zhengyejian1

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>
---
 .../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


^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2023-09-07  1:43 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26  0:11 [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).