summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej enczykowski <maze@google.com>2019-03-24 20:24:09 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-03-24 20:24:09 -0700
commitba594a073f7d3827bfd95b2f391274f9c30a0540 (patch)
tree46e04db69c291ff2641384ae036feb09577df0a9
parent9dc5d59b92303b64562e10cc44ade4186cf28033 (diff)
parent0508643812e44aa8d18ba5aca5aef8794093673c (diff)
downloadtests-ba594a073f7d3827bfd95b2f391274f9c30a0540.tar.gz
net-test: allow bpf on 32-bit userspace with 64-bit kernel am: fab9a47146
am: 0508643812 Change-Id: I117cbb02e30bdb00a68d88e10ac4511dfc5e9d6e
-rwxr-xr-xnet/test/bpf.py2
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]]