Hi Naresh,
On Wed, 15 Mar 2023 14:41:51 +0530
Naresh Kamboju <naresh.kamboju(a)linaro.org> wrote:
> Hi Masami San,
>
>
> On Wed, 15 Mar 2023 at 14:03, Masami Hiramatsu <mhiramat(a)kernel.org> wrote:
> >
> > Hi Naresh,
> >
> > On Tue, 14 Mar 2023 15:52:44 +0530
> > Naresh Kamboju <naresh.kamboju(a)linaro.org> wrote:
> >
> > > Results from Linaro’s test farm.
> > >
> > > selftests ftrace failed on qemu-x86_64 and qemu-arm64.
> > > Please find the test log below.
> >
> > Thanks for reporting!
> > Can you share the kernel config which you used for this build?
> > And the kernel is "next-20230314", is that correct?
>
> I have attached a test log file and Kconfig file.
Thanks! I could reproduced.
The error log is here.
----
+ . /mnt/ftrace/test.d/filter/event-filter-function.tc
+ echo 'Test event filter function name'
Test event filter function name
+ echo 0
+ echo 0
+ echo
+ echo 'call_site.function == exit_mmap'
+ echo 1
+ echo 1
+ ls
+ echo 0
+ + wcgrep -l
exit_mmap
+ grep kmem_cache_free trace
+ hitcnt=0
+ + wcgrep -l
-v+ exit_mmap
grep kmem_cache_free trace
+ misscnt=0
+ '[' 0 -eq 0 ]
+ exit_fail
+ exit 1
And the test case is here.
-----
echo 'call_site.function == exit_mmap' > events/kmem/kmem_cache_free/filter
echo 1 > events/kmem/kmem_cache_free/enable
echo 1 > tracing_on
ls > /dev/null
echo 0 > events/kmem/kmem_cache_free/enable
hitcnt=`grep kmem_cache_free trace| grep exit_mmap | wc -l`
misscnt=`grep kmem_cache_free trace| grep -v exit_mmap | wc -l`
if [ $hitcnt -eq 0 ]; then
exit_fail
fi
-----
The test case expects the `ls > /dev/null` involves 'kmem_cache_free' trace
event, but it doesn't.
BTW, this code is a bit fragile because the function caller can be changed
frequently. I think it should sample the events and use one of them.
Let me fix that.
Thank you,
>
> >
> > >
> > > Is this expected to fail ? Am I missing anything ?
> >
> > No, it should be a bug. I would like to reproduce it.
>
> - Naresh
--
Masami Hiramatsu (Google) <mhiramat(a)kernel.org>
Total jobs: 75
Total errors: 9 (12.00%)
LAVA errors: 0 (0.00%)
Test errors: 7 (9.33%)
Job errors: 2 (2.67%)
Infra errors: 0 (0.00%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 53
Total errors: 3 (5.66%)
Error type: Job
Error count: 2 (3.77%)
Error: No match for error type 'Job', message 'login-action timed out after 870 seconds'
Count: 1 (1.89%)
IDs:
db845c-08:
6283886
Error: wait for prompt timed out
Count: 1 (1.89%)
IDs:
db845c-02:
6274477
Error type: Test
Error count: 1 (1.89%)
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 586 seconds'
Count: 1 (1.89%)
IDs:
db845c-03:
6283659
Device type: x15
Total jobs: 12
Total errors: 4 (33.33%)
Error type: Test
Error count: 4 (33.33%)
Error: Device NOT found!
Count: 1 (8.33%)
IDs:
x15-05:
6284041
Error: No match for error type 'Test', message 'tradefed - adb device lost[0c00700f35c08922]'
Count: 1 (8.33%)
IDs:
x15-11:
6283933
Error: No match for error type 'Test', message 'tradefed - adb device lost[0400b0076ca68922]'
Count: 1 (8.33%)
IDs:
x15-01:
6283932
Error: No match for error type 'Test', message 'tradefed - adb device lost[1300f00a2e4a0b22]'
Count: 1 (8.33%)
IDs:
x15-10:
6283625
Device type: hi6220-hikey-r2
Total jobs: 10
Total errors: 2 (20.00%)
Error type: Test
Error count: 2 (20.00%)
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 17984 seconds'
Count: 1 (10.00%)
IDs:
hikey-6220-r2-03:
6283915
Error: No match for error type 'Test', message 'tradefed - adb device lost[50D6538A01FE17F3]'
Count: 1 (10.00%)
IDs:
hikey-6220-r2-15:
6283914