diff options
author | Maciej enczykowski <maze@google.com> | 2019-03-24 20:21:12 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-24 20:21:12 -0700 |
commit | 0508643812e44aa8d18ba5aca5aef8794093673c (patch) | |
tree | 46e04db69c291ff2641384ae036feb09577df0a9 | |
parent | 3037c36ff89c336bce890dd39d41cc8f22f92862 (diff) | |
parent | fab9a471469df57b89ab3040e8803345fd42e589 (diff) | |
download | tests-0508643812e44aa8d18ba5aca5aef8794093673c.tar.gz |
net-test: allow bpf on 32-bit userspace with 64-bit kernel
am: fab9a47146
Change-Id: Id8b330449f6499dc79274ca1a8b3dddf364820bf
-rwxr-xr-x | net/test/bpf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/test/bpf.py b/net/test/bpf.py index 43502bd..5062e31 100755 --- a/net/test/bpf.py +++ b/net/test/bpf.py @@ -31,12 +31,14 @@ import platform # are not running with COMPAT_UTS_MACHINE and must be 64-bit at all times. # TODO: is there a better way of doing this? __NR_bpf = { + "aarch64-32bit": 386, "aarch64-64bit": 280, "armv7l-32bit": 386, "armv8l-32bit": 386, "armv8l-64bit": 280, "i686-32bit": 357, "i686-64bit": 321, + "x86_64-32bit": 357, "x86_64-64bit": 321, }[os.uname()[4] + "-" + platform.architecture()[0]] |