diff --git a/loongarch64/Makefile b/loongarch64/Makefile new file mode 100644 index 0000000..fec1e88 --- /dev/null +++ b/loongarch64/Makefile @@ -0,0 +1,3 @@ +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..c774839 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..e0cd7a6 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..e212901 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..1db7a47 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..c0ec0f1 --- /dev/null +++ b/loongarch64/data-new.test @@ -0,0 +1,6 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000008 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..425af5c 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..ac4c99e 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..946c834 --- /dev/null +++ b/loongarch64/gcc-static-local-var-6.test @@ -0,0 +1,6 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000008 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..ba70c6f 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..b03ab1f 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..80ae8ba --- /dev/null +++ b/loongarch64/new-function.test @@ -0,0 +1,7 @@ +#!/bin/bash +source $KPATCH_TEST_LIBRARY + +# 0000000000000008 t kpatch_n_tty_write +# 0000000000000008 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..780a8d2 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..438f835 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