Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After running kprobe.py in Rhel8.4 with Avocado (version: 92.0), it shows “FAIL: insmod kprobe_example.ko failed”. #2157

Open
Gene-Lo opened this issue Nov 9, 2021 · 0 comments

Comments

@Gene-Lo
Copy link

Gene-Lo commented Nov 9, 2021

After running kprobe.py in Rhel8.4 with Avocado (version: 92.0), it shows “FAIL: insmod kprobe_example.ko failed”.

《SOL-Log》
SOL-Log

《Debug-Log of UID 1》
L0087 INFO | Fetching https://raw.githubusercontent.com/torvalds/linux/master/samples/kprobes/kprobe_example.c -> /root/avocado/data/cache/by_location/84d0a6769cb0569c52065a2ce18b92c3a18a42da/kprobe_example.c.e4915aaf-50da-47d7-a647-376f7a6f8be3
L0058 DEBUG| Retrieved URL "https://raw.githubusercontent.com/torvalds/linux/master/samples/kprobes/kprobe_example.c": content-length 3532, date: "Fri, 05 Nov 2021 09:15:17 GMT", last-modified: "UNKNOWN"
L0261 WARNI| No hash provided. Cannot check the asset file integrity.
L0658 INFO | Running 'make'
L0470 DEBUG| [stdout] make -C /lib/modules/4.18.0-305.el8.ppc64le/build SUBDIRS=/var/tmp/tmpd35or1e0 modules
L0470 DEBUG| [stdout] make[1]: Entering directory '/usr/src/kernels/4.18.0-305.el8.ppc64le'
L0470 DEBUG| [stdout] CC [M] /var/tmp/tmpd35or1e0/kprobe_example.o
L0470 DEBUG| [stdout] Building modules, stage 2.
L0470 DEBUG| [stdout] MODPOST 1 modules
L0470 DEBUG| [stdout] CC /var/tmp/tmpd35or1e0/kprobe_example.mod.o
L0470 DEBUG| [stdout] LD [M] /var/tmp/tmpd35or1e0/kprobe_example.ko
L0470 DEBUG| [stdout] make[1]: Leaving directory '/usr/src/kernels/4.18.0-305.el8.ppc64le'
L0740 INFO | Command 'make' finished with 0 after 1.601611107s
L0113 INFO | ============== Testing kprobe =================
L0658 INFO | Running 'dmesg -C '
L0740 INFO | Command 'dmesg -C ' finished with 0 after 0.000557816s
L0038 INFO | executing ============== insmod ./kprobe_example.ko =================
L0658 INFO | Running 'insmod ./kprobe_example.ko'
L0470 DEBUG| [stderr] insmod: ERROR: could not insert module ./kprobe_example.ko: Unknown symbol in module
L0740 INFO | Command 'insmod ./kprobe_example.ko' finished with 1 after 0.174815972s
L0039 ERROR|
L0042 ERROR| Reproduced traceback from: /usr/local/lib/python3.6/site-packages/avocado/core/test.py:793
L0045 ERROR| Traceback (most recent call last):
L0045 ERROR| File "/root/tests/tests/avocado-misc-tests/ras/kprobe.py", line 162, in test
L0045 ERROR| self.execute_test()
L0045 ERROR| File "/root/tests/tests/avocado-misc-tests/ras/kprobe.py", line 117, in execute_test
L0045 ERROR| self.fail("insmod kprobe_example.ko failed")
L0045 ERROR| File "/usr/local/lib/python3.6/site-packages/avocado/core/test.py", line 979, in fail
L0045 ERROR| raise exceptions.TestFail(message)
L0045 ERROR| avocado.core.exceptions.TestFail: insmod kprobe_example.ko failed

《Manual Test Log》
After running kprobe.py, there is no kprobe_example.ko in SUT, which may cause the result FAIL.
Manual-Test-Log.txt

《Avocado Test Log》
20211105-SUT1-RAS-kprobe.zip

《Configuration》
[Kernel]
4.18.0-305.25.1.el8_4.ppc64le

[FW Config]
BMC: op940.22.mih-1-0-g41157d8d2e
Pnor: OP9_v2.4.1-4.31-prod

[HW Config]
CPU DD2.3 20 core *2
Micron Technology (72ASS8G72PSZ-2S6G1) 64GiB x32
SAMSUNG PM985 (MZ1LB960HAJQ-00007) 960GB M.2 x1
PSU ACBEL 2000w *2
Slot10: Broadcom 9305-16i SAS/SATA HBA PCIe Gen3 x8 LP
Slot9: Broadcom 5719 QP 1G (1G/100M/10M) Network Interface Card PCIe x4 LP
00VN497 - Seagate Skybolt - HDD 2400GB SAS *8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant