mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
test: use the init_module syscall to trigger save/restore
create_module isn't defined on arm64 PiperOrigin-RevId: 521866613
This commit is contained in:
@@ -20,13 +20,7 @@
|
||||
|
||||
#include "test/util/save_util.h"
|
||||
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
#define SYS_TRIGGER_SAVE SYS_create_module
|
||||
#elif defined(__aarch64__)
|
||||
#define SYS_TRIGGER_SAVE SYS_finit_module
|
||||
#else
|
||||
#error "Unknown architecture"
|
||||
#endif
|
||||
#define SYS_TRIGGER_SAVE SYS_init_module
|
||||
|
||||
namespace gvisor {
|
||||
namespace testing {
|
||||
|
||||
Reference in New Issue
Block a user