diff --git a/loongarch64/Makefile b/loongarch64/Makefile new file mode 100644 index 0000000..232ea6c --- /dev/null +++ b/loongarch64/Makefile @@ -0,0 +1,2 @@ +CDO_ENV=ALT_STRUCT_SIZE=12 BUG_STRUCT_SIZE=12 EX_STRUCT_SIZE=12 JUMP_STRUCT_SIZE=16 ORC_STRUCT_SIZE=8 +include ../../Makefile.include diff --git a/loongarch64/cmdline-string.ORIG.o b/loongarch64/cmdline-string.ORIG.o new file mode 100644 index 0000000..369bf9c Binary files /dev/null and b/loongarch64/cmdline-string.ORIG.o differ diff --git a/loongarch64/cmdline-string.PATCHED.o b/loongarch64/cmdline-string.PATCHED.o new file mode 100644 index 0000000..5aa1101 Binary files /dev/null and b/loongarch64/cmdline-string.PATCHED.o differ diff --git a/loongarch64/cmdline-string.test b/loongarch64/cmdline-string.test new file mode 100755 index 0000000..7a04479 --- /dev/null +++ b/loongarch64/cmdline-string.test @@ -0,0 +1,5 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000000 t cmdline_proc_show +assert_num_funcs 1 diff --git a/loongarch64/data-new.ORIG.o b/loongarch64/data-new.ORIG.o new file mode 100644 index 0000000..e297d65 Binary files /dev/null and b/loongarch64/data-new.ORIG.o differ diff --git a/loongarch64/data-new.PATCHED.o b/loongarch64/data-new.PATCHED.o new file mode 100644 index 0000000..4a67260 Binary files /dev/null and b/loongarch64/data-new.PATCHED.o differ diff --git a/loongarch64/data-new.test b/loongarch64/data-new.test new file mode 100755 index 0000000..19539aa --- /dev/null +++ b/loongarch64/data-new.test @@ -0,0 +1,6 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000000 t meminfo_proc_show + +assert_num_funcs 1 diff --git a/loongarch64/gcc-static-local-var-6.ORIG.o b/loongarch64/gcc-static-local-var-6.ORIG.o new file mode 100644 index 0000000..ff6d9f8 Binary files /dev/null and b/loongarch64/gcc-static-local-var-6.ORIG.o differ diff --git a/loongarch64/gcc-static-local-var-6.PATCHED.o b/loongarch64/gcc-static-local-var-6.PATCHED.o new file mode 100644 index 0000000..12169d6 Binary files /dev/null and b/loongarch64/gcc-static-local-var-6.PATCHED.o differ diff --git a/loongarch64/gcc-static-local-var-6.test b/loongarch64/gcc-static-local-var-6.test new file mode 100755 index 0000000..c384246 --- /dev/null +++ b/loongarch64/gcc-static-local-var-6.test @@ -0,0 +1,6 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000000 t __nf_ip6_route + +assert_num_funcs 1 diff --git a/loongarch64/new-function.ORIG.o b/loongarch64/new-function.ORIG.o new file mode 100644 index 0000000..4b4cd4a Binary files /dev/null and b/loongarch64/new-function.ORIG.o differ diff --git a/loongarch64/new-function.PATCHED.o b/loongarch64/new-function.PATCHED.o new file mode 100644 index 0000000..0d77294 Binary files /dev/null and b/loongarch64/new-function.PATCHED.o differ diff --git a/loongarch64/new-function.test b/loongarch64/new-function.test new file mode 100755 index 0000000..30713aa --- /dev/null +++ b/loongarch64/new-function.test @@ -0,0 +1,7 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000000 t kpatch_n_tty_write +# 0000000000000000 t n_tty_write + +assert_num_funcs 2 diff --git a/loongarch64/proc-version.ORIG.o b/loongarch64/proc-version.ORIG.o new file mode 100644 index 0000000..0ed80a0 Binary files /dev/null and b/loongarch64/proc-version.ORIG.o differ diff --git a/loongarch64/proc-version.PATCHED.o b/loongarch64/proc-version.PATCHED.o new file mode 100644 index 0000000..087c4af Binary files /dev/null and b/loongarch64/proc-version.PATCHED.o differ diff --git a/loongarch64/proc-version.test b/loongarch64/proc-version.test new file mode 100755 index 0000000..a82cee6 --- /dev/null +++ b/loongarch64/proc-version.test @@ -0,0 +1,5 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000000 t version_proc_show +assert_num_funcs 1 diff --git a/loongarch64/syscall.ORIG.o b/loongarch64/syscall.ORIG.o new file mode 100644 index 0000000..3140a98 Binary files /dev/null and b/loongarch64/syscall.ORIG.o differ diff --git a/loongarch64/syscall.PATCHED.o b/loongarch64/syscall.PATCHED.o new file mode 100644 index 0000000..3a8940f Binary files /dev/null and b/loongarch64/syscall.PATCHED.o differ diff --git a/loongarch64/syscall.test b/loongarch64/syscall.test new file mode 100755 index 0000000..836ace3 --- /dev/null +++ b/loongarch64/syscall.test @@ -0,0 +1,7 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +#0000000000000000 t __kpatch_do_sys_newuname +#0000000000000000 t __se_sys_newuname + +assert_num_funcs 2