Re: [PATCH] tools/time: access /sys/kernel/debug/udelay_test before test.

2020-10-21 Thread Hui Su
On Tue, Oct 20, 2020 at 10:27:05AM -0700, David Riley wrote: > I don't think it's worth making debug_file_exist a separate function. It's > more clear to just do the check for the file, especially since you then log > that path in the failure case. > > On Fri, Oct 16, 2020 at 11:05 AM Hui Su wro

[PATCH] tools/time: access /sys/kernel/debug/udelay_test before test.

2020-10-16 Thread Hui Su
before(when i did not compile udelay_test.ko): sh@ubuntu:~/workspace/compile/tools/time$ sudo ./udelay_test.sh ./udelay_test.sh: line 25: /sys/kernel/debug/udelay_test: Permission denied ./udelay_test.sh: line 26: /sys/kernel/debug/udelay_test: No such file or directory ./udelay_test.sh: line 25: