Thread (31 messages) 31 messages, 5 authors, 2023-09-07

Re: [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc

From: Zheng Yejian <hidden>
Date: 2023-09-06 11:57:51
Also in: linux-kselftest, lkml

On 2023/9/6 19:27, Steven Rostedt wrote:
On Wed, 6 Sep 2023 09:42:44 +0800
Zheng Yejian [off-list ref] wrote:
quoted
Hi, Steve, your new patch seems not fixes the KASAN issue.

I run the instance-event.tc with your patch again and get same KASAN
report.

My config is in:
  
https://lore.kernel.org/all/da5495b5-cdb5-cb82-dd9b-37e7a87ed97d@huawei.com/ (local)
I'm not able to reproduce it.

Can you send me the full dmesg.
Hi, Steve,

can you receive the attachments? dmesg log is too long, so
I put them in attachment file:

dmesg before the patch see attachment "dmesg_before_patch"
https://lore.kernel.org/all/20230905183332.628d7cc0@gandalf.local.home/ (local)
and dmesg after above patch see attachment "dmesg_after_patch".

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
  }


--
Thanks,
Zheng Yejian
Thanks,

-- Steve

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help