-
Notifications
You must be signed in to change notification settings - Fork 15
LoongArch: initial object files #52
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
Conversation
|
Hi @georgejguo : the unit tests are created somewhat ad-hoc. For new arches, we usually start with the object files generated by the integration tests. You'll need to build with |
|
Hi, Joe
This is my steps for producing unit test object files: |
|
Hi @georgejguo - that looks about right. I'd go through the integration tests one-by-one (or script it) to generate original / patched object files and then drop them into an arch directory with a few updates: Makefile .ORIG.o .PATCHED.o .test The $KPATCH_TEST_LIBRARY (test-functions.sh) includes an Tests can check other things as well, see the x86_64 tests: Modeling after #51 should get you most of the way there. |
Add object files generated from test cases in the examples/ and test/integration/rhel-9.6/ directories to serve as unit tests. $ git describe HEAD v6.15-rc2-278-gfc96b232f8e7 $ gcc --version gcc (GCC) 14.2.1 20241104 (Red Hat 14.2.1-6) The kernel config was based on: - config-6.15.0-0.rc2.20250418gitfc96b232f8e7.25.fc42.loongarch64 - CONFIG_FTRACE=y - CONFIG_FUNCTION_TRACER=y - CONFIG_LIVEPATCH=y - CONFIG_MODULE_ALLOW_BTF_MISMATCH=y Tested-by: Kexin Liu <liukexin@kylinos.cn> Signed-off-by: George Guo <guodongtai@kylinos.cn>
|
what do you think this time ? |
joe-lawrence
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @georgejguo. I think this looks good, but let me take a look at the PR over on the main project before merging this one.
|
Thanks, George Guo and Kexin Liu! |
Hi Joe,
I m here now.
Could u tell me how to generate and do unit tests. You can take x86_64 as an example.
Thanks!