Skip to content

Add aarch64 unit tests #51

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added aarch64/ASSERT_RTNL-detect.ORIG.o
Binary file not shown.
Binary file added aarch64/ASSERT_RTNL-detect.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/ASSERT_RTNL-detect.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t __dev_get_by_flags
assert_num_funcs 1
3 changes: 3 additions & 0 deletions aarch64/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CDO_ENV = ALT_STRUCT_SIZE=12 BUG_STRUCT_SIZE=12 EX_STRUCT_SIZE=12 JUMP_STRUCT_SIZE=16

include ../../Makefile.include
Binary file added aarch64/bug-table-section.ORIG.o
Binary file not shown.
Binary file added aarch64/bug-table-section.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/bug-table-section.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t sysctl_head_grab
assert_num_funcs 1
Binary file added aarch64/cmdline-string.ORIG.o
Binary file not shown.
Binary file added aarch64/cmdline-string.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/cmdline-string.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t cmdline_proc_show
assert_num_funcs 1
Binary file added aarch64/data-new.ORIG.o
Binary file not shown.
Binary file added aarch64/data-new.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/data-new.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t meminfo_proc_show
assert_num_funcs 1
Binary file added aarch64/data-read-mostly.ORIG.o
Binary file not shown.
Binary file added aarch64/data-read-mostly.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/data-read-mostly.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t __netif_receive_skb_core.constprop.0
assert_num_funcs 1
Binary file added aarch64/fixup-section.ORIG.o
Binary file not shown.
Binary file added aarch64/fixup-section.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/fixup-section.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t filldir
assert_num_funcs 1
Binary file added aarch64/gcc-isra.ORIG.o
Binary file not shown.
Binary file added aarch64/gcc-isra.PATCHED.o
Binary file not shown.
6 changes: 6 additions & 0 deletions aarch64/gcc-isra.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t proc_sys_poll_notify
# 0000000000000000 t system_uses_lse_atomics
assert_num_funcs 2
Binary file added aarch64/gcc-static-local-var-2.ORIG.o
Binary file not shown.
Binary file added aarch64/gcc-static-local-var-2.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/gcc-static-local-var-2.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t mmap_region
assert_num_funcs 1
Binary file added aarch64/gcc-static-local-var-3.ORIG.o
Binary file not shown.
Binary file added aarch64/gcc-static-local-var-3.PATCHED.o
Binary file not shown.
6 changes: 6 additions & 0 deletions aarch64/gcc-static-local-var-3.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t deferred_cad
# 0000000000000000 T kpatch_bar
assert_num_funcs 2
Binary file added aarch64/gcc-static-local-var-4.ORIG.o
Binary file not shown.
Binary file added aarch64/gcc-static-local-var-4.PATCHED.o
Binary file not shown.
8 changes: 8 additions & 0 deletions aarch64/gcc-static-local-var-4.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t aio_free_ring
# 0000000000000000 t aio_setup_ring
# 0000000000000000 T kpatch_aio_foo
# 0000000000000000 t put_aio_ring_file
assert_num_funcs 4
Binary file added aarch64/gcc-static-local-var-5.ORIG.o
Binary file not shown.
Binary file added aarch64/gcc-static-local-var-5.PATCHED.o
Binary file not shown.
13 changes: 13 additions & 0 deletions aarch64/gcc-static-local-var-5.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t audit_log_config_change
# 0000000000000000 t audit_log_end
# 0000000000000000 t audit_log_end.part.0
# 0000000000000000 t audit_log_feature_change
# 0000000000000000 t audit_log_path_denied
# 0000000000000000 t audit_log_start.part.0
# 0000000000000000 t audit_receive_msg
# 0000000000000000 T kpatch_audit_check
# 0000000000000000 T kpatch_audit_foo
assert_num_funcs 9
Binary file added aarch64/gcc-static-local-var-6.ORIG.o
Binary file not shown.
Binary file added aarch64/gcc-static-local-var-6.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/gcc-static-local-var-6.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t __nf_ip6_route
assert_num_funcs 1
Binary file added aarch64/mapping.ORIG.o
Binary file not shown.
Binary file added aarch64/mapping.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/mapping.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t __alloc_skb
assert_num_funcs 1
Binary file added aarch64/meminfo-init.ORIG.o
Binary file not shown.
Binary file added aarch64/meminfo-init.PATCHED.FAIL.o
Binary file not shown.
Empty file added aarch64/meminfo-init.test
Empty file.
Binary file added aarch64/meminfo-string.ORIG.o
Binary file not shown.
Binary file added aarch64/meminfo-string.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/meminfo-string.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t meminfo_proc_show
assert_num_funcs 1
Binary file added aarch64/new-function.ORIG.o
Binary file not shown.
Binary file added aarch64/new-function.PATCHED.o
Binary file not shown.
6 changes: 6 additions & 0 deletions aarch64/new-function.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t kpatch_n_tty_write
# 0000000000000000 t n_tty_write
assert_num_funcs 2
Binary file added aarch64/parainstructions-section.ORIG.o
Binary file not shown.
Binary file added aarch64/parainstructions-section.PATCHED.o
Binary file not shown.
15 changes: 15 additions & 0 deletions aarch64/parainstructions-section.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t proc_alloc_inum
# 0000000000000000 t proc_create
# 0000000000000000 t proc_create_data
# 0000000000000000 t proc_create_mount_point
# 0000000000000000 t proc_create_seq_private
# 0000000000000000 t proc_create_single_data
# 0000000000000000 t _proc_mkdir
# 0000000000000000 t proc_mkdir
# 0000000000000000 t proc_mkdir_data
# 0000000000000000 t proc_mkdir_mode
# 0000000000000000 t proc_register
assert_num_funcs 11
Binary file added aarch64/smp-locks-section.ORIG.o
Binary file not shown.
Binary file added aarch64/smp-locks-section.PATCHED.o
Binary file not shown.
6 changes: 6 additions & 0 deletions aarch64/smp-locks-section.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t __tty_buffer_request_room
# 0000000000000000 t tty_buffer_request_room
assert_num_funcs 2
Binary file added aarch64/special-static.ORIG.o
Binary file not shown.
Binary file added aarch64/special-static.PATCHED.o
Binary file not shown.
6 changes: 6 additions & 0 deletions aarch64/special-static.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t copy_signal
# 0000000000000000 T kpatch_foo
assert_num_funcs 2
Binary file added aarch64/syscall.ORIG.o
Binary file not shown.
Binary file added aarch64/syscall.PATCHED.o
Binary file not shown.
6 changes: 6 additions & 0 deletions aarch64/syscall.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 __arm64_sys_newuname
# 0000000000000000 __kpatch_do_sys_newuname
assert_num_funcs 2
Binary file added aarch64/tracepoints-section.ORIG.o
Binary file not shown.
Binary file added aarch64/tracepoints-section.PATCHED.o
Binary file not shown.
5 changes: 5 additions & 0 deletions aarch64/tracepoints-section.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
source $KPATCH_TEST_LIBRARY

# 0000000000000000 t run_timer_softirq
assert_num_funcs 1