Diff of the two buildlogs: -- --- b1/build.log 2024-11-22 19:42:29.359616775 +0000 +++ b2/build.log 2024-11-22 19:43:14.561568241 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Nov 22 07:41:02 -12 2024 -I: pbuilder-time-stamp: 1732304462 +I: Current time: Fri Dec 26 16:05:31 +14 2025 +I: pbuilder-time-stamp: 1766714731 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -29,53 +29,85 @@ dpkg-source: info: applying auto-gitignore I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/16861/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/D01_modify_environment starting +debug: Running on infom08-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 26 02:05 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=6 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=5 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='a08a4dee08d249f4ac0db25894551303' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='16861' - PS1='# ' - PS2='> ' + INVOCATION_ID=2cfd47db6b3d4e50866173700d781c94 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=24142 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.8egDuFbI/pbuilderrc_TyJJ --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.8egDuFbI/b1 --logfile b1/build.log golang-github-cloudflare-cbpfc_0.0~git20231012.992ed75-2.dsc' - SUDO_GID='111' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.8egDuFbI/pbuilderrc_Qc7p --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.8egDuFbI/b2 --logfile b2/build.log golang-github-cloudflare-cbpfc_0.0~git20231012.992ed75-2.dsc' + SUDO_GID=111 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom07-i386 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1 (2024-11-11) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/16861/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -180,7 +212,7 @@ Get: 53 http://deb.debian.org/debian unstable/main i386 golang-golang-x-text-dev all 0.16.0-1 [4003 kB] Get: 54 http://deb.debian.org/debian unstable/main i386 golang-golang-x-crypto-dev all 1:0.25.0-1 [1682 kB] Get: 55 http://deb.debian.org/debian unstable/main i386 golang-golang-x-net-dev all 1:0.27.0-1 [898 kB] -Fetched 140 MB in 1s (101 MB/s) +Fetched 140 MB in 1s (139 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19952 files and directories currently installed.) @@ -415,7 +447,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-cloudflare-cbpfc-0.0~git20231012.992ed75/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-cloudflare-cbpfc_0.0~git20231012.992ed75-2_source.changes +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-cloudflare-cbpfc-0.0~git20231012.992ed75/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-github-cloudflare-cbpfc_0.0~git20231012.992ed75-2_source.changes dpkg-buildpackage: info: source package golang-github-cloudflare-cbpfc dpkg-buildpackage: info: source version 0.0~git20231012.992ed75-2 dpkg-buildpackage: info: source distribution unstable @@ -433,80 +469,80 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 6 github.com/cloudflare/cbpfc github.com/cloudflare/cbpfc/clang + cd _build && go install -trimpath -v -p 5 github.com/cloudflare/cbpfc github.com/cloudflare/cbpfc/clang internal/unsafeheader -internal/goexperiment internal/goarch internal/byteorder internal/coverage/rtcov -internal/goos -internal/godebugs internal/cpu +internal/godebugs internal/abi -internal/profilerecord +internal/goexperiment internal/chacha8rand +internal/goos +internal/profilerecord internal/runtime/atomic -runtime/internal/math internal/runtime/syscall -runtime/internal/sys -cmp internal/bytealg -internal/itoa +runtime/internal/math +cmp +runtime/internal/sys internal/runtime/exithook +internal/itoa internal/race math/bits +internal/stringslite unicode/utf8 sync/atomic +internal/asan unicode math -internal/asan internal/msan crypto/internal/alias -internal/stringslite crypto/internal/boring/sig runtime -internal/reflectlite iter -sync +internal/reflectlite crypto/subtle +sync slices internal/bisect internal/testlog errors sort internal/godebug -strconv -internal/oserror io +internal/oserror +strconv path syscall hash bytes strings -reflect crypto +reflect crypto/cipher regexp/syntax crypto/internal/boring crypto/sha1 +internal/syscall/execenv regexp time internal/syscall/unix -internal/syscall/execenv -internal/poll -io/fs context +io/fs +internal/poll +internal/filepathlite internal/fmtsort encoding/binary -internal/filepathlite os golang.org/x/sys/unix fmt path/filepath io/ioutil os/exec -encoding/hex github.com/pkg/errors +encoding/hex golang.org/x/net/bpf net/url text/template/parse @@ -519,12 +555,12 @@ debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/golang-github-cloudflare-cbpfc-0.0~git20231012.992ed75' dh_auto_test -- --short - cd _build && go test -vet=off -v -p 6 --short github.com/cloudflare/cbpfc github.com/cloudflare/cbpfc/clang + cd _build && go test -vet=off -v -p 5 --short github.com/cloudflare/cbpfc github.com/cloudflare/cbpfc/clang ? github.com/cloudflare/cbpfc/clang [no test files] === RUN TestFunctionName --- PASS: TestFunctionName (0.00s) === RUN TestNoInline ---- SKIP: TestNoInline (0.11s) +--- SKIP: TestNoInline (0.03s) === RUN TestZero --- PASS: TestZero (0.00s) === RUN TestRaw @@ -621,8 +657,8 @@ return: 20: Exit === RUN TestRewriteLargePacketOffsetsDeadBlock/kernel ---- PASS: TestRewriteLargePacketOffsetsDeadBlock (0.12s) - --- SKIP: TestRewriteLargePacketOffsetsDeadBlock/C (0.07s) +--- PASS: TestRewriteLargePacketOffsetsDeadBlock (0.08s) + --- SKIP: TestRewriteLargePacketOffsetsDeadBlock/C (0.03s) --- SKIP: TestRewriteLargePacketOffsetsDeadBlock/eBPF (0.00s) --- PASS: TestRewriteLargePacketOffsetsDeadBlock/kernel (0.05s) === RUN TestAbsoluteGuardSize @@ -939,29 +975,29 @@ return: 22: Exit === RUN TestLoadIndirectBigOffset/kernel#07 ---- PASS: TestLoadIndirectBigOffset (0.76s) - --- SKIP: TestLoadIndirectBigOffset/C (0.06s) +--- PASS: TestLoadIndirectBigOffset (0.57s) + --- SKIP: TestLoadIndirectBigOffset/C (0.03s) --- SKIP: TestLoadIndirectBigOffset/eBPF (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel (0.00s) - --- SKIP: TestLoadIndirectBigOffset/C#01 (0.04s) + --- SKIP: TestLoadIndirectBigOffset/C#01 (0.03s) --- SKIP: TestLoadIndirectBigOffset/eBPF#01 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#01 (0.00s) --- SKIP: TestLoadIndirectBigOffset/C#02 (0.03s) --- SKIP: TestLoadIndirectBigOffset/eBPF#02 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#02 (0.05s) - --- SKIP: TestLoadIndirectBigOffset/C#03 (0.06s) + --- SKIP: TestLoadIndirectBigOffset/C#03 (0.03s) --- SKIP: TestLoadIndirectBigOffset/eBPF#03 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#03 (0.05s) - --- SKIP: TestLoadIndirectBigOffset/C#04 (0.06s) + --- SKIP: TestLoadIndirectBigOffset/C#04 (0.04s) --- SKIP: TestLoadIndirectBigOffset/eBPF#04 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#04 (0.05s) - --- SKIP: TestLoadIndirectBigOffset/C#05 (0.05s) + --- SKIP: TestLoadIndirectBigOffset/C#05 (0.04s) --- SKIP: TestLoadIndirectBigOffset/eBPF#05 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#05 (0.05s) - --- SKIP: TestLoadIndirectBigOffset/C#06 (0.09s) + --- SKIP: TestLoadIndirectBigOffset/C#06 (0.03s) --- SKIP: TestLoadIndirectBigOffset/eBPF#06 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#06 (0.05s) - --- SKIP: TestLoadIndirectBigOffset/C#07 (0.06s) + --- SKIP: TestLoadIndirectBigOffset/C#07 (0.03s) --- SKIP: TestLoadIndirectBigOffset/eBPF#07 (0.00s) --- PASS: TestLoadIndirectBigOffset/kernel#07 (0.05s) === RUN TestLoadIndirectGuardOverflow @@ -1006,8 +1042,8 @@ return: 32: Exit === RUN TestLoadIndirectGuardOverflow/kernel ---- PASS: TestLoadIndirectGuardOverflow (0.11s) - --- SKIP: TestLoadIndirectGuardOverflow/C (0.06s) +--- PASS: TestLoadIndirectGuardOverflow (0.09s) + --- SKIP: TestLoadIndirectGuardOverflow/C (0.04s) --- SKIP: TestLoadIndirectGuardOverflow/eBPF (0.00s) --- PASS: TestLoadIndirectGuardOverflow/kernel (0.05s) === RUN TestScratchZero @@ -1058,8 +1094,8 @@ return: 16: Exit === RUN TestALUDivNegative/kernel ---- PASS: TestALUDivNegative (0.06s) - --- SKIP: TestALUDivNegative/C (0.06s) +--- PASS: TestALUDivNegative (0.03s) + --- SKIP: TestALUDivNegative/C (0.03s) --- SKIP: TestALUDivNegative/eBPF (0.00s) --- PASS: TestALUDivNegative/kernel (0.00s) === RUN TestALUOr @@ -1106,82 +1142,20 @@ === PAUSE TestTAX === CONT TestZeroInitA === RUN TestZeroInitA/C -=== CONT TestALUShiftLeft -=== RUN TestALUShiftLeft/C === CONT TestScratchX === RUN TestScratchX/C -=== CONT TestALUMul -=== RUN TestALUMul/C -=== CONT TestALUAdd -=== RUN TestALUAdd/C +=== CONT TestALUShiftLeft +=== RUN TestALUShiftLeft/C === CONT TestTAX === RUN TestTAX/C -=== CONT TestALUAnd -=== RUN TestALUAnd/C -=== CONT TestALUOr -=== RUN TestALUOr/C -=== RUN TestALUShiftLeft/eBPF -=== RUN TestALUAdd/eBPF -=== RUN TestZeroInitA/eBPF -=== NAME TestALUShiftLeft/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: LSh32Imm dst: r4 imm: 0 - 4: JEqImm dst: r4 off: -1 imm: 1 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUShiftLeft/kernel -=== NAME TestALUAdd/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Add32Imm dst: r4 imm: 0 - 4: JEqImm dst: r4 off: -1 imm: 1 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== NAME TestZeroInitA/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 0 - 3: Mov32Reg dst: r4 src: r4 - 4: JaImm dst: r0 off: -1 imm: 0 - result: - 5: MovImm dst: r0 imm: 2 - 6: JEqImm dst: r4 off: -1 imm: 0 - 7: MovImm dst: r0 imm: 1 - return: - 8: Exit -=== RUN TestZeroInitA/kernel -=== RUN TestALUShiftLeft/C#01 -=== RUN TestALUAdd/kernel -=== RUN TestALUAdd/C#01 +=== CONT TestTXA +=== RUN TestTXA/C +=== CONT TestRetConstant +=== RUN TestRetConstant/C +=== CONT TestRetA +=== RUN TestRetA/C +=== CONT TestJumpIfBitsNotSet +=== RUN TestJumpIfBitsNotSet/C === RUN TestScratchX/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1212,28 +1186,6 @@ 20: Exit === RUN TestScratchX/kernel === RUN TestScratchX/C#01 -=== RUN TestALUMul/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 0 - 3: Mul32Imm dst: r4 imm: 1 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUMul/kernel -=== RUN TestALUMul/C#01 === RUN TestTAX/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1251,25 +1203,20 @@ return: 10: Exit === RUN TestTAX/kernel ---- PASS: TestTAX (0.08s) - --- SKIP: TestTAX/C (0.08s) +=== RUN TestALUShiftLeft/eBPF +--- PASS: TestTAX (0.03s) + --- SKIP: TestTAX/C (0.03s) --- SKIP: TestTAX/eBPF (0.00s) --- PASS: TestTAX/kernel (0.00s) -=== CONT TestTXA -=== RUN TestTXA/C ---- PASS: TestZeroInitA (0.12s) - --- SKIP: TestZeroInitA/C (0.07s) - --- SKIP: TestZeroInitA/eBPF (0.00s) - --- PASS: TestZeroInitA/kernel (0.05s) -=== CONT TestRetConstant -=== RUN TestRetConstant/C -=== RUN TestALUOr/eBPF +=== CONT TestJumpIfBitsSet +=== RUN TestJumpIfBitsSet/C +=== NAME TestALUShiftLeft/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 1 - 3: Or32Imm dst: r4 imm: 0 + 3: LSh32Imm dst: r4 imm: 0 4: JEqImm dst: r4 off: -1 imm: 1 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 @@ -1283,135 +1230,23 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUOr/kernel -=== RUN TestALUOr/C#01 -=== RUN TestScratchX/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r5 imm: 0 - 3: StXMemW dst: rfp src: r5 off: -32 imm: 0 - 4: Mov32Imm dst: r5 imm: 0 - 5: Mov32Imm dst: r5 imm: -1 - 6: StXMemW dst: rfp src: r5 off: -28 imm: 0 - 7: Mov32Imm dst: r5 imm: -1 - 8: StXMemW dst: rfp src: r5 off: -36 imm: 0 - 9: LdXMemW dst: r5 src: rfp off: -32 imm: 0 - 10: Mov32Reg dst: r4 src: r5 - 11: JEqImm dst: r4 off: -1 imm: 0 - filter_block_10: - 12: Mov32Imm dst: r4 imm: 0 - 13: JaImm dst: r0 off: -1 imm: 0 - filter_block_11: - 14: Mov32Imm dst: r4 imm: 1 - 15: JaImm dst: r0 off: -1 imm: 0 - result: - 16: MovImm dst: r0 imm: 2 - 17: JEqImm dst: r4 off: -1 imm: 0 - 18: MovImm dst: r0 imm: 1 - return: - 19: Exit -=== RUN TestScratchX/kernel#01 ---- PASS: TestScratchX (0.16s) - --- SKIP: TestScratchX/C (0.08s) - --- SKIP: TestScratchX/eBPF (0.00s) - --- PASS: TestScratchX/kernel (0.00s) - --- SKIP: TestScratchX/C#01 (0.09s) - --- SKIP: TestScratchX/eBPF#01 (0.00s) - --- PASS: TestScratchX/kernel#01 (0.00s) -=== CONT TestRetA -=== RUN TestRetA/C -=== RUN TestALUShiftLeft/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 0 - 4: LSh32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 1 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUShiftLeft/kernel#01 -=== RUN TestALUShiftLeft/C#02 -=== RUN TestALUAnd/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: And32Imm dst: r4 imm: 0 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUAnd/kernel -=== RUN TestALUAnd/C#01 -=== RUN TestTXA/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r5 imm: 1 - 3: Mov32Reg dst: r4 src: r5 - 4: Mov32Reg dst: r4 src: r4 - 5: JaImm dst: r0 off: -1 imm: 0 - result: - 6: MovImm dst: r0 imm: 2 - 7: JEqImm dst: r4 off: -1 imm: 0 - 8: MovImm dst: r0 imm: 1 - return: - 9: Exit -=== RUN TestTXA/kernel ---- PASS: TestTXA (0.07s) - --- SKIP: TestTXA/C (0.07s) - --- SKIP: TestTXA/eBPF (0.00s) - --- PASS: TestTXA/kernel (0.00s) -=== CONT TestJumpIfBitsNotSet -=== RUN TestJumpIfBitsNotSet/C -=== RUN TestALUMul/eBPF#01 +=== RUN TestALUShiftLeft/kernel +=== RUN TestALUShiftLeft/C#01 +=== RUN TestZeroInitA/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 0 - 3: Mov32Imm dst: r5 imm: 1 - 4: Mul32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 0 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 + 3: Mov32Reg dst: r4 src: r4 + 4: JaImm dst: r0 off: -1 imm: 0 result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 + 5: MovImm dst: r0 imm: 2 + 6: JEqImm dst: r4 off: -1 imm: 0 + 7: MovImm dst: r0 imm: 1 return: - 13: Exit -=== RUN TestALUMul/kernel#01 -=== RUN TestALUMul/C#02 + 8: Exit +=== RUN TestZeroInitA/kernel === RUN TestRetConstant/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1427,52 +1262,6 @@ 7: Exit === RUN TestRetConstant/kernel === RUN TestRetConstant/C#01 -=== RUN TestALUAdd/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 0 - 4: Add32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 1 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUAdd/kernel#01 -=== RUN TestALUAdd/C#02 -=== RUN TestALUOr/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 0 - 4: Or32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 1 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUOr/kernel#01 -=== RUN TestALUOr/C#02 === RUN TestRetA/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1488,57 +1277,12 @@ return: 8: Exit === RUN TestRetA/kernel ---- PASS: TestRetA (0.06s) - --- SKIP: TestRetA/C (0.06s) +--- PASS: TestRetA (0.04s) + --- SKIP: TestRetA/C (0.04s) --- SKIP: TestRetA/eBPF (0.00s) --- PASS: TestRetA/kernel (0.00s) -=== CONT TestJumpIfBitsSet -=== RUN TestJumpIfBitsSet/C -=== RUN TestALUShiftLeft/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: LSh32Imm dst: r4 imm: 4 - 4: JEqImm dst: r4 off: -1 imm: 16 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUShiftLeft/kernel#02 -=== RUN TestALUShiftLeft/C#03 -=== RUN TestALUAnd/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 0 - 4: And32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 0 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUAnd/kernel#01 -=== RUN TestALUAnd/C#02 +=== CONT TestJumpIfLessOrEqual +=== RUN TestJumpIfLessOrEqual/C === RUN TestJumpIfBitsNotSet/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1560,73 +1304,37 @@ return: 12: Exit === RUN TestJumpIfBitsNotSet/kernel -=== RUN TestALUAdd/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 4 - 3: Add32Imm dst: r4 imm: 13 - 4: JEqImm dst: r4 off: -1 imm: 17 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUAdd/kernel#02 -=== RUN TestALUAdd/C#03 -=== RUN TestRetConstant/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 0 - 3: JaImm dst: r0 off: -1 imm: 0 - result: - 4: MovImm dst: r0 imm: 2 - 5: JEqImm dst: r4 off: -1 imm: 0 - 6: MovImm dst: r0 imm: 1 - return: - 7: Exit -=== RUN TestRetConstant/kernel#01 -=== RUN TestALUMul/eBPF#02 +=== RUN TestTXA/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 4 - 3: Mul32Imm dst: r4 imm: 13 - 4: JEqImm dst: r4 off: -1 imm: 52 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r5 imm: 1 + 3: Mov32Reg dst: r4 src: r5 + 4: Mov32Reg dst: r4 src: r4 + 5: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 6: MovImm dst: r0 imm: 2 + 7: JEqImm dst: r4 off: -1 imm: 0 + 8: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestALUMul/kernel#02 -=== RUN TestALUMul/C#03 -=== RUN TestALUShiftLeft/eBPF#03 + 9: Exit +=== RUN TestTXA/kernel +--- PASS: TestTXA (0.06s) + --- SKIP: TestTXA/C (0.06s) + --- SKIP: TestTXA/eBPF (0.00s) + --- PASS: TestTXA/kernel (0.00s) +=== CONT TestJumpIfGreaterOrEqual +=== RUN TestJumpIfGreaterOrEqual/C +=== RUN TestALUShiftLeft/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 4 + 3: Mov32Imm dst: r5 imm: 0 4: LSh32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 16 + 5: JEqImm dst: r4 off: -1 imm: 1 filter_block_4: 6: Mov32Imm dst: r4 imm: 0 7: JaImm dst: r0 off: -1 imm: 0 @@ -1639,22 +1347,45 @@ 12: MovImm dst: r0 imm: 1 return: 13: Exit -=== RUN TestALUShiftLeft/kernel#03 ---- PASS: TestALUShiftLeft (0.30s) - --- SKIP: TestALUShiftLeft/C (0.06s) - --- SKIP: TestALUShiftLeft/eBPF (0.00s) - --- PASS: TestALUShiftLeft/kernel (0.00s) - --- SKIP: TestALUShiftLeft/C#01 (0.10s) - --- SKIP: TestALUShiftLeft/eBPF#01 (0.00s) - --- PASS: TestALUShiftLeft/kernel#01 (0.00s) - --- SKIP: TestALUShiftLeft/C#02 (0.06s) - --- SKIP: TestALUShiftLeft/eBPF#02 (0.00s) - --- PASS: TestALUShiftLeft/kernel#02 (0.00s) - --- SKIP: TestALUShiftLeft/C#03 (0.07s) - --- SKIP: TestALUShiftLeft/eBPF#03 (0.00s) - --- PASS: TestALUShiftLeft/kernel#03 (0.00s) -=== CONT TestJumpIfLessOrEqual -=== RUN TestJumpIfLessOrEqual/C +=== RUN TestALUShiftLeft/kernel#01 +=== RUN TestALUShiftLeft/C#02 +=== RUN TestScratchX/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r5 imm: 0 + 3: StXMemW dst: rfp src: r5 off: -32 imm: 0 + 4: Mov32Imm dst: r5 imm: 0 + 5: Mov32Imm dst: r5 imm: -1 + 6: StXMemW dst: rfp src: r5 off: -28 imm: 0 + 7: Mov32Imm dst: r5 imm: -1 + 8: StXMemW dst: rfp src: r5 off: -36 imm: 0 + 9: LdXMemW dst: r5 src: rfp off: -32 imm: 0 + 10: Mov32Reg dst: r4 src: r5 + 11: JEqImm dst: r4 off: -1 imm: 0 + filter_block_10: + 12: Mov32Imm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 + filter_block_11: + 14: Mov32Imm dst: r4 imm: 1 + 15: JaImm dst: r0 off: -1 imm: 0 + result: + 16: MovImm dst: r0 imm: 2 + 17: JEqImm dst: r4 off: -1 imm: 0 + 18: MovImm dst: r0 imm: 1 + return: + 19: Exit +=== RUN TestScratchX/kernel#01 +--- PASS: TestScratchX (0.07s) + --- SKIP: TestScratchX/C (0.03s) + --- SKIP: TestScratchX/eBPF (0.00s) + --- PASS: TestScratchX/kernel (0.00s) + --- SKIP: TestScratchX/C#01 (0.03s) + --- SKIP: TestScratchX/eBPF#01 (0.00s) + --- PASS: TestScratchX/kernel#01 (0.00s) +=== CONT TestJumpIfLessThan +=== RUN TestJumpIfLessThan/C === RUN TestJumpIfBitsSet/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1676,120 +1407,6 @@ 11: Exit === RUN TestJumpIfBitsSet/kernel === RUN TestJumpIfBitsSet/C#01 -=== RUN TestALUAnd/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: And32Imm dst: r4 imm: 128 - 4: JEqImm dst: r4 off: -1 imm: 128 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUAnd/kernel#02 -=== RUN TestALUAnd/C#03 -=== RUN TestALUAdd/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 4 - 3: Mov32Imm dst: r5 imm: 13 - 4: Add32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 17 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUAdd/kernel#03 ---- PASS: TestALUAdd (0.34s) - --- SKIP: TestALUAdd/C (0.06s) - --- SKIP: TestALUAdd/eBPF (0.00s) - --- PASS: TestALUAdd/kernel (0.00s) - --- SKIP: TestALUAdd/C#01 (0.13s) - --- SKIP: TestALUAdd/eBPF#01 (0.00s) - --- PASS: TestALUAdd/kernel#01 (0.00s) - --- SKIP: TestALUAdd/C#02 (0.08s) - --- SKIP: TestALUAdd/eBPF#02 (0.00s) - --- PASS: TestALUAdd/kernel#02 (0.00s) - --- SKIP: TestALUAdd/C#03 (0.07s) - --- SKIP: TestALUAdd/eBPF#03 (0.00s) - --- PASS: TestALUAdd/kernel#03 (0.00s) -=== CONT TestJumpIfGreaterOrEqual -=== RUN TestJumpIfGreaterOrEqual/C -=== RUN TestALUOr/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: Or32Imm dst: r4 imm: 15 - 4: JEqImm dst: r4 off: -1 imm: 255 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestJumpIfBitsNotSet/C#01 -=== RUN TestALUOr/kernel#02 -=== RUN TestALUOr/C#03 ---- PASS: TestRetConstant (0.22s) - --- SKIP: TestRetConstant/C (0.08s) - --- SKIP: TestRetConstant/eBPF (0.00s) - --- PASS: TestRetConstant/kernel (0.00s) - --- SKIP: TestRetConstant/C#01 (0.09s) - --- SKIP: TestRetConstant/eBPF#01 (0.00s) - --- PASS: TestRetConstant/kernel#01 (0.06s) -=== CONT TestJumpIfLessThan -=== RUN TestJumpIfLessThan/C -=== RUN TestALUMul/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 4 - 3: Mov32Imm dst: r5 imm: 13 - 4: Mul32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 52 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUMul/kernel#03 -=== RUN TestALUMul/C#04 === RUN TestJumpIfLessOrEqual/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1810,55 +1427,26 @@ return: 11: Exit === RUN TestJumpIfLessOrEqual/kernel -=== RUN TestALUAnd/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: Mov32Imm dst: r5 imm: 128 - 4: And32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 128 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUAnd/kernel#03 -=== RUN TestALUAnd/C#04 -=== RUN TestJumpIfBitsNotSet/eBPF#01 +=== RUN TestRetConstant/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: JEqImm dst: r4 off: -1 imm: 0 - filter_block_2: - 4: JSetImm dst: r4 off: -1 imm: 4 - 5: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 0 + 3: JaImm dst: r0 off: -1 imm: 0 result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 + 4: MovImm dst: r0 imm: 2 + 5: JEqImm dst: r4 off: -1 imm: 0 + 6: MovImm dst: r0 imm: 1 return: - 15: Exit -=== RUN TestJumpIfBitsNotSet/kernel#01 + 7: Exit +=== RUN TestRetConstant/kernel#01 +--- PASS: TestZeroInitA (0.09s) + --- SKIP: TestZeroInitA/C (0.04s) + --- SKIP: TestZeroInitA/eBPF (0.00s) + --- PASS: TestZeroInitA/kernel (0.05s) +=== CONT TestJumpIfGreaterThan +=== RUN TestJumpIfGreaterThan/C === RUN TestJumpIfGreaterOrEqual/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1880,7 +1468,29 @@ 11: Exit === RUN TestJumpIfGreaterOrEqual/kernel === RUN TestJumpIfGreaterOrEqual/C#01 +=== RUN TestALUShiftLeft/eBPF#02 === RUN TestJumpIfLessThan/eBPF +=== NAME TestALUShiftLeft/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: LSh32Imm dst: r4 imm: 4 + 4: JEqImm dst: r4 off: -1 imm: 16 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== NAME TestJumpIfLessThan/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -1899,7 +1509,9 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit +=== RUN TestALUShiftLeft/kernel#02 === RUN TestJumpIfLessThan/kernel +=== RUN TestALUShiftLeft/C#03 === RUN TestJumpIfBitsSet/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -1927,134 +1539,10 @@ 15: Exit === RUN TestJumpIfBitsSet/kernel#01 === RUN TestJumpIfBitsSet/C#02 -=== RUN TestJumpIfLessOrEqual/C#01 -=== RUN TestALUOr/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: Mov32Imm dst: r5 imm: 15 - 4: Or32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 255 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUOr/kernel#03 ---- PASS: TestALUOr (0.38s) - --- SKIP: TestALUOr/C (0.06s) - --- SKIP: TestALUOr/eBPF (0.00s) - --- PASS: TestALUOr/kernel (0.00s) - --- SKIP: TestALUOr/C#01 (0.09s) - --- SKIP: TestALUOr/eBPF#01 (0.00s) - --- PASS: TestALUOr/kernel#01 (0.00s) - --- SKIP: TestALUOr/C#02 (0.11s) - --- SKIP: TestALUOr/eBPF#02 (0.00s) - --- PASS: TestALUOr/kernel#02 (0.00s) - --- SKIP: TestALUOr/C#03 (0.09s) - --- SKIP: TestALUOr/eBPF#03 (0.00s) - --- PASS: TestALUOr/kernel#03 (0.00s) -=== CONT TestJumpIfGreaterThan -=== RUN TestJumpIfGreaterThan/C -=== RUN TestALUMul/eBPF#04 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 2 - 3: Mul32Imm dst: r4 imm: -2147483648 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUMul/kernel#04 -=== RUN TestALUMul/C#05 -=== RUN TestJumpIfBitsNotSet/C#02 -=== RUN TestALUAnd/eBPF#04 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: And32Imm dst: r4 imm: 15 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestALUAnd/kernel#04 -=== RUN TestALUAnd/C#05 -=== RUN TestJumpIfLessThan/C#01 -=== RUN TestJumpIfGreaterThan/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 - 3: JGTImm dst: r4 off: -1 imm: 23 - filter_block_2: - 4: Mov32Imm dst: r4 imm: 0 - 5: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 - result: - 8: MovImm dst: r0 imm: 2 - 9: JEqImm dst: r4 off: -1 imm: 0 - 10: MovImm dst: r0 imm: 1 - return: - 11: Exit -=== RUN TestJumpIfGreaterThan/kernel -=== RUN TestJumpIfGreaterThan/C#01 -=== RUN TestJumpIfBitsSet/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 4 - 4: JSetReg dst: r4 off: -1 src: r5 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestJumpIfBitsSet/kernel#02 -=== RUN TestJumpIfBitsSet/C#03 +=== RUN TestJumpIfBitsNotSet/C#01 === RUN TestJumpIfGreaterOrEqual/eBPF#01 +=== RUN TestJumpIfGreaterThan/eBPF +=== NAME TestJumpIfGreaterOrEqual/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -2080,42 +1568,37 @@ return: 15: Exit === RUN TestJumpIfGreaterOrEqual/kernel#01 -=== RUN TestJumpIfGreaterOrEqual/C#02 -=== RUN TestJumpIfLessOrEqual/eBPF#01 +=== NAME TestJumpIfGreaterThan/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 24 - 3: JEqImm dst: r4 off: -1 imm: 0 + 3: JGTImm dst: r4 off: -1 imm: 23 filter_block_2: - 4: JLEImm dst: r4 off: -1 imm: 23 - 5: JaImm dst: r0 off: -1 imm: 0 + 4: Mov32Imm dst: r4 imm: 0 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 + 8: MovImm dst: r0 imm: 2 + 9: JEqImm dst: r4 off: -1 imm: 0 + 10: MovImm dst: r0 imm: 1 return: - 15: Exit -=== RUN TestJumpIfLessOrEqual/kernel#01 -=== RUN TestALUMul/eBPF#05 + 11: Exit +=== RUN TestJumpIfGreaterThan/kernel +=== RUN TestJumpIfGreaterOrEqual/C#02 +=== RUN TestJumpIfGreaterThan/C#01 +=== RUN TestALUShiftLeft/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 2 - 3: Mov32Imm dst: r5 imm: -2147483648 - 4: Mul32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 1 + 3: Mov32Imm dst: r5 imm: 4 + 4: LSh32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 16 filter_block_4: 6: Mov32Imm dst: r4 imm: 0 7: JaImm dst: r0 off: -1 imm: 0 @@ -2128,103 +1611,64 @@ 12: MovImm dst: r0 imm: 1 return: 13: Exit -=== RUN TestALUMul/kernel#05 ---- PASS: TestALUMul (0.52s) - --- SKIP: TestALUMul/C (0.09s) - --- SKIP: TestALUMul/eBPF (0.00s) - --- PASS: TestALUMul/kernel (0.00s) - --- SKIP: TestALUMul/C#01 (0.09s) - --- SKIP: TestALUMul/eBPF#01 (0.00s) - --- PASS: TestALUMul/kernel#01 (0.00s) - --- SKIP: TestALUMul/C#02 (0.10s) - --- SKIP: TestALUMul/eBPF#02 (0.00s) - --- PASS: TestALUMul/kernel#02 (0.00s) - --- SKIP: TestALUMul/C#03 (0.09s) - --- SKIP: TestALUMul/eBPF#03 (0.00s) - --- PASS: TestALUMul/kernel#03 (0.00s) - --- SKIP: TestALUMul/C#04 (0.08s) - --- SKIP: TestALUMul/eBPF#04 (0.00s) - --- PASS: TestALUMul/kernel#04 (0.00s) - --- SKIP: TestALUMul/C#05 (0.08s) - --- SKIP: TestALUMul/eBPF#05 (0.00s) - --- PASS: TestALUMul/kernel#05 (0.00s) +=== RUN TestALUShiftLeft/kernel#03 +--- PASS: TestALUShiftLeft (0.13s) + --- SKIP: TestALUShiftLeft/C (0.03s) + --- SKIP: TestALUShiftLeft/eBPF (0.00s) + --- PASS: TestALUShiftLeft/kernel (0.00s) + --- SKIP: TestALUShiftLeft/C#01 (0.03s) + --- SKIP: TestALUShiftLeft/eBPF#01 (0.00s) + --- PASS: TestALUShiftLeft/kernel#01 (0.00s) + --- SKIP: TestALUShiftLeft/C#02 (0.03s) + --- SKIP: TestALUShiftLeft/eBPF#02 (0.00s) + --- PASS: TestALUShiftLeft/kernel#02 (0.00s) + --- SKIP: TestALUShiftLeft/C#03 (0.03s) + --- SKIP: TestALUShiftLeft/eBPF#03 (0.00s) + --- PASS: TestALUShiftLeft/kernel#03 (0.00s) === CONT TestJumpIfNotEqual === RUN TestJumpIfNotEqual/C -=== RUN TestJumpIfBitsNotSet/eBPF#02 +=== RUN TestJumpIfBitsSet/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 6 3: Mov32Imm dst: r5 imm: 4 - 4: JSetReg dst: r4 off: -1 src: r5 - 5: JaImm dst: r0 off: -1 imm: 0 + 4: JSetReg dst: r4 off: -1 src: r5 filter_block_3: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestJumpIfBitsNotSet/kernel#02 -=== RUN TestALUAnd/eBPF#05 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: Mov32Imm dst: r5 imm: 15 - 4: And32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 13: Exit -=== RUN TestALUAnd/kernel#05 ---- PASS: TestALUAnd (0.52s) - --- SKIP: TestALUAnd/C (0.10s) - --- SKIP: TestALUAnd/eBPF (0.00s) - --- PASS: TestALUAnd/kernel (0.00s) - --- SKIP: TestALUAnd/C#01 (0.09s) - --- SKIP: TestALUAnd/eBPF#01 (0.00s) - --- PASS: TestALUAnd/kernel#01 (0.00s) - --- SKIP: TestALUAnd/C#02 (0.08s) - --- SKIP: TestALUAnd/eBPF#02 (0.00s) - --- PASS: TestALUAnd/kernel#02 (0.00s) - --- SKIP: TestALUAnd/C#03 (0.06s) - --- SKIP: TestALUAnd/eBPF#03 (0.00s) - --- PASS: TestALUAnd/kernel#03 (0.00s) - --- SKIP: TestALUAnd/C#04 (0.06s) - --- SKIP: TestALUAnd/eBPF#04 (0.00s) - --- PASS: TestALUAnd/kernel#04 (0.00s) - --- SKIP: TestALUAnd/C#05 (0.08s) - --- SKIP: TestALUAnd/eBPF#05 (0.00s) - --- PASS: TestALUAnd/kernel#05 (0.00s) + 12: Exit +=== RUN TestJumpIfBitsSet/kernel#02 +=== RUN TestJumpIfBitsSet/C#03 +=== RUN TestJumpIfLessOrEqual/C#01 +--- PASS: TestRetConstant (0.13s) + --- SKIP: TestRetConstant/C (0.04s) + --- SKIP: TestRetConstant/eBPF (0.00s) + --- PASS: TestRetConstant/kernel (0.00s) + --- SKIP: TestRetConstant/C#01 (0.04s) + --- SKIP: TestRetConstant/eBPF#01 (0.00s) + --- PASS: TestRetConstant/kernel#01 (0.05s) === CONT TestJumpIfEqual === RUN TestJumpIfEqual/C -=== RUN TestJumpIfGreaterThan/eBPF#01 +=== RUN TestJumpIfBitsNotSet/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 + 2: Mov32Imm dst: r4 imm: 6 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JGTImm dst: r4 off: -1 imm: 23 - 5: JaImm dst: r0 off: -1 imm: 0 + 4: JSetImm dst: r4 off: -1 imm: 4 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 7: JaImm dst: r0 off: -1 imm: 0 @@ -2240,9 +1684,9 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== RUN TestJumpIfGreaterThan/kernel#01 -=== RUN TestJumpIfGreaterThan/C#02 -=== RUN TestJumpIfLessThan/eBPF#01 +=== RUN TestJumpIfBitsNotSet/kernel#01 +=== RUN TestJumpIfLessThan/C#01 +=== RUN TestJumpIfGreaterThan/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -2250,7 +1694,7 @@ 2: Mov32Imm dst: r4 imm: 24 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JLTImm dst: r4 off: -1 imm: 23 + 4: JGTImm dst: r4 off: -1 imm: 23 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 @@ -2267,8 +1711,31 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== RUN TestJumpIfLessThan/kernel#01 -=== RUN TestJumpIfLessOrEqual/C#02 +=== RUN TestJumpIfGreaterThan/kernel#01 +=== RUN TestJumpIfGreaterOrEqual/eBPF#02 +=== RUN TestJumpIfGreaterThan/C#02 +=== NAME TestJumpIfGreaterOrEqual/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 24 + 3: Mov32Imm dst: r5 imm: 23 + 4: JGEReg dst: r4 off: -1 src: r5 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestJumpIfGreaterOrEqual/kernel#02 +=== RUN TestJumpIfGreaterOrEqual/C#03 === RUN TestJumpIfBitsSet/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2297,35 +1764,13 @@ 16: Exit === RUN TestJumpIfBitsSet/kernel#03 === RUN TestJumpIfBitsSet/C#04 -=== RUN TestJumpIfGreaterOrEqual/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 - 3: Mov32Imm dst: r5 imm: 23 - 4: JGEReg dst: r4 off: -1 src: r5 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestJumpIfGreaterOrEqual/kernel#02 -=== RUN TestJumpIfGreaterOrEqual/C#03 -=== RUN TestJumpIfNotEqual/eBPF +=== RUN TestJumpIfEqual/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 - 3: JNEImm dst: r4 off: -1 imm: 23 + 3: JEqImm dst: r4 off: -1 imm: 23 filter_block_2: 4: Mov32Imm dst: r4 imm: 0 5: JaImm dst: r0 off: -1 imm: 0 @@ -2338,38 +1783,41 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit -=== RUN TestJumpIfNotEqual/kernel -=== RUN TestJumpIfBitsNotSet/C#03 -=== RUN TestJumpIfLessThan/C#02 -=== RUN TestJumpIfLessOrEqual/eBPF#02 +=== RUN TestJumpIfEqual/kernel +=== RUN TestJumpIfEqual/C#01 +=== RUN TestJumpIfLessOrEqual/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 24 - 3: Mov32Imm dst: r5 imm: 23 - 4: JLEReg dst: r4 off: -1 src: r5 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JLEImm dst: r4 off: -1 imm: 23 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestJumpIfLessOrEqual/kernel#02 -=== RUN TestJumpIfNotEqual/C#01 -=== RUN TestJumpIfEqual/eBPF + 15: Exit +=== RUN TestJumpIfLessOrEqual/kernel#01 +=== RUN TestJumpIfNotEqual/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 - 3: JEqImm dst: r4 off: -1 imm: 23 + 3: JNEImm dst: r4 off: -1 imm: 23 filter_block_2: 4: Mov32Imm dst: r4 imm: 0 5: JaImm dst: r0 off: -1 imm: 0 @@ -2382,8 +1830,7 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit -=== RUN TestJumpIfEqual/kernel -=== RUN TestJumpIfEqual/C#01 +=== RUN TestJumpIfNotEqual/kernel === RUN TestJumpIfGreaterThan/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2407,26 +1854,7 @@ === RUN TestJumpIfGreaterThan/kernel#02 === RUN TestJumpIfGreaterThan/C#03 === RUN TestJumpIfGreaterOrEqual/eBPF#03 -=== RUN TestJumpIfLessThan/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 - 3: Mov32Imm dst: r5 imm: 23 - 4: JLTReg dst: r4 off: -1 src: r5 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit +=== RUN TestJumpIfLessThan/eBPF#01 === NAME TestJumpIfGreaterOrEqual/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2454,8 +1882,34 @@ return: 16: Exit === RUN TestJumpIfGreaterOrEqual/kernel#03 -=== RUN TestJumpIfLessThan/kernel#02 +=== NAME TestJumpIfLessThan/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 24 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JLTImm dst: r4 off: -1 imm: 23 + 5: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 + result: + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 + return: + 15: Exit +=== RUN TestJumpIfLessThan/kernel#01 === RUN TestJumpIfGreaterOrEqual/C#04 +=== RUN TestJumpIfBitsNotSet/C#02 === RUN TestJumpIfBitsSet/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2477,34 +1931,6 @@ 11: Exit === RUN TestJumpIfBitsSet/kernel#04 === RUN TestJumpIfBitsSet/C#05 -=== RUN TestJumpIfLessOrEqual/C#03 -=== RUN TestJumpIfBitsNotSet/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 4 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: JSetReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 - result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 - return: - 16: Exit -=== RUN TestJumpIfBitsNotSet/kernel#03 === RUN TestJumpIfEqual/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2532,36 +1958,35 @@ 15: Exit === RUN TestJumpIfEqual/kernel#01 === RUN TestJumpIfEqual/C#02 -=== RUN TestJumpIfLessThan/C#03 -=== RUN TestJumpIfNotEqual/eBPF#01 +=== RUN TestJumpIfGreaterThan/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 - 3: JEqImm dst: r4 off: -1 imm: 0 - filter_block_2: - 4: JNEImm dst: r4 off: -1 imm: 23 - 5: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 24 + 3: Mov32Imm dst: r5 imm: 23 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 + 5: JGTReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 return: - 15: Exit -=== RUN TestJumpIfNotEqual/kernel#01 + 16: Exit +=== RUN TestJumpIfGreaterThan/kernel#03 +=== RUN TestJumpIfGreaterThan/C#04 === RUN TestJumpIfGreaterOrEqual/eBPF#04 -=== RUN TestJumpIfGreaterThan/eBPF#03 -=== NAME TestJumpIfGreaterOrEqual/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -2581,36 +2006,31 @@ return: 11: Exit === RUN TestJumpIfGreaterOrEqual/kernel#04 -=== NAME TestJumpIfGreaterThan/eBPF#03 +=== RUN TestJumpIfGreaterOrEqual/C#05 +=== RUN TestJumpIfBitsNotSet/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 - 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 6 + 3: Mov32Imm dst: r5 imm: 4 + 4: JSetReg dst: r4 off: -1 src: r5 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: JGTReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestJumpIfGreaterThan/kernel#03 -=== RUN TestJumpIfGreaterOrEqual/C#05 -=== RUN TestJumpIfGreaterThan/C#04 -=== RUN TestJumpIfBitsNotSet/C#04 + 13: Exit +=== RUN TestJumpIfBitsNotSet/kernel#02 +=== RUN TestJumpIfLessOrEqual/C#02 +=== RUN TestJumpIfNotEqual/C#01 === RUN TestJumpIfBitsSet/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2638,33 +2058,6 @@ 15: Exit === RUN TestJumpIfBitsSet/kernel#05 === RUN TestJumpIfBitsSet/C#06 -=== RUN TestJumpIfLessOrEqual/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 - 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: JLEReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 - result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 - return: - 16: Exit -=== RUN TestJumpIfLessOrEqual/kernel#03 === RUN TestJumpIfEqual/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2687,6 +2080,7 @@ 12: Exit === RUN TestJumpIfEqual/kernel#02 === RUN TestJumpIfEqual/C#03 +=== RUN TestJumpIfLessThan/C#02 === RUN TestJumpIfGreaterThan/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2707,74 +2101,45 @@ return: 11: Exit === RUN TestJumpIfGreaterThan/kernel#04 -=== RUN TestJumpIfNotEqual/C#02 -=== RUN TestJumpIfLessThan/eBPF#03 +=== RUN TestJumpIfGreaterOrEqual/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 24 - 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 23 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JGEImm dst: r4 off: -1 imm: 23 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: JLTReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestJumpIfLessThan/kernel#03 -=== RUN TestJumpIfEqual/eBPF#03 + 15: Exit +=== RUN TestJumpIfGreaterOrEqual/kernel#05 +=== RUN TestJumpIfGreaterOrEqual/C#06 +=== RUN TestJumpIfLessOrEqual/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 + 2: Mov32Imm dst: r4 imm: 24 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 + 4: JLEReg dst: r4 off: -1 src: r5 filter_block_3: - 5: JEqReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 - result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 - return: - 16: Exit -=== RUN TestJumpIfEqual/kernel#03 -=== RUN TestJumpIfEqual/C#04 -=== RUN TestJumpIfBitsNotSet/eBPF#04 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: JSetImm dst: r4 off: -1 imm: 2 - 4: JaImm dst: r0 off: -1 imm: 0 - filter_block_2: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: + filter_block_4: 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 result: @@ -2783,9 +2148,8 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestJumpIfBitsNotSet/kernel#04 -=== RUN TestJumpIfLessOrEqual/C#04 -=== RUN TestJumpIfGreaterOrEqual/eBPF#05 +=== RUN TestJumpIfLessOrEqual/kernel#02 +=== RUN TestJumpIfNotEqual/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -2793,7 +2157,7 @@ 2: Mov32Imm dst: r4 imm: 23 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JGEImm dst: r4 off: -1 imm: 23 + 4: JNEImm dst: r4 off: -1 imm: 23 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 @@ -2810,9 +2174,7 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== RUN TestJumpIfGreaterOrEqual/kernel#05 -=== RUN TestJumpIfGreaterOrEqual/C#06 -=== RUN TestJumpIfGreaterThan/C#05 +=== RUN TestJumpIfNotEqual/kernel#01 === RUN TestJumpIfBitsSet/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2835,14 +2197,43 @@ 12: Exit === RUN TestJumpIfBitsSet/kernel#06 === RUN TestJumpIfBitsSet/C#07 -=== RUN TestJumpIfNotEqual/eBPF#02 +=== RUN TestJumpIfEqual/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 3: Mov32Imm dst: r5 imm: 23 - 4: JNEReg dst: r4 off: -1 src: r5 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: JEqReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJumpIfEqual/kernel#03 +=== RUN TestJumpIfEqual/C#04 +=== RUN TestJumpIfBitsNotSet/C#03 +=== RUN TestJumpIfLessThan/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 24 + 3: Mov32Imm dst: r5 imm: 23 + 4: JLTReg dst: r4 off: -1 src: r5 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -2855,9 +2246,7 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestJumpIfNotEqual/kernel#02 -=== RUN TestJumpIfLessThan/C#04 -=== RUN TestJumpIfBitsNotSet/C#05 +=== RUN TestJumpIfLessThan/kernel#02 === RUN TestJumpIfGreaterOrEqual/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2880,53 +2269,6 @@ 12: Exit === RUN TestJumpIfGreaterOrEqual/kernel#06 === RUN TestJumpIfGreaterOrEqual/C#07 -=== RUN TestJumpIfLessOrEqual/eBPF#04 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 - 3: JLEImm dst: r4 off: -1 imm: 23 - filter_block_2: - 4: Mov32Imm dst: r4 imm: 0 - 5: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 - result: - 8: MovImm dst: r0 imm: 2 - 9: JEqImm dst: r4 off: -1 imm: 0 - 10: MovImm dst: r0 imm: 1 - return: - 11: Exit -=== RUN TestJumpIfLessOrEqual/kernel#04 -=== RUN TestJumpIfLessOrEqual/C#05 -=== RUN TestJumpIfGreaterThan/eBPF#05 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 - 3: JEqImm dst: r4 off: -1 imm: 0 - filter_block_2: - 4: JGTImm dst: r4 off: -1 imm: 23 - 5: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 - result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 - return: - 15: Exit -=== RUN TestJumpIfGreaterThan/kernel#05 === RUN TestJumpIfBitsSet/eBPF#07 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -2975,82 +2317,36 @@ return: 11: Exit === RUN TestJumpIfEqual/kernel#04 -=== RUN TestJumpIfNotEqual/C#03 -=== RUN TestJumpIfGreaterThan/C#06 -=== RUN TestJumpIfBitsNotSet/eBPF#05 +=== RUN TestJumpIfGreaterThan/C#05 +=== RUN TestJumpIfLessOrEqual/C#03 +=== RUN TestJumpIfNotEqual/C#02 +=== RUN TestJumpIfBitsNotSet/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 6 - 3: JEqImm dst: r4 off: -1 imm: 0 - filter_block_2: - 4: JSetImm dst: r4 off: -1 imm: 2 - 5: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 - result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 - return: - 15: Exit -=== RUN TestJumpIfBitsNotSet/kernel#05 -=== RUN TestJumpIfLessThan/eBPF#04 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 - 3: JLTImm dst: r4 off: -1 imm: 23 - filter_block_2: - 4: Mov32Imm dst: r4 imm: 0 - 5: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 - result: - 8: MovImm dst: r0 imm: 2 - 9: JEqImm dst: r4 off: -1 imm: 0 - 10: MovImm dst: r0 imm: 1 - return: - 11: Exit -=== RUN TestJumpIfLessThan/kernel#04 -=== RUN TestJumpIfLessOrEqual/eBPF#05 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 - 3: JEqImm dst: r4 off: -1 imm: 0 - filter_block_2: - 4: JLEImm dst: r4 off: -1 imm: 23 - 5: JaImm dst: r0 off: -1 imm: 0 + 3: Mov32Imm dst: r5 imm: 4 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 + 5: JSetReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 return: - 15: Exit -=== RUN TestJumpIfLessOrEqual/kernel#05 -=== RUN TestJumpIfLessOrEqual/C#06 -=== RUN TestJumpIfEqual/C#05 + 16: Exit +=== RUN TestJumpIfBitsNotSet/kernel#03 === RUN TestJumpIfGreaterOrEqual/eBPF#07 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -3099,11 +2395,8 @@ return: 11: Exit === RUN TestJumpIfBitsSet/kernel#08 -=== RUN TestJumpIfBitsNotSet/C#06 -=== RUN TestJumpIfLessThan/C#05 -=== RUN TestJumpIfBitsSet/C#09 -=== RUN TestJumpIfNotEqual/eBPF#03 -=== RUN TestJumpIfEqual/eBPF#05 +=== RUN TestJumpIfLessThan/C#03 +=== RUN TestJumpIfGreaterThan/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -3111,7 +2404,7 @@ 2: Mov32Imm dst: r4 imm: 23 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JEqImm dst: r4 off: -1 imm: 21 + 4: JGTImm dst: r4 off: -1 imm: 23 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 @@ -3128,16 +2421,17 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== NAME TestJumpIfNotEqual/eBPF#03 +=== RUN TestJumpIfGreaterThan/kernel#05 +=== RUN TestJumpIfLessOrEqual/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 + 2: Mov32Imm dst: r4 imm: 24 3: Mov32Imm dst: r5 imm: 23 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 5: JNEReg dst: r4 off: -1 src: r5 + 5: JLEReg dst: r4 off: -1 src: r5 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 @@ -3154,37 +2448,15 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJumpIfNotEqual/kernel#03 -=== RUN TestJumpIfEqual/kernel#05 -=== RUN TestJumpIfGreaterThan/eBPF#06 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 - 3: Mov32Imm dst: r5 imm: 23 - 4: JGTReg dst: r4 off: -1 src: r5 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 - return: - 12: Exit -=== RUN TestJumpIfGreaterThan/kernel#06 -=== RUN TestJumpIfLessOrEqual/eBPF#06 +=== RUN TestJumpIfLessOrEqual/kernel#03 +=== RUN TestJumpIfNotEqual/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 3: Mov32Imm dst: r5 imm: 23 - 4: JLEReg dst: r4 off: -1 src: r5 + 4: JNEReg dst: r4 off: -1 src: r5 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -3197,7 +2469,7 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestJumpIfLessOrEqual/kernel#06 +=== RUN TestJumpIfNotEqual/kernel#02 === RUN TestJumpIfGreaterOrEqual/eBPF#08 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -3217,9 +2489,38 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit -=== RUN TestJumpIfLessOrEqual/C#07 === RUN TestJumpIfGreaterOrEqual/kernel#08 -=== RUN TestJumpIfLessThan/eBPF#05 +=== RUN TestJumpIfEqual/C#05 +=== RUN TestJumpIfLessThan/eBPF#03 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 24 + 3: Mov32Imm dst: r5 imm: 23 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: JLTReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJumpIfLessThan/kernel#03 +=== RUN TestJumpIfBitsNotSet/C#04 +=== RUN TestJumpIfBitsSet/C#09 +=== RUN TestJumpIfEqual/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -3227,7 +2528,7 @@ 2: Mov32Imm dst: r4 imm: 23 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JLTImm dst: r4 off: -1 imm: 23 + 4: JEqImm dst: r4 off: -1 imm: 21 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 @@ -3244,32 +2545,32 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== RUN TestJumpIfLessThan/kernel#05 -=== RUN TestJumpIfBitsNotSet/eBPF#06 +=== RUN TestJumpIfEqual/kernel#05 +=== RUN TestJumpIfGreaterThan/C#06 +=== RUN TestJumpIfLessOrEqual/C#04 +=== RUN TestJumpIfNotEqual/C#03 +=== RUN TestJumpIfBitsNotSet/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 2 - 4: JSetReg dst: r4 off: -1 src: r5 - 5: JaImm dst: r0 off: -1 imm: 0 + 3: JSetImm dst: r4 off: -1 imm: 2 + 4: JaImm dst: r0 off: -1 imm: 0 + filter_block_2: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 13: Exit -=== RUN TestJumpIfBitsNotSet/kernel#06 -=== RUN TestJumpIfEqual/C#06 -=== RUN TestJumpIfNotEqual/C#04 -=== RUN TestJumpIfGreaterThan/C#07 + 12: Exit +=== RUN TestJumpIfBitsNotSet/kernel#04 +=== RUN TestJumpIfGreaterOrEqual/C#09 === RUN TestJumpIfBitsSet/eBPF#09 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -3296,8 +2597,32 @@ return: 15: Exit === RUN TestJumpIfBitsSet/kernel#09 -=== RUN TestJumpIfGreaterOrEqual/C#09 -=== RUN TestJumpIfLessOrEqual/eBPF#07 +=== RUN TestJumpIfGreaterThan/eBPF#06 +=== RUN TestJumpIfLessThan/C#04 +=== NAME TestJumpIfGreaterThan/eBPF#06 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 23 + 3: Mov32Imm dst: r5 imm: 23 + 4: JGTReg dst: r4 off: -1 src: r5 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestJumpIfGreaterThan/kernel#06 +=== RUN TestJumpIfNotEqual/eBPF#03 +=== RUN TestJumpIfLessOrEqual/eBPF#04 +=== NAME TestJumpIfNotEqual/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -3306,7 +2631,7 @@ 3: Mov32Imm dst: r5 imm: 23 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 5: JLEReg dst: r4 off: -1 src: r5 + 5: JNEReg dst: r4 off: -1 src: r5 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 @@ -3323,18 +2648,14 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJumpIfLessOrEqual/kernel#07 -=== RUN TestJumpIfLessOrEqual/C#08 -=== RUN TestJumpIfBitsNotSet/C#07 -=== RUN TestJumpIfLessThan/C#06 -=== RUN TestJumpIfBitsSet/C#10 -=== RUN TestJumpIfNotEqual/eBPF#04 +=== RUN TestJumpIfNotEqual/kernel#03 +=== NAME TestJumpIfLessOrEqual/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 - 3: JNEImm dst: r4 off: -1 imm: 21 + 3: JLEImm dst: r4 off: -1 imm: 23 filter_block_2: 4: Mov32Imm dst: r4 imm: 0 5: JaImm dst: r0 off: -1 imm: 0 @@ -3347,35 +2668,84 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit -=== RUN TestJumpIfNotEqual/kernel#04 -=== RUN TestJumpIfNotEqual/C#05 -=== RUN TestJumpIfGreaterThan/eBPF#07 +=== RUN TestJumpIfLessOrEqual/kernel#04 +=== RUN TestJumpIfLessOrEqual/C#05 +=== RUN TestJumpIfGreaterOrEqual/eBPF#09 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 22 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JGEImm dst: r4 off: -1 imm: 23 + 5: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 + result: + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 + return: + 15: Exit +=== RUN TestJumpIfGreaterOrEqual/kernel#09 +=== RUN TestJumpIfEqual/C#06 +=== RUN TestJumpIfLessThan/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 - 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 + 3: JLTImm dst: r4 off: -1 imm: 23 + filter_block_2: + 4: Mov32Imm dst: r4 imm: 0 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: JGTReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 + result: + 8: MovImm dst: r0 imm: 2 + 9: JEqImm dst: r4 off: -1 imm: 0 + 10: MovImm dst: r0 imm: 1 + return: + 11: Exit +=== RUN TestJumpIfLessThan/kernel#04 +=== RUN TestJumpIfBitsNotSet/C#05 +=== RUN TestJumpIfLessOrEqual/eBPF#05 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 23 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JLEImm dst: r4 off: -1 imm: 23 + 5: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestJumpIfGreaterThan/kernel#07 + 15: Exit +=== RUN TestJumpIfLessOrEqual/kernel#05 +=== RUN TestJumpIfLessOrEqual/C#06 +=== RUN TestJumpIfBitsSet/C#10 === RUN TestJumpIfEqual/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -3397,16 +2767,18 @@ return: 12: Exit === RUN TestJumpIfEqual/kernel#06 -=== RUN TestJumpIfGreaterOrEqual/eBPF#09 +=== RUN TestJumpIfGreaterThan/C#07 +=== RUN TestJumpIfNotEqual/C#04 +=== RUN TestJumpIfBitsNotSet/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 + 2: Mov32Imm dst: r4 imm: 6 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JGEImm dst: r4 off: -1 imm: 23 - 5: JaImm dst: r0 off: -1 imm: 0 + 4: JSetImm dst: r4 off: -1 imm: 2 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 7: JaImm dst: r0 off: -1 imm: 0 @@ -3422,39 +2794,63 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== RUN TestJumpIfGreaterOrEqual/kernel#09 -=== RUN TestJumpIfLessOrEqual/eBPF#08 +=== RUN TestJumpIfBitsNotSet/kernel#05 +=== RUN TestJumpIfGreaterOrEqual/C#10 +=== RUN TestJumpIfLessOrEqual/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: JLEImm dst: r4 off: -1 imm: 23 - filter_block_2: - 4: Mov32Imm dst: r4 imm: 0 - 5: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 23 + 3: Mov32Imm dst: r5 imm: 23 + 4: JLEReg dst: r4 off: -1 src: r5 filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 8: MovImm dst: r0 imm: 2 - 9: JEqImm dst: r4 off: -1 imm: 0 - 10: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 11: Exit -=== RUN TestJumpIfLessOrEqual/kernel#08 -=== RUN TestJumpIfLessOrEqual/C#09 -=== RUN TestJumpIfBitsNotSet/eBPF#07 + 12: Exit +=== RUN TestJumpIfLessOrEqual/kernel#06 +=== RUN TestJumpIfLessOrEqual/C#07 +=== RUN TestJumpIfBitsSet/eBPF#10 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 2 + 3: Mov32Imm dst: r5 imm: 8 + 4: JSetReg dst: r4 off: -1 src: r5 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestJumpIfBitsSet/kernel#10 +=== RUN TestJumpIfLessThan/C#05 +=== RUN TestJumpIfGreaterThan/eBPF#07 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 23 + 3: Mov32Imm dst: r5 imm: 23 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 5: JSetReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 + 5: JGTReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 @@ -3470,42 +2866,36 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJumpIfBitsNotSet/kernel#07 -=== RUN TestJumpIfNotEqual/eBPF#05 +=== RUN TestJumpIfGreaterThan/kernel#07 +=== RUN TestJumpIfNotEqual/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 - 3: JEqImm dst: r4 off: -1 imm: 0 + 3: JNEImm dst: r4 off: -1 imm: 21 filter_block_2: - 4: JNEImm dst: r4 off: -1 imm: 21 - 5: JaImm dst: r0 off: -1 imm: 0 + 4: Mov32Imm dst: r4 imm: 0 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 + 8: MovImm dst: r0 imm: 2 + 9: JEqImm dst: r4 off: -1 imm: 0 + 10: MovImm dst: r0 imm: 1 return: - 15: Exit -=== RUN TestJumpIfNotEqual/kernel#05 -=== RUN TestJumpIfNotEqual/C#06 -=== RUN TestJumpIfBitsSet/eBPF#10 + 11: Exit +=== RUN TestJumpIfNotEqual/kernel#04 +=== RUN TestJumpIfNotEqual/C#05 +=== RUN TestJumpIfGreaterOrEqual/eBPF#10 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 8 - 4: JSetReg dst: r4 off: -1 src: r5 + 2: Mov32Imm dst: r4 imm: 22 + 3: Mov32Imm dst: r5 imm: 23 + 4: JGEReg dst: r4 off: -1 src: r5 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -3518,41 +2908,45 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestJumpIfBitsSet/kernel#10 -=== RUN TestJumpIfLessThan/eBPF#06 +=== RUN TestJumpIfGreaterOrEqual/kernel#10 +=== RUN TestJumpIfLessOrEqual/eBPF#07 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 3: Mov32Imm dst: r5 imm: 23 - 4: JLTReg dst: r4 off: -1 src: r5 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 5: JLEReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestJumpIfLessThan/kernel#06 + 16: Exit +=== RUN TestJumpIfLessOrEqual/kernel#07 +=== RUN TestJumpIfLessOrEqual/C#08 === RUN TestJumpIfEqual/C#07 -=== RUN TestJumpIfGreaterThan/C#08 -=== RUN TestJumpIfGreaterOrEqual/C#10 -=== RUN TestJumpIfBitsNotSet/C#08 -=== RUN TestJumpIfLessOrEqual/eBPF#09 +=== RUN TestJumpIfLessThan/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 + 2: Mov32Imm dst: r4 imm: 23 3: JEqImm dst: r4 off: -1 imm: 0 filter_block_2: - 4: JLEImm dst: r4 off: -1 imm: 23 + 4: JLTImm dst: r4 off: -1 imm: 23 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: 6: Mov32Imm dst: r4 imm: 1 @@ -3569,40 +2963,43 @@ 14: MovImm dst: r0 imm: 1 return: 15: Exit -=== RUN TestJumpIfLessOrEqual/kernel#09 -=== RUN TestJumpIfLessOrEqual/C#10 -=== RUN TestJumpIfBitsSet/C#11 -=== RUN TestJumpIfNotEqual/eBPF#06 +=== RUN TestJumpIfLessThan/kernel#05 +=== RUN TestJumpIfBitsNotSet/C#06 +=== RUN TestJumpIfNotEqual/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 23 - 3: Mov32Imm dst: r5 imm: 21 - 4: JNEReg dst: r4 off: -1 src: r5 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JNEImm dst: r4 off: -1 imm: 21 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestJumpIfNotEqual/kernel#06 -=== RUN TestJumpIfNotEqual/C#07 -=== RUN TestJumpIfLessThan/C#07 -=== RUN TestJumpIfEqual/eBPF#07 -=== RUN TestJumpIfGreaterThan/eBPF#08 + 15: Exit +=== RUN TestJumpIfNotEqual/kernel#05 +=== RUN TestJumpIfNotEqual/C#06 +=== RUN TestJumpIfBitsSet/C#11 +=== RUN TestJumpIfLessOrEqual/eBPF#08 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 22 - 3: JGTImm dst: r4 off: -1 imm: 23 + 3: JLEImm dst: r4 off: -1 imm: 23 filter_block_2: 4: Mov32Imm dst: r4 imm: 0 5: JaImm dst: r0 off: -1 imm: 0 @@ -3615,7 +3012,9 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit -=== NAME TestJumpIfEqual/eBPF#07 +=== RUN TestJumpIfLessOrEqual/kernel#08 +=== RUN TestJumpIfLessOrEqual/C#09 +=== RUN TestJumpIfEqual/eBPF#07 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -3641,37 +3040,39 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJumpIfGreaterThan/kernel#08 === RUN TestJumpIfEqual/kernel#07 -=== RUN TestJumpIfGreaterOrEqual/eBPF#10 +=== RUN TestJumpIfGreaterThan/C#08 +=== RUN TestJumpIfBitsNotSet/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: Mov32Imm dst: r5 imm: 23 - 4: JGEReg dst: r4 off: -1 src: r5 + 2: Mov32Imm dst: r4 imm: 6 + 3: Mov32Imm dst: r5 imm: 2 + 4: JSetReg dst: r4 off: -1 src: r5 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestJumpIfGreaterOrEqual/kernel#10 -=== RUN TestJumpIfLessOrEqual/eBPF#10 + 13: Exit +=== RUN TestJumpIfBitsNotSet/kernel#06 +=== RUN TestJumpIfGreaterOrEqual/C#11 +=== RUN TestJumpIfNotEqual/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: Mov32Imm dst: r5 imm: 23 - 4: JLEReg dst: r4 off: -1 src: r5 + 2: Mov32Imm dst: r4 imm: 23 + 3: Mov32Imm dst: r5 imm: 21 + 4: JNEReg dst: r4 off: -1 src: r5 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -3684,40 +3085,93 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestJumpIfLessOrEqual/kernel#10 -=== RUN TestJumpIfLessOrEqual/C#11 -=== RUN TestJumpIfBitsNotSet/eBPF#08 +=== RUN TestJumpIfNotEqual/kernel#06 +=== RUN TestJumpIfNotEqual/C#07 +=== RUN TestJumpIfBitsSet/eBPF#11 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 6 - 3: JSetImm dst: r4 off: -1 imm: 8 - 4: JaImm dst: r0 off: -1 imm: 0 - filter_block_2: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 3: Mov32Imm dst: r5 imm: 8 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: + 5: JSetReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestJumpIfBitsNotSet/kernel#08 -=== RUN TestJumpIfBitsNotSet/C#09 -=== RUN TestJumpIfBitsSet/eBPF#11 + 16: Exit +=== RUN TestJumpIfBitsSet/kernel#11 +=== RUN TestJumpIfLessOrEqual/eBPF#09 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 8 + 2: Mov32Imm dst: r4 imm: 22 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JLEImm dst: r4 off: -1 imm: 23 + 5: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 + result: + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 + return: + 15: Exit +=== RUN TestJumpIfLessOrEqual/kernel#09 +=== RUN TestJumpIfLessOrEqual/C#10 +=== RUN TestJumpIfLessThan/C#06 +=== RUN TestJumpIfGreaterThan/eBPF#08 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 22 + 3: JGTImm dst: r4 off: -1 imm: 23 + filter_block_2: + 4: Mov32Imm dst: r4 imm: 0 + 5: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 6: Mov32Imm dst: r4 imm: 1 + 7: JaImm dst: r0 off: -1 imm: 0 + result: + 8: MovImm dst: r0 imm: 2 + 9: JEqImm dst: r4 off: -1 imm: 0 + 10: MovImm dst: r0 imm: 1 + return: + 11: Exit +=== RUN TestJumpIfGreaterThan/kernel#08 +=== RUN TestJumpIfGreaterOrEqual/eBPF#11 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 22 + 3: Mov32Imm dst: r5 imm: 23 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: - 5: JSetReg dst: r4 off: -1 src: r5 + 5: JGEReg dst: r4 off: -1 src: r5 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 @@ -3734,7 +3188,7 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJumpIfBitsSet/kernel#11 +=== RUN TestJumpIfGreaterOrEqual/kernel#11 === RUN TestJumpIfNotEqual/eBPF#07 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -3762,155 +3216,198 @@ return: 16: Exit === RUN TestJumpIfNotEqual/kernel#07 ---- PASS: TestJumpIfNotEqual (0.78s) - --- SKIP: TestJumpIfNotEqual/C (0.06s) +--- PASS: TestJumpIfNotEqual (0.44s) + --- SKIP: TestJumpIfNotEqual/C (0.04s) --- SKIP: TestJumpIfNotEqual/eBPF (0.00s) --- PASS: TestJumpIfNotEqual/kernel (0.05s) - --- SKIP: TestJumpIfNotEqual/C#01 (0.09s) + --- SKIP: TestJumpIfNotEqual/C#01 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#01 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#01 (0.05s) - --- SKIP: TestJumpIfNotEqual/C#02 (0.07s) + --- SKIP: TestJumpIfNotEqual/C#02 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#02 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#02 (0.05s) - --- SKIP: TestJumpIfNotEqual/C#03 (0.09s) + --- SKIP: TestJumpIfNotEqual/C#03 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#03 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#03 (0.05s) - --- SKIP: TestJumpIfNotEqual/C#04 (0.07s) + --- SKIP: TestJumpIfNotEqual/C#04 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#04 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#04 (0.00s) - --- SKIP: TestJumpIfNotEqual/C#05 (0.06s) + --- SKIP: TestJumpIfNotEqual/C#05 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#05 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#05 (0.00s) - --- SKIP: TestJumpIfNotEqual/C#06 (0.06s) + --- SKIP: TestJumpIfNotEqual/C#06 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#06 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#06 (0.00s) - --- SKIP: TestJumpIfNotEqual/C#07 (0.06s) + --- SKIP: TestJumpIfNotEqual/C#07 (0.03s) --- SKIP: TestJumpIfNotEqual/eBPF#07 (0.00s) --- PASS: TestJumpIfNotEqual/kernel#07 (0.00s) === CONT TestJump0 === RUN TestJump0/C ---- PASS: TestJumpIfEqual (0.78s) - --- SKIP: TestJumpIfEqual/C (0.10s) +--- PASS: TestJumpIfEqual (0.44s) + --- SKIP: TestJumpIfEqual/C (0.03s) --- SKIP: TestJumpIfEqual/eBPF (0.00s) --- PASS: TestJumpIfEqual/kernel (0.00s) - --- SKIP: TestJumpIfEqual/C#01 (0.07s) + --- SKIP: TestJumpIfEqual/C#01 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#01 (0.00s) --- PASS: TestJumpIfEqual/kernel#01 (0.00s) - --- SKIP: TestJumpIfEqual/C#02 (0.05s) + --- SKIP: TestJumpIfEqual/C#02 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#02 (0.00s) --- PASS: TestJumpIfEqual/kernel#02 (0.00s) - --- SKIP: TestJumpIfEqual/C#03 (0.05s) + --- SKIP: TestJumpIfEqual/C#03 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#03 (0.00s) --- PASS: TestJumpIfEqual/kernel#03 (0.00s) - --- SKIP: TestJumpIfEqual/C#04 (0.09s) + --- SKIP: TestJumpIfEqual/C#04 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#04 (0.00s) --- PASS: TestJumpIfEqual/kernel#04 (0.05s) - --- SKIP: TestJumpIfEqual/C#05 (0.06s) + --- SKIP: TestJumpIfEqual/C#05 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#05 (0.00s) --- PASS: TestJumpIfEqual/kernel#05 (0.05s) - --- SKIP: TestJumpIfEqual/C#06 (0.08s) + --- SKIP: TestJumpIfEqual/C#06 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#06 (0.00s) - --- PASS: TestJumpIfEqual/kernel#06 (0.06s) - --- SKIP: TestJumpIfEqual/C#07 (0.07s) + --- PASS: TestJumpIfEqual/kernel#06 (0.05s) + --- SKIP: TestJumpIfEqual/C#07 (0.03s) --- SKIP: TestJumpIfEqual/eBPF#07 (0.00s) --- PASS: TestJumpIfEqual/kernel#07 (0.05s) === CONT TestJump === RUN TestJump/C -=== RUN TestJumpIfGreaterThan/C#09 -=== RUN TestJumpIfLessThan/eBPF#07 +=== RUN TestJumpIfLessOrEqual/eBPF#10 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 23 + 2: Mov32Imm dst: r4 imm: 22 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 + 4: JLEReg dst: r4 off: -1 src: r5 filter_block_3: - 5: JLTReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestJumpIfLessThan/kernel#07 -=== RUN TestJumpIfBitsNotSet/eBPF#09 + 12: Exit +=== RUN TestJumpIfLessOrEqual/kernel#10 +=== RUN TestJumpIfLessOrEqual/C#11 +=== RUN TestJumpIfLessThan/eBPF#06 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: JEqImm dst: r4 off: -1 imm: 0 - filter_block_2: - 4: JSetImm dst: r4 off: -1 imm: 8 - 5: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 23 + 3: Mov32Imm dst: r5 imm: 23 + 4: JLTReg dst: r4 off: -1 src: r5 filter_block_3: - 6: Mov32Imm dst: r4 imm: 1 - 7: JaImm dst: r0 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 12: MovImm dst: r0 imm: 2 - 13: JEqImm dst: r4 off: -1 imm: 0 - 14: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 15: Exit -=== RUN TestJumpIfBitsNotSet/kernel#09 -=== RUN TestJumpIfBitsNotSet/C#10 -=== RUN TestJumpIfGreaterOrEqual/C#11 ---- PASS: TestJumpIfBitsSet (1.13s) - --- SKIP: TestJumpIfBitsSet/C (0.11s) + 12: Exit +=== RUN TestJumpIfLessThan/kernel#06 +=== RUN TestJumpIfBitsNotSet/C#07 +--- PASS: TestJumpIfBitsSet (0.56s) + --- SKIP: TestJumpIfBitsSet/C (0.04s) --- SKIP: TestJumpIfBitsSet/eBPF (0.00s) --- PASS: TestJumpIfBitsSet/kernel (0.00s) - --- SKIP: TestJumpIfBitsSet/C#01 (0.08s) + --- SKIP: TestJumpIfBitsSet/C#01 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#01 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#01 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#02 (0.08s) + --- SKIP: TestJumpIfBitsSet/C#02 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#02 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#02 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#03 (0.08s) + --- SKIP: TestJumpIfBitsSet/C#03 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#03 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#03 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#04 (0.08s) + --- SKIP: TestJumpIfBitsSet/C#04 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#04 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#04 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#05 (0.10s) + --- SKIP: TestJumpIfBitsSet/C#05 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#05 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#05 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#06 (0.06s) + --- SKIP: TestJumpIfBitsSet/C#06 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#06 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#06 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#07 (0.07s) + --- SKIP: TestJumpIfBitsSet/C#07 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#07 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#07 (0.00s) - --- SKIP: TestJumpIfBitsSet/C#08 (0.06s) + --- SKIP: TestJumpIfBitsSet/C#08 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#08 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#08 (0.05s) - --- SKIP: TestJumpIfBitsSet/C#09 (0.07s) + --- SKIP: TestJumpIfBitsSet/C#09 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#09 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#09 (0.05s) - --- SKIP: TestJumpIfBitsSet/C#10 (0.07s) + --- SKIP: TestJumpIfBitsSet/C#10 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#10 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#10 (0.05s) - --- SKIP: TestJumpIfBitsSet/C#11 (0.06s) + --- SKIP: TestJumpIfBitsSet/C#11 (0.03s) --- SKIP: TestJumpIfBitsSet/eBPF#11 (0.00s) --- PASS: TestJumpIfBitsSet/kernel#11 (0.05s) === CONT TestNegateA === RUN TestNegateA/C +=== RUN TestJump0/eBPF +=== RUN TestJump/eBPF +=== NAME TestJump0/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 1 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: Mov32Imm dst: r5 imm: 0 + 6: LdXMemB dst: r4 src: r2 off: 0 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 8: JEqReg dst: r4 off: -1 src: r5 + filter_block_4: + 9: Mov32Reg dst: r4 src: r4 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 11: MovImm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJump0/kernel +=== NAME TestJump/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 1 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: LdXMemB dst: r4 src: r2 off: 0 imm: 0 + 6: JEqImm dst: r4 off: -1 imm: 1 + filter_block_2: + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 8: Mov32Imm dst: r4 imm: 1 + filter_block_4: + 9: Mov32Reg dst: r4 src: r4 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 11: MovImm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJump/kernel === RUN TestJumpIfLessOrEqual/eBPF#11 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -3938,45 +3435,157 @@ return: 16: Exit === RUN TestJumpIfLessOrEqual/kernel#11 ---- PASS: TestJumpIfLessOrEqual (1.06s) - --- SKIP: TestJumpIfLessOrEqual/C (0.08s) +--- PASS: TestJumpIfLessOrEqual (0.55s) + --- SKIP: TestJumpIfLessOrEqual/C (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel (0.05s) - --- SKIP: TestJumpIfLessOrEqual/C#01 (0.08s) + --- SKIP: TestJumpIfLessOrEqual/C#01 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#01 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#01 (0.05s) - --- SKIP: TestJumpIfLessOrEqual/C#02 (0.06s) + --- SKIP: TestJumpIfLessOrEqual/C#02 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#02 (0.00s) - --- PASS: TestJumpIfLessOrEqual/kernel#02 (0.06s) - --- SKIP: TestJumpIfLessOrEqual/C#03 (0.08s) + --- PASS: TestJumpIfLessOrEqual/kernel#02 (0.05s) + --- SKIP: TestJumpIfLessOrEqual/C#03 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#03 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#03 (0.05s) - --- SKIP: TestJumpIfLessOrEqual/C#04 (0.06s) + --- SKIP: TestJumpIfLessOrEqual/C#04 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#04 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#04 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#05 (0.06s) + --- SKIP: TestJumpIfLessOrEqual/C#05 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#05 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#05 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#06 (0.08s) + --- SKIP: TestJumpIfLessOrEqual/C#06 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#06 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#06 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#07 (0.05s) + --- SKIP: TestJumpIfLessOrEqual/C#07 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#07 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#07 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#08 (0.07s) + --- SKIP: TestJumpIfLessOrEqual/C#08 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#08 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#08 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#09 (0.07s) + --- SKIP: TestJumpIfLessOrEqual/C#09 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#09 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#09 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#10 (0.07s) + --- SKIP: TestJumpIfLessOrEqual/C#10 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#10 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#10 (0.00s) - --- SKIP: TestJumpIfLessOrEqual/C#11 (0.06s) + --- SKIP: TestJumpIfLessOrEqual/C#11 (0.03s) --- SKIP: TestJumpIfLessOrEqual/eBPF#11 (0.00s) --- PASS: TestJumpIfLessOrEqual/kernel#11 (0.00s) === CONT TestALUXor === RUN TestALUXor/C +=== RUN TestJumpIfGreaterThan/C#09 +--- PASS: TestJumpIfGreaterOrEqual (0.55s) + --- SKIP: TestJumpIfGreaterOrEqual/C (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#01 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#01 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#01 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#02 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#02 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#02 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#03 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#03 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#03 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#04 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#04 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#04 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#05 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#05 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#05 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#06 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#06 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#06 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#07 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#07 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#07 (0.00s) + --- SKIP: TestJumpIfGreaterOrEqual/C#08 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#08 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#08 (0.05s) + --- SKIP: TestJumpIfGreaterOrEqual/C#09 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#09 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#09 (0.05s) + --- SKIP: TestJumpIfGreaterOrEqual/C#10 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#10 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#10 (0.05s) + --- SKIP: TestJumpIfGreaterOrEqual/C#11 (0.03s) + --- SKIP: TestJumpIfGreaterOrEqual/eBPF#11 (0.00s) + --- PASS: TestJumpIfGreaterOrEqual/kernel#11 (0.05s) +=== CONT TestALUMod +=== RUN TestALUMod/C +=== RUN TestJumpIfBitsNotSet/eBPF#07 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 6 + 3: Mov32Imm dst: r5 imm: 2 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: JSetReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJumpIfBitsNotSet/kernel#07 +=== RUN TestNegateA/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 26 + 3: Neg32Imm dst: r4 imm: 0 + 4: Mov32Imm dst: r6 imm: -2147483622 + 5: JEqReg dst: r4 off: -1 src: r6 + filter_block_3: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestNegateA/kernel +=== RUN TestALUXor/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: Xor32Imm dst: r4 imm: 1 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUXor/kernel +=== RUN TestALUXor/C#01 +=== RUN TestJumpIfLessThan/C#07 === RUN TestJumpIfGreaterThan/eBPF#09 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -4003,22 +3612,101 @@ return: 15: Exit === RUN TestJumpIfGreaterThan/kernel#09 -=== RUN TestJump/eBPF +=== RUN TestALUMod/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 1 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: LdXMemB dst: r4 src: r2 off: 0 imm: 0 - 6: JEqImm dst: r4 off: -1 imm: 1 - filter_block_2: - 7: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 16 + 3: Mod32Imm dst: r4 imm: 4 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUMod/kernel +=== RUN TestALUMod/C#01 +--- PASS: TestJump (0.08s) + --- SKIP: TestJump/C (0.03s) + --- SKIP: TestJump/eBPF (0.00s) + --- PASS: TestJump/kernel (0.05s) +=== CONT TestALUShiftRight +=== RUN TestALUShiftRight/C +=== RUN TestJump0/C#01 +=== RUN TestALUXor/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: Mov32Imm dst: r5 imm: 1 + 4: Xor32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 0 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestALUXor/kernel#01 +=== RUN TestALUXor/C#02 +=== RUN TestJumpIfLessThan/eBPF#07 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 23 + 3: Mov32Imm dst: r5 imm: 23 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: JLTReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 9: Mov32Reg dst: r4 src: r4 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJumpIfLessThan/kernel#07 +=== RUN TestJumpIfBitsNotSet/C#08 +=== RUN TestALUMod/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 16 + 3: Mov32Imm dst: r5 imm: 4 + 4: JEqImm dst: r5 off: -1 imm: 0 + 5: Mod32Reg dst: r4 src: r5 + 6: JEqImm dst: r4 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 0 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 1 10: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: 11: MovImm dst: r4 imm: 0 @@ -4029,31 +3717,37 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJump/kernel -=== RUN TestNegateA/eBPF +=== RUN TestALUMod/kernel#01 +=== RUN TestALUMod/C#02 +--- PASS: TestNegateA (0.08s) + --- SKIP: TestNegateA/C (0.03s) + --- SKIP: TestNegateA/eBPF (0.00s) + --- PASS: TestNegateA/kernel (0.05s) +=== CONT TestALUMul +=== RUN TestALUMul/C +=== RUN TestALUShiftRight/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 26 - 3: Neg32Imm dst: r4 imm: 0 - 4: Mov32Imm dst: r6 imm: -2147483622 - 5: JEqReg dst: r4 off: -1 src: r6 + 2: Mov32Imm dst: r4 imm: 240 + 3: RSh32Imm dst: r4 imm: 4 + 4: JEqImm dst: r4 off: -1 imm: 15 filter_block_3: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 13: Exit -=== RUN TestNegateA/kernel -=== RUN TestJumpIfLessThan/C#08 -=== RUN TestJump0/eBPF + 12: Exit +=== RUN TestALUShiftRight/kernel +=== RUN TestALUShiftRight/C#01 +=== RUN TestJump0/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -4078,42 +3772,115 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJump0/kernel -=== RUN TestJumpIfGreaterOrEqual/eBPF#11 +=== RUN TestJump0/kernel#01 +--- PASS: TestJump0 (0.11s) + --- SKIP: TestJump0/C (0.03s) + --- SKIP: TestJump0/eBPF (0.00s) + --- PASS: TestJump0/kernel (0.05s) + --- SKIP: TestJump0/C#01 (0.03s) + --- SKIP: TestJump0/eBPF#01 (0.00s) + --- PASS: TestJump0/kernel#01 (0.00s) +=== CONT TestALUAnd +=== RUN TestALUAnd/C +=== RUN TestJumpIfGreaterThan/C#10 +=== RUN TestALUXor/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 6 + 3: Mod32Imm dst: r4 imm: 4 + 4: JEqImm dst: r4 off: -1 imm: 2 filter_block_3: - 5: JGEReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUXor/kernel#02 +=== RUN TestALUXor/C#03 +=== RUN TestJumpIfBitsNotSet/eBPF#08 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 6 + 3: JSetImm dst: r4 off: -1 imm: 8 + 4: JaImm dst: r0 off: -1 imm: 0 + filter_block_2: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestJumpIfBitsNotSet/kernel#08 +=== RUN TestJumpIfBitsNotSet/C#09 +=== RUN TestALUMod/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 17 + 3: Mod32Imm dst: r4 imm: 4 + 4: JEqImm dst: r4 off: -1 imm: 1 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUMod/kernel#02 +=== RUN TestALUMod/C#03 +=== RUN TestALUShiftRight/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 240 + 3: Mov32Imm dst: r5 imm: 4 + 4: RSh32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 15 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 - 12: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestJumpIfGreaterOrEqual/kernel#11 -=== RUN TestJumpIfGreaterThan/C#10 -=== RUN TestALUXor/eBPF + 13: Exit +=== RUN TestALUShiftRight/kernel#01 +=== RUN TestALUShiftRight/C#02 +=== RUN TestALUAnd/eBPF +=== RUN TestALUMul/eBPF +=== NAME TestALUAnd/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 1 - 3: Xor32Imm dst: r4 imm: 1 + 3: And32Imm dst: r4 imm: 0 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 @@ -4127,33 +3894,174 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUXor/kernel -=== RUN TestALUXor/C#01 ---- PASS: TestJump (0.12s) - --- SKIP: TestJump/C (0.06s) - --- SKIP: TestJump/eBPF (0.00s) - --- PASS: TestJump/kernel (0.05s) -=== CONT TestALUMod -=== RUN TestALUMod/C ---- PASS: TestNegateA (0.09s) - --- SKIP: TestNegateA/C (0.03s) - --- SKIP: TestNegateA/eBPF (0.00s) - --- PASS: TestNegateA/kernel (0.05s) -=== CONT TestALUShiftRight -=== RUN TestALUShiftRight/C -=== RUN TestJumpIfBitsNotSet/eBPF#10 +=== RUN TestALUAnd/kernel +=== NAME TestALUMul/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 0 + 3: Mul32Imm dst: r4 imm: 1 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUMul/kernel +=== RUN TestALUMul/C#01 +=== RUN TestALUAnd/C#01 +=== RUN TestJumpIfLessThan/C#08 +=== RUN TestJumpIfGreaterThan/eBPF#10 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 22 + 3: Mov32Imm dst: r5 imm: 23 + 4: JGTReg dst: r4 off: -1 src: r5 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestJumpIfGreaterThan/kernel#10 +=== RUN TestALUXor/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 8 - 4: JSetReg dst: r4 off: -1 src: r5 - 5: JaImm dst: r0 off: -1 imm: 0 + 3: Mov32Imm dst: r5 imm: 4 + 4: JEqImm dst: r5 off: -1 imm: 0 + 5: Mod32Reg dst: r4 src: r5 + 6: JEqImm dst: r4 off: -1 imm: 2 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 0 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 1 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 11: MovImm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestALUXor/kernel#03 +--- PASS: TestALUXor (0.12s) + --- SKIP: TestALUXor/C (0.03s) + --- SKIP: TestALUXor/eBPF (0.00s) + --- PASS: TestALUXor/kernel (0.00s) + --- SKIP: TestALUXor/C#01 (0.03s) + --- SKIP: TestALUXor/eBPF#01 (0.00s) + --- PASS: TestALUXor/kernel#01 (0.00s) + --- SKIP: TestALUXor/C#02 (0.03s) + --- SKIP: TestALUXor/eBPF#02 (0.00s) + --- PASS: TestALUXor/kernel#02 (0.00s) + --- SKIP: TestALUXor/C#03 (0.03s) + --- SKIP: TestALUXor/eBPF#03 (0.00s) + --- PASS: TestALUXor/kernel#03 (0.00s) +=== CONT TestALUOr +=== RUN TestALUOr/C +=== RUN TestJumpIfBitsNotSet/eBPF#09 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 6 + 3: JEqImm dst: r4 off: -1 imm: 0 + filter_block_2: + 4: JSetImm dst: r4 off: -1 imm: 8 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 6: Mov32Imm dst: r4 imm: 0 + 6: Mov32Imm dst: r4 imm: 1 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: + 8: Mov32Imm dst: r4 imm: 0 + 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 + result: + 12: MovImm dst: r0 imm: 2 + 13: JEqImm dst: r4 off: -1 imm: 0 + 14: MovImm dst: r0 imm: 1 + return: + 15: Exit +=== RUN TestJumpIfBitsNotSet/kernel#09 +=== RUN TestJumpIfBitsNotSet/C#10 +=== RUN TestALUMod/eBPF#03 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 17 + 3: Mov32Imm dst: r5 imm: 4 + 4: JEqImm dst: r5 off: -1 imm: 0 + 5: Mod32Reg dst: r4 src: r5 + 6: JEqImm dst: r4 off: -1 imm: 1 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 0 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 1 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 11: MovImm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestALUMod/kernel#03 +--- PASS: TestALUMod (0.12s) + --- SKIP: TestALUMod/C (0.03s) + --- SKIP: TestALUMod/eBPF (0.00s) + --- PASS: TestALUMod/kernel (0.00s) + --- SKIP: TestALUMod/C#01 (0.03s) + --- SKIP: TestALUMod/eBPF#01 (0.00s) + --- PASS: TestALUMod/kernel#01 (0.00s) + --- SKIP: TestALUMod/C#02 (0.03s) + --- SKIP: TestALUMod/eBPF#02 (0.00s) + --- PASS: TestALUMod/kernel#02 (0.00s) + --- SKIP: TestALUMod/C#03 (0.03s) + --- SKIP: TestALUMod/eBPF#03 (0.00s) + --- PASS: TestALUMod/kernel#03 (0.00s) +=== CONT TestALUDivZero +=== RUN TestALUDivZero/C +=== RUN TestALUMul/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 0 + 3: Mov32Imm dst: r5 imm: 1 + 4: Mul32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 0 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: 8: Mov32Imm dst: r4 imm: 1 9: JaImm dst: r0 off: -1 imm: 0 result: @@ -4162,9 +4070,54 @@ 12: MovImm dst: r0 imm: 1 return: 13: Exit -=== RUN TestJumpIfBitsNotSet/kernel#10 -=== RUN TestJumpIfBitsNotSet/C#11 +=== RUN TestALUMul/kernel#01 +=== RUN TestALUMul/C#02 +=== RUN TestALUShiftRight/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 240 + 3: RSh32Imm dst: r4 imm: 8 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUShiftRight/kernel#02 +=== RUN TestALUShiftRight/C#03 +=== RUN TestALUOr/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: Or32Imm dst: r4 imm: 0 + 4: JEqImm dst: r4 off: -1 imm: 1 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUOr/kernel === RUN TestJumpIfLessThan/eBPF#08 +=== RUN TestALUOr/C#01 +=== NAME TestJumpIfLessThan/eBPF#08 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -4183,77 +4136,62 @@ 10: MovImm dst: r0 imm: 1 return: 11: Exit +=== RUN TestALUAnd/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: Mov32Imm dst: r5 imm: 0 + 4: And32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 0 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestALUAnd/kernel#01 === RUN TestJumpIfLessThan/kernel#08 -=== RUN TestJumpIfLessThan/C#09 -=== RUN TestJump0/C#01 ---- PASS: TestJumpIfGreaterOrEqual (1.12s) - --- SKIP: TestJumpIfGreaterOrEqual/C (0.07s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#01 (0.09s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#01 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#01 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#02 (0.08s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#02 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#02 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#03 (0.08s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#03 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#03 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#04 (0.08s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#04 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#04 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#05 (0.08s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#05 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#05 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#06 (0.06s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#06 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#06 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#07 (0.08s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#07 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#07 (0.00s) - --- SKIP: TestJumpIfGreaterOrEqual/C#08 (0.08s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#08 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#08 (0.05s) - --- SKIP: TestJumpIfGreaterOrEqual/C#09 (0.07s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#09 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#09 (0.05s) - --- SKIP: TestJumpIfGreaterOrEqual/C#10 (0.09s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#10 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#10 (0.05s) - --- SKIP: TestJumpIfGreaterOrEqual/C#11 (0.06s) - --- SKIP: TestJumpIfGreaterOrEqual/eBPF#11 (0.00s) - --- PASS: TestJumpIfGreaterOrEqual/kernel#11 (0.05s) -=== CONT TestScratchA -=== RUN TestScratchA/C -=== RUN TestJumpIfGreaterThan/eBPF#10 +=== RUN TestJumpIfBitsNotSet/eBPF#10 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: Mov32Imm dst: r5 imm: 23 - 4: JGTReg dst: r4 off: -1 src: r5 + 2: Mov32Imm dst: r4 imm: 6 + 3: Mov32Imm dst: r5 imm: 8 + 4: JSetReg dst: r4 off: -1 src: r5 + 5: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestJumpIfGreaterThan/kernel#10 -=== RUN TestALUMod/eBPF + 13: Exit +=== RUN TestJumpIfBitsNotSet/kernel#10 +=== RUN TestJumpIfLessThan/C#09 +=== RUN TestJumpIfBitsNotSet/C#11 +=== RUN TestALUAnd/C#02 +=== RUN TestALUMul/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 16 - 3: Mod32Imm dst: r4 imm: 4 - 4: JEqImm dst: r4 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 4 + 3: Mul32Imm dst: r4 imm: 13 + 4: JEqImm dst: r4 off: -1 imm: 52 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -4266,16 +4204,42 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUMod/kernel -=== RUN TestALUMod/C#01 -=== RUN TestALUXor/eBPF#01 +=== RUN TestALUMul/kernel#02 +=== RUN TestALUMul/C#03 +=== RUN TestJumpIfGreaterThan/C#11 +=== RUN TestALUDivZero/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 1 - 4: Xor32Reg dst: r4 src: r5 + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 1 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: LdXMemB dst: r4 src: r2 off: 0 imm: 0 + 6: Mov32Reg dst: r5 src: r4 + 7: Mov32Imm dst: r4 imm: 10 + 8: JEqImm dst: r5 off: -1 imm: 0 + 9: Div32Reg dst: r4 src: r5 + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 12: MovImm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 + result: + 14: MovImm dst: r0 imm: 2 + 15: JEqImm dst: r4 off: -1 imm: 0 + 16: MovImm dst: r0 imm: 1 + return: + 17: Exit +=== RUN TestALUDivZero/kernel +=== RUN TestALUShiftRight/eBPF#03 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 240 + 3: Mov32Imm dst: r5 imm: 8 + 4: RSh32Reg dst: r4 src: r5 5: JEqImm dst: r4 off: -1 imm: 0 filter_block_4: 6: Mov32Imm dst: r4 imm: 0 @@ -4289,8 +4253,45 @@ 12: MovImm dst: r0 imm: 1 return: 13: Exit -=== RUN TestALUXor/kernel#01 -=== RUN TestALUXor/C#02 +=== RUN TestALUShiftRight/kernel#03 +--- PASS: TestALUShiftRight (0.12s) + --- SKIP: TestALUShiftRight/C (0.03s) + --- SKIP: TestALUShiftRight/eBPF (0.00s) + --- PASS: TestALUShiftRight/kernel (0.00s) + --- SKIP: TestALUShiftRight/C#01 (0.03s) + --- SKIP: TestALUShiftRight/eBPF#01 (0.00s) + --- PASS: TestALUShiftRight/kernel#01 (0.00s) + --- SKIP: TestALUShiftRight/C#02 (0.04s) + --- SKIP: TestALUShiftRight/eBPF#02 (0.00s) + --- PASS: TestALUShiftRight/kernel#02 (0.00s) + --- SKIP: TestALUShiftRight/C#03 (0.03s) + --- SKIP: TestALUShiftRight/eBPF#03 (0.00s) + --- PASS: TestALUShiftRight/kernel#03 (0.00s) +=== CONT TestALUDiv +=== RUN TestALUDiv/C +=== RUN TestALUOr/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: Mov32Imm dst: r5 imm: 0 + 4: Or32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 1 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestALUOr/kernel#01 +=== RUN TestALUOr/C#02 === RUN TestJumpIfBitsNotSet/eBPF#11 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -4318,89 +4319,77 @@ return: 16: Exit === RUN TestJumpIfBitsNotSet/kernel#11 ---- PASS: TestJumpIfBitsNotSet (1.34s) - --- SKIP: TestJumpIfBitsNotSet/C (0.10s) +--- PASS: TestJumpIfBitsNotSet (0.79s) + --- SKIP: TestJumpIfBitsNotSet/C (0.05s) --- SKIP: TestJumpIfBitsNotSet/eBPF (0.00s) - --- PASS: TestJumpIfBitsNotSet/kernel (0.08s) - --- SKIP: TestJumpIfBitsNotSet/C#01 (0.06s) + --- PASS: TestJumpIfBitsNotSet/kernel (0.05s) + --- SKIP: TestJumpIfBitsNotSet/C#01 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#01 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#01 (0.05s) - --- SKIP: TestJumpIfBitsNotSet/C#02 (0.09s) + --- SKIP: TestJumpIfBitsNotSet/C#02 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#02 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#02 (0.05s) - --- SKIP: TestJumpIfBitsNotSet/C#03 (0.09s) + --- SKIP: TestJumpIfBitsNotSet/C#03 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#03 (0.00s) - --- PASS: TestJumpIfBitsNotSet/kernel#03 (0.06s) - --- SKIP: TestJumpIfBitsNotSet/C#04 (0.07s) + --- PASS: TestJumpIfBitsNotSet/kernel#03 (0.05s) + --- SKIP: TestJumpIfBitsNotSet/C#04 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#04 (0.00s) - --- PASS: TestJumpIfBitsNotSet/kernel#04 (0.06s) - --- SKIP: TestJumpIfBitsNotSet/C#05 (0.07s) + --- PASS: TestJumpIfBitsNotSet/kernel#04 (0.05s) + --- SKIP: TestJumpIfBitsNotSet/C#05 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#05 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#05 (0.05s) - --- SKIP: TestJumpIfBitsNotSet/C#06 (0.06s) + --- SKIP: TestJumpIfBitsNotSet/C#06 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#06 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#06 (0.05s) - --- SKIP: TestJumpIfBitsNotSet/C#07 (0.06s) + --- SKIP: TestJumpIfBitsNotSet/C#07 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#07 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#07 (0.05s) - --- SKIP: TestJumpIfBitsNotSet/C#08 (0.08s) + --- SKIP: TestJumpIfBitsNotSet/C#08 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#08 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#08 (0.00s) - --- SKIP: TestJumpIfBitsNotSet/C#09 (0.05s) + --- SKIP: TestJumpIfBitsNotSet/C#09 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#09 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#09 (0.00s) - --- SKIP: TestJumpIfBitsNotSet/C#10 (0.10s) + --- SKIP: TestJumpIfBitsNotSet/C#10 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#10 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#10 (0.00s) - --- SKIP: TestJumpIfBitsNotSet/C#11 (0.06s) + --- SKIP: TestJumpIfBitsNotSet/C#11 (0.03s) --- SKIP: TestJumpIfBitsNotSet/eBPF#11 (0.00s) --- PASS: TestJumpIfBitsNotSet/kernel#11 (0.00s) -=== CONT TestScratchZero -=== RUN TestScratchZero/C -=== RUN TestJump0/eBPF#01 +=== CONT TestALUAdd +=== RUN TestALUAdd/C +=== RUN TestALUMul/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 1 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: Mov32Imm dst: r5 imm: 0 - 6: LdXMemB dst: r4 src: r2 off: 0 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 8: JEqReg dst: r4 off: -1 src: r5 + 2: Mov32Imm dst: r4 imm: 4 + 3: Mov32Imm dst: r5 imm: 13 + 4: Mul32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 52 filter_block_4: - 9: Mov32Reg dst: r4 src: r4 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestJump0/kernel#01 ---- PASS: TestJump0 (0.21s) - --- SKIP: TestJump0/C (0.10s) - --- SKIP: TestJump0/eBPF (0.00s) - --- PASS: TestJump0/kernel (0.06s) - --- SKIP: TestJump0/C#01 (0.06s) - --- SKIP: TestJump0/eBPF#01 (0.00s) - --- PASS: TestJump0/kernel#01 (0.00s) -=== CONT TestLoadIndirect -=== RUN TestLoadIndirect/constant_valid -=== RUN TestLoadIndirect/constant_valid/C -=== RUN TestALUShiftRight/eBPF + 13: Exit +=== RUN TestALUMul/kernel#03 +=== RUN TestALUMul/C#04 +=== RUN TestALUDiv/eBPF +=== RUN TestALUAnd/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 240 - 3: RSh32Imm dst: r4 imm: 4 - 4: JEqImm dst: r4 off: -1 imm: 15 + 3: And32Imm dst: r4 imm: 128 + 4: JEqImm dst: r4 off: -1 imm: 128 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -4413,8 +4402,57 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUShiftRight/kernel -=== RUN TestALUShiftRight/C#01 +=== RUN TestALUAnd/kernel#02 +=== RUN TestALUAnd/C#03 +=== NAME TestALUDiv/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 2 + 3: Div32Imm dst: r4 imm: 2 + 4: JEqImm dst: r4 off: -1 imm: 1 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUDiv/kernel +=== RUN TestALUDiv/C#01 +=== RUN TestJumpIfGreaterThan/eBPF#11 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 22 + 3: Mov32Imm dst: r5 imm: 23 + 4: JEqImm dst: r4 off: -1 imm: 0 + filter_block_3: + 5: JGTReg dst: r4 off: -1 src: r5 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 9: Mov32Imm dst: r4 imm: 0 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 11: Mov32Imm dst: r4 imm: 1 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestJumpIfGreaterThan/kernel#11 === RUN TestJumpIfLessThan/eBPF#09 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -4442,71 +4480,37 @@ 15: Exit === RUN TestJumpIfLessThan/kernel#09 === RUN TestJumpIfLessThan/C#10 -=== RUN TestScratchA/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: -559038737 - 3: StXMemW dst: rfp src: r4 off: -32 imm: 0 - 4: Mov32Imm dst: r4 imm: 0 - 5: Mov32Imm dst: r4 imm: -1 - 6: StXMemW dst: rfp src: r4 off: -28 imm: 0 - 7: Mov32Imm dst: r4 imm: -1 - 8: StXMemW dst: rfp src: r4 off: -36 imm: 0 - 9: LdXMemW dst: r4 src: rfp off: -32 imm: 0 - 10: Mov32Imm dst: r6 imm: -559038737 - 11: JEqReg dst: r4 off: -1 src: r6 - filter_block_9: - 12: Mov32Imm dst: r4 imm: 0 - 13: JaImm dst: r0 off: -1 imm: 0 - filter_block_10: - 14: Mov32Imm dst: r4 imm: 1 - 15: JaImm dst: r0 off: -1 imm: 0 - result: - 16: MovImm dst: r0 imm: 2 - 17: JEqImm dst: r4 off: -1 imm: 0 - 18: MovImm dst: r0 imm: 1 - return: - 19: Exit -=== RUN TestScratchA/kernel -=== RUN TestScratchA/C#01 -=== RUN TestJumpIfGreaterThan/C#11 -=== RUN TestALUMod/eBPF#01 +=== RUN TestALUOr/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 16 - 3: Mov32Imm dst: r5 imm: 4 - 4: JEqImm dst: r5 off: -1 imm: 0 - 5: Mod32Reg dst: r4 src: r5 - 6: JEqImm dst: r4 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 240 + 3: Or32Imm dst: r4 imm: 15 + 4: JEqImm dst: r4 off: -1 imm: 255 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 1 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestALUMod/kernel#01 -=== RUN TestALUMod/C#02 -=== RUN TestALUXor/eBPF#02 + 12: Exit +=== RUN TestALUOr/kernel#02 +=== RUN TestALUOr/C#03 +=== RUN TestALUDivZero/C#01 +=== RUN TestALUMul/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: Mod32Imm dst: r4 imm: 4 - 4: JEqImm dst: r4 off: -1 imm: 2 + 2: Mov32Imm dst: r4 imm: 2 + 3: Mul32Imm dst: r4 imm: -2147483648 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -4519,38 +4523,16 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUXor/kernel#02 -=== RUN TestALUShiftRight/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 240 - 3: Mov32Imm dst: r5 imm: 4 - 4: RSh32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 15 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 - result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUShiftRight/kernel#01 -=== RUN TestALUShiftRight/C#02 -=== RUN TestJumpIfLessThan/eBPF#10 +=== RUN TestALUMul/kernel#04 +=== RUN TestALUMul/C#05 +=== RUN TestALUAdd/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: Mov32Imm dst: r5 imm: 23 - 4: JLTReg dst: r4 off: -1 src: r5 + 2: Mov32Imm dst: r4 imm: 1 + 3: Add32Imm dst: r4 imm: 0 + 4: JEqImm dst: r4 off: -1 imm: 1 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -4563,91 +4545,26 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestJumpIfLessThan/kernel#10 -=== RUN TestJumpIfLessThan/C#11 -=== RUN TestALUXor/C#03 -=== RUN TestScratchZero/eBPF +=== RUN TestALUAdd/kernel +=== RUN TestALUAdd/C#01 +=== RUN TestALUDiv/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 4 - 3: StXMemW dst: rfp src: r4 off: -4 imm: 0 - 4: Mov32Imm dst: r4 imm: 0 - 5: LdXMemW dst: r4 src: rfp off: -4 imm: 0 - 6: JEqImm dst: r4 off: -1 imm: 4 - filter_block_5: + 2: Mov32Imm dst: r4 imm: 2 + 3: Mov32Imm dst: r5 imm: 2 + 4: JEqImm dst: r5 off: -1 imm: 0 + 5: Div32Reg dst: r4 src: r5 + 6: JEqImm dst: r4 off: -1 imm: 1 + filter_block_4: 7: Mov32Imm dst: r4 imm: 0 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: + filter_block_5: 9: Mov32Imm dst: r4 imm: 1 10: JaImm dst: r0 off: -1 imm: 0 - result: - 11: MovImm dst: r0 imm: 2 - 12: JEqImm dst: r4 off: -1 imm: 0 - 13: MovImm dst: r0 imm: 1 - return: - 14: Exit -=== RUN TestScratchZero/kernel ---- PASS: TestScratchZero (0.11s) - --- SKIP: TestScratchZero/C (0.11s) - --- SKIP: TestScratchZero/eBPF (0.00s) - --- PASS: TestScratchZero/kernel (0.00s) -=== CONT TestLoadAbsoluteBigOffset -=== RUN TestLoadAbsoluteBigOffset/C -=== RUN TestLoadIndirect/constant_valid/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r5 imm: -2147483644 - 3: MovReg dst: r7 src: r5 - 4: LShImm dst: r7 imm: 32 - 5: ArShImm dst: r7 imm: 32 - 6: AddImm dst: r7 imm: 2147483647 - 7: JGEImm dst: r7 off: -1 imm: 65535 - 8: AddReg dst: r7 src: r2 - 9: MovReg dst: r6 src: r7 - 10: AddImm dst: r6 imm: 1 - 11: JGTReg dst: r6 off: -1 src: r3 - 12: LdXMemB dst: r4 src: r7 off: 0 imm: 0 - 13: JEqImm dst: r4 off: -1 imm: 5 - filter_block_3: - 14: Mov32Imm dst: r4 imm: 0 - 15: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 16: Mov32Imm dst: r4 imm: 1 - 17: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 18: MovImm dst: r4 imm: 0 - 19: JaImm dst: r0 off: -1 imm: 0 - result: - 20: MovImm dst: r0 imm: 2 - 21: JEqImm dst: r4 off: -1 imm: 0 - 22: MovImm dst: r0 imm: 1 - return: - 23: Exit -=== RUN TestLoadIndirect/constant_valid/kernel -=== RUN TestLoadIndirect/constant_valid/C#01 -=== RUN TestJumpIfGreaterThan/eBPF#11 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 22 - 3: Mov32Imm dst: r5 imm: 23 - 4: JEqImm dst: r4 off: -1 imm: 0 - filter_block_3: - 5: JGTReg dst: r4 off: -1 src: r5 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 0 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_block_6: - 11: Mov32Imm dst: r4 imm: 1 + 11: MovImm dst: r4 imm: 0 12: JaImm dst: r0 off: -1 imm: 0 result: 13: MovImm dst: r0 imm: 2 @@ -4655,51 +4572,39 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestJumpIfGreaterThan/kernel#11 -=== RUN TestScratchA/eBPF#01 +=== RUN TestALUDiv/kernel#01 +=== RUN TestALUAnd/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 0 - 3: StXMemW dst: rfp src: r4 off: -32 imm: 0 - 4: Mov32Imm dst: r4 imm: 0 - 5: Mov32Imm dst: r4 imm: -1 - 6: StXMemW dst: rfp src: r4 off: -28 imm: 0 - 7: Mov32Imm dst: r4 imm: -1 - 8: StXMemW dst: rfp src: r4 off: -36 imm: 0 - 9: LdXMemW dst: r4 src: rfp off: -32 imm: 0 - 10: JEqImm dst: r4 off: -1 imm: 0 - filter_block_9: - 11: Mov32Imm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 - filter_block_10: - 13: Mov32Imm dst: r4 imm: 1 - 14: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 240 + 3: Mov32Imm dst: r5 imm: 128 + 4: And32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 128 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 15: MovImm dst: r0 imm: 2 - 16: JEqImm dst: r4 off: -1 imm: 0 - 17: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 18: Exit -=== RUN TestScratchA/kernel#01 ---- PASS: TestScratchA (0.15s) - --- SKIP: TestScratchA/C (0.07s) - --- SKIP: TestScratchA/eBPF (0.00s) - --- PASS: TestScratchA/kernel (0.00s) - --- SKIP: TestScratchA/C#01 (0.08s) - --- SKIP: TestScratchA/eBPF#01 (0.00s) - --- PASS: TestScratchA/kernel#01 (0.00s) -=== CONT TestLoadAbsolute -=== RUN TestLoadAbsolute/C -=== RUN TestALUMod/eBPF#02 + 13: Exit +=== RUN TestALUAnd/kernel#03 +=== RUN TestALUDiv/C#02 +=== RUN TestALUAnd/C#04 +=== RUN TestJumpIfLessThan/eBPF#10 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 17 - 3: Mod32Imm dst: r4 imm: 4 - 4: JEqImm dst: r4 off: -1 imm: 1 + 2: Mov32Imm dst: r4 imm: 22 + 3: Mov32Imm dst: r5 imm: 23 + 4: JLTReg dst: r4 off: -1 src: r5 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -4712,87 +4617,121 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUMod/kernel#02 -=== RUN TestALUMod/C#03 ---- PASS: TestJumpIfGreaterThan (1.23s) - --- SKIP: TestJumpIfGreaterThan/C (0.06s) +=== RUN TestJumpIfLessThan/kernel#10 +=== RUN TestJumpIfLessThan/C#11 +=== RUN TestALUMul/eBPF#05 +--- PASS: TestJumpIfGreaterThan (0.77s) + --- SKIP: TestJumpIfGreaterThan/C (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF (0.00s) --- PASS: TestJumpIfGreaterThan/kernel (0.00s) - --- SKIP: TestJumpIfGreaterThan/C#01 (0.05s) + --- SKIP: TestJumpIfGreaterThan/C#01 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#01 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#01 (0.00s) - --- SKIP: TestJumpIfGreaterThan/C#02 (0.10s) + --- SKIP: TestJumpIfGreaterThan/C#02 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#02 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#02 (0.00s) - --- SKIP: TestJumpIfGreaterThan/C#03 (0.09s) + --- SKIP: TestJumpIfGreaterThan/C#03 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#03 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#03 (0.00s) --- SKIP: TestJumpIfGreaterThan/C#04 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#04 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#04 (0.05s) - --- SKIP: TestJumpIfGreaterThan/C#05 (0.07s) + --- SKIP: TestJumpIfGreaterThan/C#05 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#05 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#05 (0.05s) - --- SKIP: TestJumpIfGreaterThan/C#06 (0.08s) + --- SKIP: TestJumpIfGreaterThan/C#06 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#06 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#06 (0.05s) - --- SKIP: TestJumpIfGreaterThan/C#07 (0.08s) + --- SKIP: TestJumpIfGreaterThan/C#07 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#07 (0.00s) - --- PASS: TestJumpIfGreaterThan/kernel#07 (0.06s) - --- SKIP: TestJumpIfGreaterThan/C#08 (0.06s) + --- PASS: TestJumpIfGreaterThan/kernel#07 (0.05s) + --- SKIP: TestJumpIfGreaterThan/C#08 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#08 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#08 (0.05s) - --- SKIP: TestJumpIfGreaterThan/C#09 (0.05s) + --- SKIP: TestJumpIfGreaterThan/C#09 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#09 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#09 (0.05s) - --- SKIP: TestJumpIfGreaterThan/C#10 (0.07s) + --- SKIP: TestJumpIfGreaterThan/C#10 (0.03s) --- SKIP: TestJumpIfGreaterThan/eBPF#10 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#10 (0.05s) - --- SKIP: TestJumpIfGreaterThan/C#11 (0.07s) + --- SKIP: TestJumpIfGreaterThan/C#11 (0.04s) --- SKIP: TestJumpIfGreaterThan/eBPF#11 (0.00s) --- PASS: TestJumpIfGreaterThan/kernel#11 (0.05s) -=== CONT TestLoadConstantX -=== RUN TestLoadConstantX/C -=== RUN TestLoadIndirect/constant_valid/eBPF#01 +=== CONT TestALUSub +=== RUN TestALUSub/C +=== NAME TestALUMul/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: -2147483644 - 3: MovReg dst: r7 src: r5 - 4: LShImm dst: r7 imm: 32 - 5: ArShImm dst: r7 imm: 32 - 6: AddImm dst: r7 imm: 2147483647 - 7: JGEImm dst: r7 off: -1 imm: 65535 - 8: AddReg dst: r7 src: r2 - 9: MovReg dst: r6 src: r7 - 10: AddImm dst: r6 imm: 1 - 11: JGTReg dst: r6 off: -1 src: r3 - 12: LdXMemB dst: r4 src: r7 off: 0 imm: 0 - 13: JEqImm dst: r4 off: -1 imm: 6 - filter_block_3: - 14: Mov32Imm dst: r4 imm: 0 - 15: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 2 + 3: Mov32Imm dst: r5 imm: -2147483648 + 4: Mul32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 0 filter_block_4: - 16: Mov32Imm dst: r4 imm: 1 - 17: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 18: MovImm dst: r4 imm: 0 - 19: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 20: MovImm dst: r0 imm: 2 - 21: JEqImm dst: r4 off: -1 imm: 0 - 22: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 23: Exit -=== RUN TestLoadIndirect/constant_valid/kernel#01 -=== RUN TestALUShiftRight/eBPF#02 + 13: Exit +=== RUN TestALUMul/kernel#05 +--- PASS: TestALUMul (0.19s) + --- SKIP: TestALUMul/C (0.04s) + --- SKIP: TestALUMul/eBPF (0.00s) + --- PASS: TestALUMul/kernel (0.00s) + --- SKIP: TestALUMul/C#01 (0.03s) + --- SKIP: TestALUMul/eBPF#01 (0.00s) + --- PASS: TestALUMul/kernel#01 (0.00s) + --- SKIP: TestALUMul/C#02 (0.03s) + --- SKIP: TestALUMul/eBPF#02 (0.00s) + --- PASS: TestALUMul/kernel#02 (0.00s) + --- SKIP: TestALUMul/C#03 (0.03s) + --- SKIP: TestALUMul/eBPF#03 (0.00s) + --- PASS: TestALUMul/kernel#03 (0.00s) + --- SKIP: TestALUMul/C#04 (0.03s) + --- SKIP: TestALUMul/eBPF#04 (0.00s) + --- PASS: TestALUMul/kernel#04 (0.00s) + --- SKIP: TestALUMul/C#05 (0.03s) + --- SKIP: TestALUMul/eBPF#05 (0.01s) + --- PASS: TestALUMul/kernel#05 (0.00s) +=== CONT TestLoadAbsolute +=== RUN TestLoadAbsolute/C +=== RUN TestALUAdd/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 1 + 3: Mov32Imm dst: r5 imm: 0 + 4: Add32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 1 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestALUAdd/kernel#01 +=== RUN TestALUAdd/C#02 +=== RUN TestALUAnd/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 240 - 3: RSh32Imm dst: r4 imm: 8 + 3: And32Imm dst: r4 imm: 15 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 @@ -4806,73 +4745,101 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUShiftRight/kernel#02 -=== RUN TestALUShiftRight/C#03 -=== RUN TestLoadAbsoluteBigOffset/eBPF +=== RUN TestALUAnd/kernel#04 +=== RUN TestALUAnd/C#05 +=== RUN TestALUDiv/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 19 + 3: Div32Imm dst: r4 imm: 3 + 4: JEqImm dst: r4 off: -1 imm: 6 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUDiv/kernel#02 +=== RUN TestALUDiv/C#03 +=== RUN TestALUDivZero/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 65535 + 3: AddImm dst: r6 imm: 1 4: JGTReg dst: r6 off: -1 src: r3 - 5: MovReg dst: r6 src: r2 - 6: AddImm dst: r6 imm: 65534 - 7: LdXMemB dst: r4 src: r6 off: 0 imm: 0 - 8: Add32Imm dst: r4 imm: 2 - 9: Mov32Reg dst: r4 src: r4 - 10: JaImm dst: r0 off: -1 imm: 0 + 5: LdXMemB dst: r4 src: r2 off: 0 imm: 0 + 6: Mov32Reg dst: r5 src: r4 + 7: Mov32Imm dst: r4 imm: 10 + 8: JEqImm dst: r5 off: -1 imm: 0 + 9: Div32Reg dst: r4 src: r5 + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 + 12: MovImm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 14: MovImm dst: r0 imm: 2 + 15: JEqImm dst: r4 off: -1 imm: 0 + 16: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestLoadAbsoluteBigOffset/kernel -=== RUN TestALUXor/eBPF#03 + 17: Exit +=== RUN TestALUDivZero/kernel#01 +--- PASS: TestALUDivZero (0.13s) + --- SKIP: TestALUDivZero/C (0.04s) + --- SKIP: TestALUDivZero/eBPF (0.00s) + --- PASS: TestALUDivZero/kernel (0.05s) + --- SKIP: TestALUDivZero/C#01 (0.04s) + --- SKIP: TestALUDivZero/eBPF#01 (0.00s) + --- PASS: TestALUDivZero/kernel#01 (0.00s) +=== CONT TestScratchA +=== RUN TestScratchA/C +=== RUN TestALUOr/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 6 - 3: Mov32Imm dst: r5 imm: 4 - 4: JEqImm dst: r5 off: -1 imm: 0 - 5: Mod32Reg dst: r4 src: r5 - 6: JEqImm dst: r4 off: -1 imm: 2 + 2: Mov32Imm dst: r4 imm: 240 + 3: Mov32Imm dst: r5 imm: 15 + 4: Or32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 255 filter_block_4: - 7: Mov32Imm dst: r4 imm: 0 - 8: JaImm dst: r0 off: -1 imm: 0 + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 filter_block_5: - 9: Mov32Imm dst: r4 imm: 1 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 16: Exit -=== RUN TestALUXor/kernel#03 ---- PASS: TestALUXor (0.33s) - --- SKIP: TestALUXor/C (0.06s) - --- SKIP: TestALUXor/eBPF (0.00s) - --- PASS: TestALUXor/kernel (0.00s) - --- SKIP: TestALUXor/C#01 (0.08s) - --- SKIP: TestALUXor/eBPF#01 (0.00s) - --- PASS: TestALUXor/kernel#01 (0.00s) - --- SKIP: TestALUXor/C#02 (0.07s) - --- SKIP: TestALUXor/eBPF#02 (0.00s) - --- PASS: TestALUXor/kernel#02 (0.00s) - --- SKIP: TestALUXor/C#03 (0.08s) - --- SKIP: TestALUXor/eBPF#03 (0.00s) - --- PASS: TestALUXor/kernel#03 (0.00s) -=== CONT TestLoadConstantA -=== RUN TestLoadConstantA/C + 13: Exit +=== RUN TestALUOr/kernel#03 +--- PASS: TestALUOr (0.15s) + --- SKIP: TestALUOr/C (0.03s) + --- SKIP: TestALUOr/eBPF (0.00s) + --- PASS: TestALUOr/kernel (0.00s) + --- SKIP: TestALUOr/C#01 (0.03s) + --- SKIP: TestALUOr/eBPF#01 (0.00s) + --- PASS: TestALUOr/kernel#01 (0.00s) + --- SKIP: TestALUOr/C#02 (0.03s) + --- SKIP: TestALUOr/eBPF#02 (0.00s) + --- PASS: TestALUOr/kernel#02 (0.00s) + --- SKIP: TestALUOr/C#03 (0.06s) + --- SKIP: TestALUOr/eBPF#03 (0.00s) + --- PASS: TestALUOr/kernel#03 (0.00s) +=== CONT TestScratchZero +=== RUN TestScratchZero/C === RUN TestJumpIfLessThan/eBPF#11 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -4900,80 +4867,54 @@ return: 16: Exit === RUN TestJumpIfLessThan/kernel#11 ---- PASS: TestJumpIfLessThan (1.39s) - --- SKIP: TestJumpIfLessThan/C (0.08s) +--- PASS: TestJumpIfLessThan (0.82s) + --- SKIP: TestJumpIfLessThan/C (0.03s) --- SKIP: TestJumpIfLessThan/eBPF (0.00s) --- PASS: TestJumpIfLessThan/kernel (0.05s) - --- SKIP: TestJumpIfLessThan/C#01 (0.08s) + --- SKIP: TestJumpIfLessThan/C#01 (0.04s) --- SKIP: TestJumpIfLessThan/eBPF#01 (0.00s) --- PASS: TestJumpIfLessThan/kernel#01 (0.05s) - --- SKIP: TestJumpIfLessThan/C#02 (0.06s) + --- SKIP: TestJumpIfLessThan/C#02 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#02 (0.00s) --- PASS: TestJumpIfLessThan/kernel#02 (0.05s) - --- SKIP: TestJumpIfLessThan/C#03 (0.08s) + --- SKIP: TestJumpIfLessThan/C#03 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#03 (0.00s) - --- PASS: TestJumpIfLessThan/kernel#03 (0.07s) - --- SKIP: TestJumpIfLessThan/C#04 (0.08s) + --- PASS: TestJumpIfLessThan/kernel#03 (0.05s) + --- SKIP: TestJumpIfLessThan/C#04 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#04 (0.00s) --- PASS: TestJumpIfLessThan/kernel#04 (0.05s) - --- SKIP: TestJumpIfLessThan/C#05 (0.06s) + --- SKIP: TestJumpIfLessThan/C#05 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#05 (0.00s) --- PASS: TestJumpIfLessThan/kernel#05 (0.05s) - --- SKIP: TestJumpIfLessThan/C#06 (0.10s) + --- SKIP: TestJumpIfLessThan/C#06 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#06 (0.00s) --- PASS: TestJumpIfLessThan/kernel#06 (0.05s) - --- SKIP: TestJumpIfLessThan/C#07 (0.09s) + --- SKIP: TestJumpIfLessThan/C#07 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#07 (0.00s) --- PASS: TestJumpIfLessThan/kernel#07 (0.05s) - --- SKIP: TestJumpIfLessThan/C#08 (0.06s) + --- SKIP: TestJumpIfLessThan/C#08 (0.05s) --- SKIP: TestJumpIfLessThan/eBPF#08 (0.00s) --- PASS: TestJumpIfLessThan/kernel#08 (0.00s) - --- SKIP: TestJumpIfLessThan/C#09 (0.08s) + --- SKIP: TestJumpIfLessThan/C#09 (0.05s) --- SKIP: TestJumpIfLessThan/eBPF#09 (0.00s) --- PASS: TestJumpIfLessThan/kernel#09 (0.00s) - --- SKIP: TestJumpIfLessThan/C#10 (0.08s) + --- SKIP: TestJumpIfLessThan/C#10 (0.04s) --- SKIP: TestJumpIfLessThan/eBPF#10 (0.00s) --- PASS: TestJumpIfLessThan/kernel#10 (0.00s) - --- SKIP: TestJumpIfLessThan/C#11 (0.12s) + --- SKIP: TestJumpIfLessThan/C#11 (0.03s) --- SKIP: TestJumpIfLessThan/eBPF#11 (0.00s) --- PASS: TestJumpIfLessThan/kernel#11 (0.00s) -=== CONT TestPartialZeroInitX -=== RUN TestPartialZeroInitX/C -=== RUN TestLoadAbsolute/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 3 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: LdXMemB dst: r4 src: r2 off: 2 imm: 0 - 6: JEqImm dst: r4 off: -1 imm: 5 - filter_block_2: - 7: Mov32Imm dst: r4 imm: 0 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 9: Mov32Imm dst: r4 imm: 1 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 - result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 - return: - 16: Exit -=== RUN TestLoadAbsolute/kernel -=== RUN TestLoadAbsolute/C#01 -=== RUN TestLoadConstantX/eBPF +=== CONT TestLoadIndirect +=== RUN TestLoadIndirect/constant_valid +=== RUN TestLoadIndirect/constant_valid/C +=== RUN TestALUSub/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: 1 - 3: Mov32Reg dst: r4 src: r5 - 4: JEqImm dst: r4 off: -1 imm: 1 + 2: Mov32Imm dst: r4 imm: 1 + 3: Sub32Imm dst: r4 imm: 1 + 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -4986,20 +4927,17 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestLoadConstantX/kernel -=== RUN TestLoadConstantX/C#01 -=== RUN TestLoadIndirect/constant_valid/C#02 -=== RUN TestLoadAbsoluteBigOffset/C#01 -=== RUN TestALUMod/eBPF#03 +=== RUN TestALUSub/kernel +=== RUN TestALUDiv/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 17 - 3: Mov32Imm dst: r5 imm: 4 + 2: Mov32Imm dst: r4 imm: 19 + 3: Mov32Imm dst: r5 imm: 3 4: JEqImm dst: r5 off: -1 imm: 0 - 5: Mod32Reg dst: r4 src: r5 - 6: JEqImm dst: r4 off: -1 imm: 1 + 5: Div32Reg dst: r4 src: r5 + 6: JEqImm dst: r4 off: -1 imm: 6 filter_block_4: 7: Mov32Imm dst: r4 imm: 0 8: JaImm dst: r0 off: -1 imm: 0 @@ -5015,30 +4953,30 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestALUMod/kernel#03 ---- PASS: TestALUMod (0.30s) - --- SKIP: TestALUMod/C (0.06s) - --- SKIP: TestALUMod/eBPF (0.00s) - --- PASS: TestALUMod/kernel (0.00s) - --- SKIP: TestALUMod/C#01 (0.07s) - --- SKIP: TestALUMod/eBPF#01 (0.00s) - --- PASS: TestALUMod/kernel#01 (0.00s) - --- SKIP: TestALUMod/C#02 (0.09s) - --- SKIP: TestALUMod/eBPF#02 (0.00s) - --- PASS: TestALUMod/kernel#02 (0.00s) - --- SKIP: TestALUMod/C#03 (0.08s) - --- SKIP: TestALUMod/eBPF#03 (0.00s) - --- PASS: TestALUMod/kernel#03 (0.00s) -=== CONT TestZeroInitX -=== RUN TestZeroInitX/C -=== RUN TestALUShiftRight/eBPF#03 +=== RUN TestALUDiv/kernel#03 +--- PASS: TestALUDiv (0.12s) + --- SKIP: TestALUDiv/C (0.03s) + --- SKIP: TestALUDiv/eBPF (0.00s) + --- PASS: TestALUDiv/kernel (0.00s) + --- SKIP: TestALUDiv/C#01 (0.03s) + --- SKIP: TestALUDiv/eBPF#01 (0.00s) + --- PASS: TestALUDiv/kernel#01 (0.00s) + --- SKIP: TestALUDiv/C#02 (0.03s) + --- SKIP: TestALUDiv/eBPF#02 (0.00s) + --- PASS: TestALUDiv/kernel#02 (0.00s) + --- SKIP: TestALUDiv/C#03 (0.03s) + --- SKIP: TestALUDiv/eBPF#03 (0.00s) + --- PASS: TestALUDiv/kernel#03 (0.00s) +=== CONT TestLoadAbsoluteBigOffset +=== RUN TestLoadAbsoluteBigOffset/C +=== RUN TestALUAnd/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 240 - 3: Mov32Imm dst: r5 imm: 8 - 4: RSh32Reg dst: r4 src: r5 + 3: Mov32Imm dst: r5 imm: 15 + 4: And32Reg dst: r4 src: r5 5: JEqImm dst: r4 off: -1 imm: 0 filter_block_4: 6: Mov32Imm dst: r4 imm: 0 @@ -5052,49 +4990,170 @@ 12: MovImm dst: r0 imm: 1 return: 13: Exit -=== RUN TestALUShiftRight/kernel#03 ---- PASS: TestALUShiftRight (0.31s) - --- SKIP: TestALUShiftRight/C (0.08s) - --- SKIP: TestALUShiftRight/eBPF (0.00s) - --- PASS: TestALUShiftRight/kernel (0.00s) - --- SKIP: TestALUShiftRight/C#01 (0.07s) - --- SKIP: TestALUShiftRight/eBPF#01 (0.00s) - --- PASS: TestALUShiftRight/kernel#01 (0.00s) - --- SKIP: TestALUShiftRight/C#02 (0.09s) - --- SKIP: TestALUShiftRight/eBPF#02 (0.00s) - --- PASS: TestALUShiftRight/kernel#02 (0.00s) - --- SKIP: TestALUShiftRight/C#03 (0.07s) - --- SKIP: TestALUShiftRight/eBPF#03 (0.00s) - --- PASS: TestALUShiftRight/kernel#03 (0.00s) -=== CONT TestALUDivZero -=== RUN TestALUDivZero/C -=== RUN TestPartialZeroInitX/eBPF +=== RUN TestALUAnd/kernel#05 +--- PASS: TestALUAnd (0.21s) + --- SKIP: TestALUAnd/C (0.03s) + --- SKIP: TestALUAnd/eBPF (0.00s) + --- PASS: TestALUAnd/kernel (0.00s) + --- SKIP: TestALUAnd/C#01 (0.05s) + --- SKIP: TestALUAnd/eBPF#01 (0.00s) + --- PASS: TestALUAnd/kernel#01 (0.00s) + --- SKIP: TestALUAnd/C#02 (0.04s) + --- SKIP: TestALUAnd/eBPF#02 (0.00s) + --- PASS: TestALUAnd/kernel#02 (0.00s) + --- SKIP: TestALUAnd/C#03 (0.03s) + --- SKIP: TestALUAnd/eBPF#03 (0.00s) + --- PASS: TestALUAnd/kernel#03 (0.00s) + --- SKIP: TestALUAnd/C#04 (0.03s) + --- SKIP: TestALUAnd/eBPF#04 (0.00s) + --- PASS: TestALUAnd/kernel#04 (0.00s) + --- SKIP: TestALUAnd/C#05 (0.03s) + --- SKIP: TestALUAnd/eBPF#05 (0.00s) + --- PASS: TestALUAnd/kernel#05 (0.00s) +=== CONT TestLoadConstantA +=== RUN TestLoadConstantA/C +=== RUN TestALUSub/C#01 +=== RUN TestLoadAbsolute/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 1 + 3: AddImm dst: r6 imm: 3 4: JGTReg dst: r6 off: -1 src: r3 - 5: Mov32Imm dst: r5 imm: 0 - 6: LdXMemB dst: r4 src: r2 off: 0 imm: 0 - 7: JNEImm dst: r4 off: -1 imm: 3 + 5: LdXMemB dst: r4 src: r2 off: 2 imm: 0 + 6: JEqImm dst: r4 off: -1 imm: 5 filter_block_2: - 8: Mov32Reg dst: r5 src: r4 + 7: Mov32Imm dst: r4 imm: 0 + 8: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 9: Mov32Reg dst: r4 src: r5 - 10: Mov32Reg dst: r4 src: r4 - 11: JaImm dst: r0 off: -1 imm: 0 + 9: Mov32Imm dst: r4 imm: 1 + 10: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 12: MovImm dst: r4 imm: 0 + 11: MovImm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 + result: + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 + return: + 16: Exit +=== RUN TestLoadAbsolute/kernel +=== RUN TestLoadAbsolute/C#01 +=== RUN TestLoadIndirect/constant_valid/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r5 imm: -2147483644 + 3: MovReg dst: r7 src: r5 + 4: LShImm dst: r7 imm: 32 + 5: ArShImm dst: r7 imm: 32 + 6: AddImm dst: r7 imm: 2147483647 + 7: JGEImm dst: r7 off: -1 imm: 65535 + 8: AddReg dst: r7 src: r2 + 9: MovReg dst: r6 src: r7 + 10: AddImm dst: r6 imm: 1 + 11: JGTReg dst: r6 off: -1 src: r3 + 12: LdXMemB dst: r4 src: r7 off: 0 imm: 0 + 13: JEqImm dst: r4 off: -1 imm: 5 + filter_block_3: + 14: Mov32Imm dst: r4 imm: 0 + 15: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 16: Mov32Imm dst: r4 imm: 1 + 17: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 18: MovImm dst: r4 imm: 0 + 19: JaImm dst: r0 off: -1 imm: 0 + result: + 20: MovImm dst: r0 imm: 2 + 21: JEqImm dst: r4 off: -1 imm: 0 + 22: MovImm dst: r0 imm: 1 + return: + 23: Exit +=== RUN TestLoadIndirect/constant_valid/kernel +=== RUN TestLoadIndirect/constant_valid/C#01 +=== RUN TestScratchA/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: -559038737 + 3: StXMemW dst: rfp src: r4 off: -32 imm: 0 + 4: Mov32Imm dst: r4 imm: 0 + 5: Mov32Imm dst: r4 imm: -1 + 6: StXMemW dst: rfp src: r4 off: -28 imm: 0 + 7: Mov32Imm dst: r4 imm: -1 + 8: StXMemW dst: rfp src: r4 off: -36 imm: 0 + 9: LdXMemW dst: r4 src: rfp off: -32 imm: 0 + 10: Mov32Imm dst: r6 imm: -559038737 + 11: JEqReg dst: r4 off: -1 src: r6 + filter_block_9: + 12: Mov32Imm dst: r4 imm: 0 13: JaImm dst: r0 off: -1 imm: 0 + filter_block_10: + 14: Mov32Imm dst: r4 imm: 1 + 15: JaImm dst: r0 off: -1 imm: 0 result: - 14: MovImm dst: r0 imm: 2 - 15: JEqImm dst: r4 off: -1 imm: 0 - 16: MovImm dst: r0 imm: 1 + 16: MovImm dst: r0 imm: 2 + 17: JEqImm dst: r4 off: -1 imm: 0 + 18: MovImm dst: r0 imm: 1 return: - 17: Exit -=== RUN TestPartialZeroInitX/kernel + 19: Exit +=== RUN TestScratchA/kernel +=== RUN TestScratchA/C#01 +=== RUN TestALUAdd/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 4 + 3: Add32Imm dst: r4 imm: 13 + 4: JEqImm dst: r4 off: -1 imm: 17 + filter_block_3: + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 + result: + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 + return: + 12: Exit +=== RUN TestALUAdd/kernel#02 +=== RUN TestALUAdd/C#03 +=== RUN TestScratchZero/eBPF + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 4 + 3: StXMemW dst: rfp src: r4 off: -4 imm: 0 + 4: Mov32Imm dst: r4 imm: 0 + 5: LdXMemW dst: r4 src: rfp off: -4 imm: 0 + 6: JEqImm dst: r4 off: -1 imm: 4 + filter_block_5: + 7: Mov32Imm dst: r4 imm: 0 + 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_6: + 9: Mov32Imm dst: r4 imm: 1 + 10: JaImm dst: r0 off: -1 imm: 0 + result: + 11: MovImm dst: r0 imm: 2 + 12: JEqImm dst: r4 off: -1 imm: 0 + 13: MovImm dst: r0 imm: 1 + return: + 14: Exit +=== RUN TestScratchZero/kernel +--- PASS: TestScratchZero (0.05s) + --- SKIP: TestScratchZero/C (0.05s) + --- SKIP: TestScratchZero/eBPF (0.00s) + --- PASS: TestScratchZero/kernel (0.00s) +=== CONT TestLoadConstantX +=== RUN TestLoadConstantX/C === RUN TestLoadConstantA/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -5116,37 +5175,19 @@ 11: Exit === RUN TestLoadConstantA/kernel === RUN TestLoadConstantA/C#01 -=== RUN TestZeroInitX/eBPF - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r5 imm: 0 - 3: Mov32Reg dst: r4 src: r5 - 4: Mov32Reg dst: r4 src: r4 - 5: JaImm dst: r0 off: -1 imm: 0 - result: - 6: MovImm dst: r0 imm: 2 - 7: JEqImm dst: r4 off: -1 imm: 0 - 8: MovImm dst: r0 imm: 1 - return: - 9: Exit -=== RUN TestZeroInitX/kernel -=== RUN TestLoadAbsolute/eBPF#01 +=== RUN TestLoadAbsoluteBigOffset/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 3 + 3: AddImm dst: r6 imm: 65535 4: JGTReg dst: r6 off: -1 src: r3 - 5: LdXMemB dst: r4 src: r2 off: 2 imm: 0 - 6: JEqImm dst: r4 off: -1 imm: 6 - filter_block_2: - 7: Mov32Imm dst: r4 imm: 0 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 9: Mov32Imm dst: r4 imm: 1 + 5: MovReg dst: r6 src: r2 + 6: AddImm dst: r6 imm: 65534 + 7: LdXMemB dst: r4 src: r6 off: 0 imm: 0 + 8: Add32Imm dst: r4 imm: 2 + 9: Mov32Reg dst: r4 src: r4 10: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: 11: MovImm dst: r4 imm: 0 @@ -5157,104 +5198,162 @@ 15: MovImm dst: r0 imm: 1 return: 16: Exit -=== RUN TestLoadAbsolute/kernel#01 -=== RUN TestLoadIndirect/constant_valid/eBPF#02 +=== RUN TestLoadAbsoluteBigOffset/kernel +=== RUN TestALUSub/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: 3 + 2: Mov32Imm dst: r4 imm: 1 + 3: Mov32Imm dst: r5 imm: 1 + 4: Sub32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 0 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestALUSub/kernel#01 +=== RUN TestALUSub/C#02 +=== RUN TestLoadIndirect/constant_valid/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r5 imm: -2147483644 3: MovReg dst: r7 src: r5 4: LShImm dst: r7 imm: 32 5: ArShImm dst: r7 imm: 32 - 6: AddImm dst: r7 imm: -1 - 7: JGEImm dst: r7 off: -1 imm: 65534 + 6: AddImm dst: r7 imm: 2147483647 + 7: JGEImm dst: r7 off: -1 imm: 65535 8: AddReg dst: r7 src: r2 9: MovReg dst: r6 src: r7 - 10: AddImm dst: r6 imm: 2 + 10: AddImm dst: r6 imm: 1 11: JGTReg dst: r6 off: -1 src: r3 - 12: LdXMemH dst: r4 src: r7 off: 0 imm: 0 - 13: SwapBE dst: r4 imm: 16 - 14: JEqImm dst: r4 off: -1 imm: 57005 + 12: LdXMemB dst: r4 src: r7 off: 0 imm: 0 + 13: JEqImm dst: r4 off: -1 imm: 6 filter_block_3: - 15: Mov32Imm dst: r4 imm: 0 - 16: JaImm dst: r0 off: -1 imm: 0 + 14: Mov32Imm dst: r4 imm: 0 + 15: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 17: Mov32Imm dst: r4 imm: 1 - 18: JaImm dst: r0 off: -1 imm: 0 + 16: Mov32Imm dst: r4 imm: 1 + 17: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 19: MovImm dst: r4 imm: 0 - 20: JaImm dst: r0 off: -1 imm: 0 + 18: MovImm dst: r4 imm: 0 + 19: JaImm dst: r0 off: -1 imm: 0 result: - 21: MovImm dst: r0 imm: 2 - 22: JEqImm dst: r4 off: -1 imm: 0 - 23: MovImm dst: r0 imm: 1 + 20: MovImm dst: r0 imm: 2 + 21: JEqImm dst: r4 off: -1 imm: 0 + 22: MovImm dst: r0 imm: 1 return: - 24: Exit -=== RUN TestLoadIndirect/constant_valid/kernel#02 -=== RUN TestLoadIndirect/constant_valid/C#03 -=== RUN TestLoadConstantX/eBPF#01 + 23: Exit +=== RUN TestLoadIndirect/constant_valid/kernel#01 +=== RUN TestLoadAbsolute/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: 28 - 3: Mov32Reg dst: r4 src: r5 - 4: JEqImm dst: r4 off: -1 imm: 28 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 3 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: LdXMemB dst: r4 src: r2 off: 2 imm: 0 + 6: JEqImm dst: r4 off: -1 imm: 6 + filter_block_2: + 7: Mov32Imm dst: r4 imm: 0 8: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 9: Mov32Imm dst: r4 imm: 1 + 10: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 11: MovImm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 13: MovImm dst: r0 imm: 2 + 14: JEqImm dst: r4 off: -1 imm: 0 + 15: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestLoadConstantX/kernel#01 -=== RUN TestLoadConstantX/C#02 -=== RUN TestLoadAbsoluteBigOffset/eBPF#01 + 16: Exit +=== RUN TestLoadAbsolute/kernel#01 +=== RUN TestScratchA/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: Mov32Imm dst: r4 imm: 0 - 3: JaImm dst: r0 off: -1 imm: 0 + 3: StXMemW dst: rfp src: r4 off: -32 imm: 0 + 4: Mov32Imm dst: r4 imm: 0 + 5: Mov32Imm dst: r4 imm: -1 + 6: StXMemW dst: rfp src: r4 off: -28 imm: 0 + 7: Mov32Imm dst: r4 imm: -1 + 8: StXMemW dst: rfp src: r4 off: -36 imm: 0 + 9: LdXMemW dst: r4 src: rfp off: -32 imm: 0 + 10: JEqImm dst: r4 off: -1 imm: 0 + filter_block_9: + 11: Mov32Imm dst: r4 imm: 0 + 12: JaImm dst: r0 off: -1 imm: 0 + filter_block_10: + 13: Mov32Imm dst: r4 imm: 1 + 14: JaImm dst: r0 off: -1 imm: 0 result: - 4: MovImm dst: r0 imm: 2 - 5: JEqImm dst: r4 off: -1 imm: 0 - 6: MovImm dst: r0 imm: 1 + 15: MovImm dst: r0 imm: 2 + 16: JEqImm dst: r4 off: -1 imm: 0 + 17: MovImm dst: r0 imm: 1 return: - 7: Exit -=== RUN TestLoadAbsoluteBigOffset/kernel#01 -=== RUN TestALUDivZero/eBPF + 18: Exit +=== RUN TestScratchA/kernel#01 +--- PASS: TestScratchA (0.09s) + --- SKIP: TestScratchA/C (0.04s) + --- SKIP: TestScratchA/eBPF (0.00s) + --- PASS: TestScratchA/kernel (0.00s) + --- SKIP: TestScratchA/C#01 (0.04s) + --- SKIP: TestScratchA/eBPF#01 (0.00s) + --- PASS: TestScratchA/kernel#01 (0.00s) +=== CONT TestLoadExtLen +=== RUN TestLoadExtLen/C +=== RUN TestALUAdd/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 1 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: LdXMemB dst: r4 src: r2 off: 0 imm: 0 - 6: Mov32Reg dst: r5 src: r4 - 7: Mov32Imm dst: r4 imm: 10 - 8: JEqImm dst: r5 off: -1 imm: 0 - 9: Div32Reg dst: r4 src: r5 - 10: Mov32Imm dst: r4 imm: 1 - 11: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 12: MovImm dst: r4 imm: 0 - 13: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 4 + 3: Mov32Imm dst: r5 imm: 13 + 4: Add32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 17 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 result: - 14: MovImm dst: r0 imm: 2 - 15: JEqImm dst: r4 off: -1 imm: 0 - 16: MovImm dst: r0 imm: 1 + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 return: - 17: Exit -=== RUN TestALUDivZero/kernel -=== RUN TestPartialZeroInitX/C#01 + 13: Exit +=== RUN TestALUAdd/kernel#03 +--- PASS: TestALUAdd (0.17s) + --- SKIP: TestALUAdd/C (0.03s) + --- SKIP: TestALUAdd/eBPF (0.00s) + --- PASS: TestALUAdd/kernel (0.00s) + --- SKIP: TestALUAdd/C#01 (0.03s) + --- SKIP: TestALUAdd/eBPF#01 (0.00s) + --- PASS: TestALUAdd/kernel#01 (0.00s) + --- SKIP: TestALUAdd/C#02 (0.06s) + --- SKIP: TestALUAdd/eBPF#02 (0.00s) + --- PASS: TestALUAdd/kernel#02 (0.00s) + --- SKIP: TestALUAdd/C#03 (0.04s) + --- SKIP: TestALUAdd/eBPF#03 (0.00s) + --- PASS: TestALUAdd/kernel#03 (0.00s) +=== CONT TestMemShift +=== RUN TestMemShift/C === RUN TestLoadConstantA/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -5276,24 +5375,14 @@ 11: Exit === RUN TestLoadConstantA/kernel#01 === RUN TestLoadConstantA/C#02 ---- PASS: TestZeroInitX (0.13s) - --- SKIP: TestZeroInitX/C (0.07s) - --- SKIP: TestZeroInitX/eBPF (0.00s) - --- PASS: TestZeroInitX/kernel (0.05s) -=== CONT TestALUDiv -=== RUN TestALUDiv/C -=== RUN TestLoadAbsolute/C#02 -=== RUN TestLoadAbsoluteBigOffset/C#02 -=== RUN TestLoadConstantX/eBPF#02 -=== RUN TestALUDivZero/C#01 -=== NAME TestLoadConstantX/eBPF#02 +=== RUN TestLoadConstantX/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: 0 + 2: Mov32Imm dst: r5 imm: 1 3: Mov32Reg dst: r4 src: r5 - 4: JEqImm dst: r4 off: -1 imm: 0 + 4: JEqImm dst: r4 off: -1 imm: 1 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -5306,89 +5395,58 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestLoadConstantX/kernel#02 ---- PASS: TestLoadConstantX (0.21s) - --- SKIP: TestLoadConstantX/C (0.07s) - --- SKIP: TestLoadConstantX/eBPF (0.00s) - --- PASS: TestLoadConstantX/kernel (0.00s) - --- SKIP: TestLoadConstantX/C#01 (0.09s) - --- SKIP: TestLoadConstantX/eBPF#01 (0.00s) - --- PASS: TestLoadConstantX/kernel#01 (0.00s) - --- SKIP: TestLoadConstantX/C#02 (0.06s) - --- SKIP: TestLoadConstantX/eBPF#02 (0.00s) - --- PASS: TestLoadConstantX/kernel#02 (0.00s) -=== CONT TestLoadExtLen -=== RUN TestLoadExtLen/C -=== RUN TestLoadIndirect/constant_valid/eBPF#03 +=== RUN TestLoadConstantX/kernel +=== RUN TestLoadConstantX/C#01 +=== RUN TestALUSub/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: 3 - 3: MovReg dst: r7 src: r5 - 4: LShImm dst: r7 imm: 32 - 5: ArShImm dst: r7 imm: 32 - 6: AddImm dst: r7 imm: -1 - 7: JGEImm dst: r7 off: -1 imm: 65534 - 8: AddReg dst: r7 src: r2 - 9: MovReg dst: r6 src: r7 - 10: AddImm dst: r6 imm: 2 - 11: JGTReg dst: r6 off: -1 src: r3 - 12: LdXMemH dst: r4 src: r7 off: 0 imm: 0 - 13: SwapBE dst: r4 imm: 16 - 14: JEqImm dst: r4 off: -1 imm: 57005 + 2: Mov32Imm dst: r4 imm: 13 + 3: Sub32Imm dst: r4 imm: 9 + 4: JEqImm dst: r4 off: -1 imm: 4 filter_block_3: - 15: Mov32Imm dst: r4 imm: 0 - 16: JaImm dst: r0 off: -1 imm: 0 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 17: Mov32Imm dst: r4 imm: 1 - 18: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 19: MovImm dst: r4 imm: 0 - 20: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 21: MovImm dst: r0 imm: 2 - 22: JEqImm dst: r4 off: -1 imm: 0 - 23: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 24: Exit -=== RUN TestLoadIndirect/constant_valid/kernel#03 -=== RUN TestPartialZeroInitX/eBPF#01 + 12: Exit +=== RUN TestALUSub/kernel#02 +=== RUN TestALUSub/C#03 +=== RUN TestLoadExtLen/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 1 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: Mov32Imm dst: r5 imm: 0 - 6: LdXMemB dst: r4 src: r2 off: 0 imm: 0 - 7: JNEImm dst: r4 off: -1 imm: 3 + 2: MovReg dst: r4 src: r3 + 3: Sub32Reg dst: r4 src: r2 + 4: JEqImm dst: r4 off: -1 imm: 16 filter_block_2: - 8: Mov32Reg dst: r5 src: r4 + 5: Mov32Imm dst: r4 imm: 0 + 6: JaImm dst: r0 off: -1 imm: 0 filter_block_3: - 9: Mov32Reg dst: r4 src: r5 - 10: Mov32Reg dst: r4 src: r4 - 11: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 12: MovImm dst: r4 imm: 0 - 13: JaImm dst: r0 off: -1 imm: 0 + 7: Mov32Imm dst: r4 imm: 1 + 8: JaImm dst: r0 off: -1 imm: 0 result: - 14: MovImm dst: r0 imm: 2 - 15: JEqImm dst: r4 off: -1 imm: 0 - 16: MovImm dst: r0 imm: 1 + 9: MovImm dst: r0 imm: 2 + 10: JEqImm dst: r4 off: -1 imm: 0 + 11: MovImm dst: r0 imm: 1 return: - 17: Exit -=== RUN TestPartialZeroInitX/kernel#01 ---- PASS: TestPartialZeroInitX (0.19s) - --- SKIP: TestPartialZeroInitX/C (0.06s) - --- SKIP: TestPartialZeroInitX/eBPF (0.00s) - --- PASS: TestPartialZeroInitX/kernel (0.05s) - --- SKIP: TestPartialZeroInitX/C#01 (0.07s) - --- SKIP: TestPartialZeroInitX/eBPF#01 (0.00s) - --- PASS: TestPartialZeroInitX/kernel#01 (0.00s) -=== CONT TestMemShift -=== RUN TestMemShift/C + 12: Exit +=== RUN TestLoadExtLen/kernel +--- PASS: TestLoadExtLen (0.03s) + --- SKIP: TestLoadExtLen/C (0.03s) + --- SKIP: TestLoadExtLen/eBPF (0.00s) + --- PASS: TestLoadExtLen/kernel (0.00s) +=== CONT TestPartialZeroInitX +=== RUN TestPartialZeroInitX/C +=== RUN TestLoadAbsoluteBigOffset/C#01 === RUN TestLoadConstantA/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -5409,83 +5467,57 @@ return: 11: Exit === RUN TestLoadConstantA/kernel#02 ---- PASS: TestLoadConstantA (0.24s) - --- SKIP: TestLoadConstantA/C (0.11s) +--- PASS: TestLoadConstantA (0.10s) + --- SKIP: TestLoadConstantA/C (0.04s) --- SKIP: TestLoadConstantA/eBPF (0.00s) --- PASS: TestLoadConstantA/kernel (0.00s) - --- SKIP: TestLoadConstantA/C#01 (0.06s) + --- SKIP: TestLoadConstantA/C#01 (0.03s) --- SKIP: TestLoadConstantA/eBPF#01 (0.00s) --- PASS: TestLoadConstantA/kernel#01 (0.00s) - --- SKIP: TestLoadConstantA/C#02 (0.07s) + --- SKIP: TestLoadConstantA/C#02 (0.03s) --- SKIP: TestLoadConstantA/eBPF#02 (0.00s) --- PASS: TestLoadConstantA/kernel#02 (0.00s) -=== CONT TestALUSub -=== RUN TestALUSub/C -=== RUN TestALUDivZero/eBPF#01 +=== CONT TestZeroInitX +=== RUN TestZeroInitX/C +=== RUN TestLoadConstantX/eBPF#01 +=== RUN TestMemShift/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 1 + 3: AddImm dst: r6 imm: 3 4: JGTReg dst: r6 off: -1 src: r3 - 5: LdXMemB dst: r4 src: r2 off: 0 imm: 0 - 6: Mov32Reg dst: r5 src: r4 - 7: Mov32Imm dst: r4 imm: 10 - 8: JEqImm dst: r5 off: -1 imm: 0 - 9: Div32Reg dst: r4 src: r5 - 10: Mov32Imm dst: r4 imm: 1 + 5: Mov32Imm dst: r4 imm: 40 + 6: LdXMemB dst: r5 src: r2 off: 2 imm: 0 + 7: And32Imm dst: r5 imm: 15 + 8: LSh32Imm dst: r5 imm: 2 + 9: JEqReg dst: r4 off: -1 src: r5 + filter_block_3: + 10: Mov32Imm dst: r4 imm: 0 11: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 12: MovImm dst: r4 imm: 0 + filter_block_4: + 12: Mov32Imm dst: r4 imm: 1 13: JaImm dst: r0 off: -1 imm: 0 - result: - 14: MovImm dst: r0 imm: 2 - 15: JEqImm dst: r4 off: -1 imm: 0 - 16: MovImm dst: r0 imm: 1 - return: - 17: Exit -=== RUN TestALUDivZero/kernel#01 ---- PASS: TestALUDivZero (0.20s) - --- SKIP: TestALUDivZero/C (0.08s) - --- SKIP: TestALUDivZero/eBPF (0.00s) - --- PASS: TestALUDivZero/kernel (0.05s) - --- SKIP: TestALUDivZero/C#01 (0.07s) - --- SKIP: TestALUDivZero/eBPF#01 (0.00s) - --- PASS: TestALUDivZero/kernel#01 (0.00s) -=== RUN TestLoadAbsoluteBigOffset/eBPF#02 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 65535 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: MovReg dst: r6 src: r2 - 6: AddImm dst: r6 imm: 65533 - 7: LdXMemH dst: r4 src: r6 off: 0 imm: 0 - 8: SwapBE dst: r4 imm: 16 - 9: Add32Imm dst: r4 imm: 2 - 10: Mov32Reg dst: r4 src: r4 - 11: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 12: MovImm dst: r4 imm: 0 - 13: JaImm dst: r0 off: -1 imm: 0 + 14: MovImm dst: r4 imm: 0 + 15: JaImm dst: r0 off: -1 imm: 0 result: - 14: MovImm dst: r0 imm: 2 - 15: JEqImm dst: r4 off: -1 imm: 0 - 16: MovImm dst: r0 imm: 1 + 16: MovImm dst: r0 imm: 2 + 17: JEqImm dst: r4 off: -1 imm: 0 + 18: MovImm dst: r0 imm: 1 return: - 17: Exit -=== RUN TestLoadAbsoluteBigOffset/kernel#02 -=== RUN TestALUDiv/eBPF + 19: Exit +=== RUN TestMemShift/kernel +=== RUN TestMemShift/C#01 +=== NAME TestLoadConstantX/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 2 - 3: Div32Imm dst: r4 imm: 2 - 4: JEqImm dst: r4 off: -1 imm: 1 + 2: Mov32Imm dst: r5 imm: 28 + 3: Mov32Reg dst: r4 src: r5 + 4: JEqImm dst: r4 off: -1 imm: 28 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 6: JaImm dst: r0 off: -1 imm: 0 @@ -5498,25 +5530,75 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUDiv/kernel -=== RUN TestALUDiv/C#01 -=== RUN TestLoadIndirect/constant_valid/C#04 -=== RUN TestLoadAbsolute/eBPF#02 +=== RUN TestLoadConstantX/kernel#01 +=== RUN TestLoadConstantX/C#02 +=== RUN TestLoadIndirect/constant_valid/C#02 +=== RUN TestALUSub/eBPF#03 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 13 + 3: Mov32Imm dst: r5 imm: 9 + 4: Sub32Reg dst: r4 src: r5 + 5: JEqImm dst: r4 off: -1 imm: 4 + filter_block_4: + 6: Mov32Imm dst: r4 imm: 0 + 7: JaImm dst: r0 off: -1 imm: 0 + filter_block_5: + 8: Mov32Imm dst: r4 imm: 1 + 9: JaImm dst: r0 off: -1 imm: 0 + result: + 10: MovImm dst: r0 imm: 2 + 11: JEqImm dst: r4 off: -1 imm: 0 + 12: MovImm dst: r0 imm: 1 + return: + 13: Exit +=== RUN TestALUSub/kernel#03 +--- PASS: TestALUSub (0.14s) + --- SKIP: TestALUSub/C (0.03s) + --- SKIP: TestALUSub/eBPF (0.00s) + --- PASS: TestALUSub/kernel (0.00s) + --- SKIP: TestALUSub/C#01 (0.04s) + --- SKIP: TestALUSub/eBPF#01 (0.00s) + --- PASS: TestALUSub/kernel#01 (0.00s) + --- SKIP: TestALUSub/C#02 (0.04s) + --- SKIP: TestALUSub/eBPF#02 (0.00s) + --- PASS: TestALUSub/kernel#02 (0.00s) + --- SKIP: TestALUSub/C#03 (0.03s) + --- SKIP: TestALUSub/eBPF#03 (0.00s) + --- PASS: TestALUSub/kernel#03 (0.00s) +=== RUN TestLoadAbsolute/C#02 +=== RUN TestLoadAbsoluteBigOffset/eBPF#01 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r4 imm: 0 + 3: JaImm dst: r0 off: -1 imm: 0 + result: + 4: MovImm dst: r0 imm: 2 + 5: JEqImm dst: r4 off: -1 imm: 0 + 6: MovImm dst: r0 imm: 1 + return: + 7: Exit +=== RUN TestLoadAbsoluteBigOffset/kernel#01 +=== RUN TestPartialZeroInitX/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 4 + 3: AddImm dst: r6 imm: 1 4: JGTReg dst: r6 off: -1 src: r3 - 5: LdXMemH dst: r4 src: r2 off: 2 imm: 0 - 6: SwapBE dst: r4 imm: 16 - 7: JEqImm dst: r4 off: -1 imm: 57005 + 5: Mov32Imm dst: r5 imm: 0 + 6: LdXMemB dst: r4 src: r2 off: 0 imm: 0 + 7: JNEImm dst: r4 off: -1 imm: 3 filter_block_2: - 8: Mov32Imm dst: r4 imm: 0 - 9: JaImm dst: r0 off: -1 imm: 0 + 8: Mov32Reg dst: r5 src: r4 filter_block_3: - 10: Mov32Imm dst: r4 imm: 1 + 9: Mov32Reg dst: r4 src: r5 + 10: Mov32Reg dst: r4 src: r4 11: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: 12: MovImm dst: r4 imm: 0 @@ -5527,34 +5609,24 @@ 16: MovImm dst: r0 imm: 1 return: 17: Exit -=== RUN TestLoadAbsolute/kernel#02 -=== RUN TestLoadAbsolute/C#03 -=== RUN TestLoadExtLen/eBPF +=== RUN TestPartialZeroInitX/kernel +=== RUN TestZeroInitX/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: MovReg dst: r4 src: r3 - 3: Sub32Reg dst: r4 src: r2 - 4: JEqImm dst: r4 off: -1 imm: 16 - filter_block_2: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_3: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r5 imm: 0 + 3: Mov32Reg dst: r4 src: r5 + 4: Mov32Reg dst: r4 src: r4 + 5: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 6: MovImm dst: r0 imm: 2 + 7: JEqImm dst: r4 off: -1 imm: 0 + 8: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestLoadExtLen/kernel ---- PASS: TestLoadExtLen (0.09s) - --- SKIP: TestLoadExtLen/C (0.09s) - --- SKIP: TestLoadExtLen/eBPF (0.00s) - --- PASS: TestLoadExtLen/kernel (0.00s) -=== RUN TestMemShift/eBPF + 9: Exit +=== RUN TestZeroInitX/kernel +=== RUN TestMemShift/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -5562,7 +5634,7 @@ 2: MovReg dst: r6 src: r2 3: AddImm dst: r6 imm: 3 4: JGTReg dst: r6 off: -1 src: r3 - 5: Mov32Imm dst: r4 imm: 40 + 5: Mov32Imm dst: r4 imm: 0 6: LdXMemB dst: r5 src: r2 off: 2 imm: 0 7: And32Imm dst: r5 imm: 15 8: LSh32Imm dst: r5 imm: 2 @@ -5582,15 +5654,21 @@ 18: MovImm dst: r0 imm: 1 return: 19: Exit -=== RUN TestMemShift/kernel -=== RUN TestMemShift/C#01 -=== RUN TestALUSub/eBPF +=== RUN TestMemShift/kernel#01 +--- PASS: TestMemShift (0.07s) + --- SKIP: TestMemShift/C (0.04s) + --- SKIP: TestMemShift/eBPF (0.00s) + --- PASS: TestMemShift/kernel (0.00s) + --- SKIP: TestMemShift/C#01 (0.03s) + --- SKIP: TestMemShift/eBPF#01 (0.00s) + --- PASS: TestMemShift/kernel#01 (0.00s) +=== RUN TestLoadConstantX/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Sub32Imm dst: r4 imm: 1 + 2: Mov32Imm dst: r5 imm: 0 + 3: Mov32Reg dst: r4 src: r5 4: JEqImm dst: r4 off: -1 imm: 0 filter_block_3: 5: Mov32Imm dst: r4 imm: 0 @@ -5604,10 +5682,53 @@ 11: MovImm dst: r0 imm: 1 return: 12: Exit -=== RUN TestALUSub/kernel -=== RUN TestALUSub/C#01 -=== RUN TestLoadAbsoluteBigOffset/C#03 -=== RUN TestLoadAbsolute/eBPF#03 +=== RUN TestLoadConstantX/kernel#02 +--- PASS: TestLoadConstantX (0.10s) + --- SKIP: TestLoadConstantX/C (0.04s) + --- SKIP: TestLoadConstantX/eBPF (0.00s) + --- PASS: TestLoadConstantX/kernel (0.00s) + --- SKIP: TestLoadConstantX/C#01 (0.03s) + --- SKIP: TestLoadConstantX/eBPF#01 (0.00s) + --- PASS: TestLoadConstantX/kernel#01 (0.00s) + --- SKIP: TestLoadConstantX/C#02 (0.03s) + --- SKIP: TestLoadConstantX/eBPF#02 (0.00s) + --- PASS: TestLoadConstantX/kernel#02 (0.00s) +=== RUN TestLoadIndirect/constant_valid/eBPF#02 + ebpf_test.go:17: + 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 + 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 + filter_block_0: + 2: Mov32Imm dst: r5 imm: 3 + 3: MovReg dst: r7 src: r5 + 4: LShImm dst: r7 imm: 32 + 5: ArShImm dst: r7 imm: 32 + 6: AddImm dst: r7 imm: -1 + 7: JGEImm dst: r7 off: -1 imm: 65534 + 8: AddReg dst: r7 src: r2 + 9: MovReg dst: r6 src: r7 + 10: AddImm dst: r6 imm: 2 + 11: JGTReg dst: r6 off: -1 src: r3 + 12: LdXMemH dst: r4 src: r7 off: 0 imm: 0 + 13: SwapBE dst: r4 imm: 16 + 14: JEqImm dst: r4 off: -1 imm: 57005 + filter_block_3: + 15: Mov32Imm dst: r4 imm: 0 + 16: JaImm dst: r0 off: -1 imm: 0 + filter_block_4: + 17: Mov32Imm dst: r4 imm: 1 + 18: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 19: MovImm dst: r4 imm: 0 + 20: JaImm dst: r0 off: -1 imm: 0 + result: + 21: MovImm dst: r0 imm: 2 + 22: JEqImm dst: r4 off: -1 imm: 0 + 23: MovImm dst: r0 imm: 1 + return: + 24: Exit +=== RUN TestLoadIndirect/constant_valid/kernel#02 +=== RUN TestLoadIndirect/constant_valid/C#03 +=== RUN TestLoadAbsolute/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 @@ -5617,7 +5738,7 @@ 4: JGTReg dst: r6 off: -1 src: r3 5: LdXMemH dst: r4 src: r2 off: 2 imm: 0 6: SwapBE dst: r4 imm: 16 - 7: JEqImm dst: r4 off: -1 imm: 57007 + 7: JEqImm dst: r4 off: -1 imm: 57005 filter_block_2: 8: Mov32Imm dst: r4 imm: 0 9: JaImm dst: r0 off: -1 imm: 0 @@ -5633,189 +5754,173 @@ 16: MovImm dst: r0 imm: 1 return: 17: Exit -=== RUN TestLoadAbsolute/kernel#03 -=== RUN TestALUDiv/eBPF#01 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 2 - 3: Mov32Imm dst: r5 imm: 2 - 4: JEqImm dst: r5 off: -1 imm: 0 - 5: Div32Reg dst: r4 src: r5 - 6: JEqImm dst: r4 off: -1 imm: 1 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 0 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 1 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 - result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 - return: - 16: Exit -=== RUN TestALUDiv/kernel#01 -=== RUN TestALUDiv/C#02 -=== RUN TestLoadIndirect/constant_valid/eBPF#04 +=== RUN TestLoadAbsolute/kernel#02 +=== RUN TestLoadAbsolute/C#03 +=== RUN TestLoadIndirect/constant_valid/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r5 imm: 1 + 2: Mov32Imm dst: r5 imm: 3 3: MovReg dst: r7 src: r5 4: LShImm dst: r7 imm: 32 5: ArShImm dst: r7 imm: 32 - 6: AddImm dst: r7 imm: 2 - 7: JGEImm dst: r7 off: -1 imm: 65532 + 6: AddImm dst: r7 imm: -1 + 7: JGEImm dst: r7 off: -1 imm: 65534 8: AddReg dst: r7 src: r2 9: MovReg dst: r6 src: r7 - 10: AddImm dst: r6 imm: 4 + 10: AddImm dst: r6 imm: 2 11: JGTReg dst: r6 off: -1 src: r3 - 12: LdXMemW dst: r4 src: r7 off: 0 imm: 0 - 13: SwapBE dst: r4 imm: 32 - 14: Mov32Imm dst: r6 imm: -559038737 - 15: JEqReg dst: r4 off: -1 src: r6 + 12: LdXMemH dst: r4 src: r7 off: 0 imm: 0 + 13: SwapBE dst: r4 imm: 16 + 14: JEqImm dst: r4 off: -1 imm: 57005 filter_block_3: - 16: Mov32Imm dst: r4 imm: 0 - 17: JaImm dst: r0 off: -1 imm: 0 + 15: Mov32Imm dst: r4 imm: 0 + 16: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 18: Mov32Imm dst: r4 imm: 1 - 19: JaImm dst: r0 off: -1 imm: 0 + 17: Mov32Imm dst: r4 imm: 1 + 18: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 20: MovImm dst: r4 imm: 0 - 21: JaImm dst: r0 off: -1 imm: 0 + 19: MovImm dst: r4 imm: 0 + 20: JaImm dst: r0 off: -1 imm: 0 result: - 22: MovImm dst: r0 imm: 2 - 23: JEqImm dst: r4 off: -1 imm: 0 - 24: MovImm dst: r0 imm: 1 + 21: MovImm dst: r0 imm: 2 + 22: JEqImm dst: r4 off: -1 imm: 0 + 23: MovImm dst: r0 imm: 1 return: - 25: Exit -=== RUN TestLoadIndirect/constant_valid/kernel#04 -=== RUN TestLoadIndirect/constant_valid/C#05 -=== RUN TestALUSub/eBPF#01 + 24: Exit +=== RUN TestLoadIndirect/constant_valid/kernel#03 +=== RUN TestLoadAbsoluteBigOffset/C#02 +=== RUN TestPartialZeroInitX/C#01 +=== RUN TestLoadAbsolute/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 1 - 3: Mov32Imm dst: r5 imm: 1 - 4: Sub32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 0 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 4 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: LdXMemH dst: r4 src: r2 off: 2 imm: 0 + 6: SwapBE dst: r4 imm: 16 + 7: JEqImm dst: r4 off: -1 imm: 57007 + filter_block_2: + 8: Mov32Imm dst: r4 imm: 0 9: JaImm dst: r0 off: -1 imm: 0 + filter_block_3: + 10: Mov32Imm dst: r4 imm: 1 + 11: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 12: MovImm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 - return: - 13: Exit -=== RUN TestALUSub/kernel#01 -=== RUN TestALUSub/C#02 -=== RUN TestLoadAbsoluteBigOffset/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 0 - 3: JaImm dst: r0 off: -1 imm: 0 - result: - 4: MovImm dst: r0 imm: 2 - 5: JEqImm dst: r4 off: -1 imm: 0 - 6: MovImm dst: r0 imm: 1 + 14: MovImm dst: r0 imm: 2 + 15: JEqImm dst: r4 off: -1 imm: 0 + 16: MovImm dst: r0 imm: 1 return: - 7: Exit -=== RUN TestLoadAbsoluteBigOffset/kernel#03 -=== RUN TestLoadAbsolute/C#04 -=== RUN TestALUDiv/eBPF#02 + 17: Exit +=== RUN TestLoadAbsolute/kernel#03 +--- PASS: TestZeroInitX (0.08s) + --- SKIP: TestZeroInitX/C (0.03s) + --- SKIP: TestZeroInitX/eBPF (0.00s) + --- PASS: TestZeroInitX/kernel (0.05s) +=== RUN TestLoadAbsoluteBigOffset/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 19 - 3: Div32Imm dst: r4 imm: 3 - 4: JEqImm dst: r4 off: -1 imm: 6 - filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 65535 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: MovReg dst: r6 src: r2 + 6: AddImm dst: r6 imm: 65533 + 7: LdXMemH dst: r4 src: r6 off: 0 imm: 0 + 8: SwapBE dst: r4 imm: 16 + 9: Add32Imm dst: r4 imm: 2 + 10: Mov32Reg dst: r4 src: r4 + 11: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 12: MovImm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 14: MovImm dst: r0 imm: 2 + 15: JEqImm dst: r4 off: -1 imm: 0 + 16: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestALUDiv/kernel#02 -=== RUN TestALUDiv/C#03 -=== RUN TestMemShift/eBPF#01 + 17: Exit +=== RUN TestLoadAbsoluteBigOffset/kernel#02 +=== RUN TestPartialZeroInitX/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 3 + 3: AddImm dst: r6 imm: 1 4: JGTReg dst: r6 off: -1 src: r3 - 5: Mov32Imm dst: r4 imm: 0 - 6: LdXMemB dst: r5 src: r2 off: 2 imm: 0 - 7: And32Imm dst: r5 imm: 15 - 8: LSh32Imm dst: r5 imm: 2 - 9: JEqReg dst: r4 off: -1 src: r5 + 5: Mov32Imm dst: r5 imm: 0 + 6: LdXMemB dst: r4 src: r2 off: 0 imm: 0 + 7: JNEImm dst: r4 off: -1 imm: 3 + filter_block_2: + 8: Mov32Reg dst: r5 src: r4 filter_block_3: - 10: Mov32Imm dst: r4 imm: 0 + 9: Mov32Reg dst: r4 src: r5 + 10: Mov32Reg dst: r4 src: r4 11: JaImm dst: r0 off: -1 imm: 0 - filter_block_4: - 12: Mov32Imm dst: r4 imm: 1 - 13: JaImm dst: r0 off: -1 imm: 0 filter_nomatch: - 14: MovImm dst: r4 imm: 0 - 15: JaImm dst: r0 off: -1 imm: 0 + 12: MovImm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 result: - 16: MovImm dst: r0 imm: 2 - 17: JEqImm dst: r4 off: -1 imm: 0 - 18: MovImm dst: r0 imm: 1 + 14: MovImm dst: r0 imm: 2 + 15: JEqImm dst: r4 off: -1 imm: 0 + 16: MovImm dst: r0 imm: 1 return: - 19: Exit -=== RUN TestMemShift/kernel#01 ---- PASS: TestMemShift (0.17s) - --- SKIP: TestMemShift/C (0.08s) - --- SKIP: TestMemShift/eBPF (0.00s) - --- PASS: TestMemShift/kernel (0.00s) - --- SKIP: TestMemShift/C#01 (0.10s) - --- SKIP: TestMemShift/eBPF#01 (0.00s) - --- PASS: TestMemShift/kernel#01 (0.00s) -=== RUN TestLoadAbsoluteBigOffset/C#04 -=== RUN TestALUSub/eBPF#02 + 17: Exit +=== RUN TestPartialZeroInitX/kernel#01 +--- PASS: TestPartialZeroInitX (0.11s) + --- SKIP: TestPartialZeroInitX/C (0.03s) + --- SKIP: TestPartialZeroInitX/eBPF (0.00s) + --- PASS: TestPartialZeroInitX/kernel (0.05s) + --- SKIP: TestPartialZeroInitX/C#01 (0.03s) + --- SKIP: TestPartialZeroInitX/eBPF#01 (0.00s) + --- PASS: TestPartialZeroInitX/kernel#01 (0.00s) +=== RUN TestLoadIndirect/constant_valid/C#04 +=== RUN TestLoadAbsolute/C#04 +=== RUN TestLoadIndirect/constant_valid/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 13 - 3: Sub32Imm dst: r4 imm: 9 - 4: JEqImm dst: r4 off: -1 imm: 4 + 2: Mov32Imm dst: r5 imm: 1 + 3: MovReg dst: r7 src: r5 + 4: LShImm dst: r7 imm: 32 + 5: ArShImm dst: r7 imm: 32 + 6: AddImm dst: r7 imm: 2 + 7: JGEImm dst: r7 off: -1 imm: 65532 + 8: AddReg dst: r7 src: r2 + 9: MovReg dst: r6 src: r7 + 10: AddImm dst: r6 imm: 4 + 11: JGTReg dst: r6 off: -1 src: r3 + 12: LdXMemW dst: r4 src: r7 off: 0 imm: 0 + 13: SwapBE dst: r4 imm: 32 + 14: Mov32Imm dst: r6 imm: -559038737 + 15: JEqReg dst: r4 off: -1 src: r6 filter_block_3: - 5: Mov32Imm dst: r4 imm: 0 - 6: JaImm dst: r0 off: -1 imm: 0 + 16: Mov32Imm dst: r4 imm: 0 + 17: JaImm dst: r0 off: -1 imm: 0 filter_block_4: - 7: Mov32Imm dst: r4 imm: 1 - 8: JaImm dst: r0 off: -1 imm: 0 + 18: Mov32Imm dst: r4 imm: 1 + 19: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 20: MovImm dst: r4 imm: 0 + 21: JaImm dst: r0 off: -1 imm: 0 result: - 9: MovImm dst: r0 imm: 2 - 10: JEqImm dst: r4 off: -1 imm: 0 - 11: MovImm dst: r0 imm: 1 + 22: MovImm dst: r0 imm: 2 + 23: JEqImm dst: r4 off: -1 imm: 0 + 24: MovImm dst: r0 imm: 1 return: - 12: Exit -=== RUN TestALUSub/kernel#02 -=== RUN TestALUSub/C#03 + 25: Exit +=== RUN TestLoadIndirect/constant_valid/kernel#04 +=== RUN TestLoadIndirect/constant_valid/C#05 +=== RUN TestLoadAbsoluteBigOffset/C#03 === RUN TestLoadAbsolute/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -5880,70 +5985,20 @@ return: 25: Exit === RUN TestLoadIndirect/constant_valid/kernel#05 -=== RUN TestALUDiv/eBPF#03 - ebpf_test.go:17: - 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 - 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 - filter_block_0: - 2: Mov32Imm dst: r4 imm: 19 - 3: Mov32Imm dst: r5 imm: 3 - 4: JEqImm dst: r5 off: -1 imm: 0 - 5: Div32Reg dst: r4 src: r5 - 6: JEqImm dst: r4 off: -1 imm: 6 - filter_block_4: - 7: Mov32Imm dst: r4 imm: 0 - 8: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 9: Mov32Imm dst: r4 imm: 1 - 10: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 11: MovImm dst: r4 imm: 0 - 12: JaImm dst: r0 off: -1 imm: 0 - result: - 13: MovImm dst: r0 imm: 2 - 14: JEqImm dst: r4 off: -1 imm: 0 - 15: MovImm dst: r0 imm: 1 - return: - 16: Exit -=== RUN TestALUDiv/kernel#03 ---- PASS: TestALUDiv (0.29s) - --- SKIP: TestALUDiv/C (0.09s) - --- SKIP: TestALUDiv/eBPF (0.00s) - --- PASS: TestALUDiv/kernel (0.00s) - --- SKIP: TestALUDiv/C#01 (0.07s) - --- SKIP: TestALUDiv/eBPF#01 (0.00s) - --- PASS: TestALUDiv/kernel#01 (0.00s) - --- SKIP: TestALUDiv/C#02 (0.06s) - --- SKIP: TestALUDiv/eBPF#02 (0.00s) - --- PASS: TestALUDiv/kernel#02 (0.00s) - --- SKIP: TestALUDiv/C#03 (0.06s) - --- SKIP: TestALUDiv/eBPF#03 (0.01s) - --- PASS: TestALUDiv/kernel#03 (0.00s) -=== RUN TestLoadAbsoluteBigOffset/eBPF#04 +=== RUN TestLoadAbsoluteBigOffset/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: MovReg dst: r6 src: r2 - 3: AddImm dst: r6 imm: 65535 - 4: JGTReg dst: r6 off: -1 src: r3 - 5: MovReg dst: r6 src: r2 - 6: AddImm dst: r6 imm: 65531 - 7: LdXMemW dst: r4 src: r6 off: 0 imm: 0 - 8: SwapBE dst: r4 imm: 32 - 9: Add32Imm dst: r4 imm: 2 - 10: Mov32Reg dst: r4 src: r4 - 11: JaImm dst: r0 off: -1 imm: 0 - filter_nomatch: - 12: MovImm dst: r4 imm: 0 - 13: JaImm dst: r0 off: -1 imm: 0 + 2: Mov32Imm dst: r4 imm: 0 + 3: JaImm dst: r0 off: -1 imm: 0 result: - 14: MovImm dst: r0 imm: 2 - 15: JEqImm dst: r4 off: -1 imm: 0 - 16: MovImm dst: r0 imm: 1 + 4: MovImm dst: r0 imm: 2 + 5: JEqImm dst: r4 off: -1 imm: 0 + 6: MovImm dst: r0 imm: 1 return: - 17: Exit -=== RUN TestLoadAbsoluteBigOffset/kernel#04 + 7: Exit +=== RUN TestLoadAbsoluteBigOffset/kernel#03 === RUN TestLoadAbsolute/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -5974,41 +6029,51 @@ === RUN TestLoadAbsolute/kernel#05 === RUN TestLoadIndirect/variable_valid === RUN TestLoadIndirect/variable_valid/C -=== RUN TestALUSub/eBPF#03 +=== RUN TestLoadAbsoluteBigOffset/C#04 +--- PASS: TestLoadAbsolute (0.37s) + --- SKIP: TestLoadAbsolute/C (0.04s) + --- SKIP: TestLoadAbsolute/eBPF (0.00s) + --- PASS: TestLoadAbsolute/kernel (0.00s) + --- SKIP: TestLoadAbsolute/C#01 (0.05s) + --- SKIP: TestLoadAbsolute/eBPF#01 (0.00s) + --- PASS: TestLoadAbsolute/kernel#01 (0.05s) + --- SKIP: TestLoadAbsolute/C#02 (0.03s) + --- SKIP: TestLoadAbsolute/eBPF#02 (0.00s) + --- PASS: TestLoadAbsolute/kernel#02 (0.00s) + --- SKIP: TestLoadAbsolute/C#03 (0.03s) + --- SKIP: TestLoadAbsolute/eBPF#03 (0.00s) + --- PASS: TestLoadAbsolute/kernel#03 (0.05s) + --- SKIP: TestLoadAbsolute/C#04 (0.03s) + --- SKIP: TestLoadAbsolute/eBPF#04 (0.00s) + --- PASS: TestLoadAbsolute/kernel#04 (0.00s) + --- SKIP: TestLoadAbsolute/C#05 (0.03s) + --- SKIP: TestLoadAbsolute/eBPF#05 (0.00s) + --- PASS: TestLoadAbsolute/kernel#05 (0.05s) +=== RUN TestLoadAbsoluteBigOffset/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: LdXMemW dst: r3 src: r1 off: 4 imm: 0 filter_block_0: - 2: Mov32Imm dst: r4 imm: 13 - 3: Mov32Imm dst: r5 imm: 9 - 4: Sub32Reg dst: r4 src: r5 - 5: JEqImm dst: r4 off: -1 imm: 4 - filter_block_4: - 6: Mov32Imm dst: r4 imm: 0 - 7: JaImm dst: r0 off: -1 imm: 0 - filter_block_5: - 8: Mov32Imm dst: r4 imm: 1 - 9: JaImm dst: r0 off: -1 imm: 0 + 2: MovReg dst: r6 src: r2 + 3: AddImm dst: r6 imm: 65535 + 4: JGTReg dst: r6 off: -1 src: r3 + 5: MovReg dst: r6 src: r2 + 6: AddImm dst: r6 imm: 65531 + 7: LdXMemW dst: r4 src: r6 off: 0 imm: 0 + 8: SwapBE dst: r4 imm: 32 + 9: Add32Imm dst: r4 imm: 2 + 10: Mov32Reg dst: r4 src: r4 + 11: JaImm dst: r0 off: -1 imm: 0 + filter_nomatch: + 12: MovImm dst: r4 imm: 0 + 13: JaImm dst: r0 off: -1 imm: 0 result: - 10: MovImm dst: r0 imm: 2 - 11: JEqImm dst: r4 off: -1 imm: 0 - 12: MovImm dst: r0 imm: 1 + 14: MovImm dst: r0 imm: 2 + 15: JEqImm dst: r4 off: -1 imm: 0 + 16: MovImm dst: r0 imm: 1 return: - 13: Exit -=== RUN TestALUSub/kernel#03 ---- PASS: TestALUSub (0.28s) - --- SKIP: TestALUSub/C (0.07s) - --- SKIP: TestALUSub/eBPF (0.00s) - --- PASS: TestALUSub/kernel (0.00s) - --- SKIP: TestALUSub/C#01 (0.07s) - --- SKIP: TestALUSub/eBPF#01 (0.00s) - --- PASS: TestALUSub/kernel#01 (0.00s) - --- SKIP: TestALUSub/C#02 (0.06s) - --- SKIP: TestALUSub/eBPF#02 (0.00s) - --- PASS: TestALUSub/kernel#02 (0.00s) - --- SKIP: TestALUSub/C#03 (0.08s) - --- SKIP: TestALUSub/eBPF#03 (0.00s) - --- PASS: TestALUSub/kernel#03 (0.00s) + 17: Exit +=== RUN TestLoadAbsoluteBigOffset/kernel#04 === RUN TestLoadIndirect/variable_valid/eBPF ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6048,26 +6113,6 @@ 28: Exit === RUN TestLoadIndirect/variable_valid/kernel === RUN TestLoadIndirect/variable_valid/C#01 -=== RUN TestLoadAbsoluteBigOffset/C#05 ---- PASS: TestLoadAbsolute (0.63s) - --- SKIP: TestLoadAbsolute/C (0.12s) - --- SKIP: TestLoadAbsolute/eBPF (0.00s) - --- PASS: TestLoadAbsolute/kernel (0.00s) - --- SKIP: TestLoadAbsolute/C#01 (0.09s) - --- SKIP: TestLoadAbsolute/eBPF#01 (0.00s) - --- PASS: TestLoadAbsolute/kernel#01 (0.05s) - --- SKIP: TestLoadAbsolute/C#02 (0.07s) - --- SKIP: TestLoadAbsolute/eBPF#02 (0.00s) - --- PASS: TestLoadAbsolute/kernel#02 (0.00s) - --- SKIP: TestLoadAbsolute/C#03 (0.06s) - --- SKIP: TestLoadAbsolute/eBPF#03 (0.00s) - --- PASS: TestLoadAbsolute/kernel#03 (0.05s) - --- SKIP: TestLoadAbsolute/C#04 (0.06s) - --- SKIP: TestLoadAbsolute/eBPF#04 (0.00s) - --- PASS: TestLoadAbsolute/kernel#04 (0.00s) - --- SKIP: TestLoadAbsolute/C#05 (0.05s) - --- SKIP: TestLoadAbsolute/eBPF#05 (0.00s) - --- PASS: TestLoadAbsolute/kernel#05 (0.05s) === RUN TestLoadIndirect/variable_valid/eBPF#01 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6106,6 +6151,7 @@ return: 28: Exit === RUN TestLoadIndirect/variable_valid/kernel#01 +=== RUN TestLoadAbsoluteBigOffset/C#05 === RUN TestLoadAbsoluteBigOffset/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6121,7 +6167,6 @@ 7: Exit === RUN TestLoadAbsoluteBigOffset/kernel#05 === RUN TestLoadIndirect/variable_valid/C#02 -=== RUN TestLoadAbsoluteBigOffset/C#06 === RUN TestLoadIndirect/variable_valid/eBPF#02 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6162,6 +6207,7 @@ 29: Exit === RUN TestLoadIndirect/variable_valid/kernel#02 === RUN TestLoadIndirect/variable_valid/C#03 +=== RUN TestLoadAbsoluteBigOffset/C#06 === RUN TestLoadIndirect/variable_valid/eBPF#03 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6228,8 +6274,8 @@ return: 19: Exit === RUN TestLoadAbsoluteBigOffset/kernel#06 -=== RUN TestLoadAbsoluteBigOffset/C#07 === RUN TestLoadIndirect/variable_valid/C#04 +=== RUN TestLoadAbsoluteBigOffset/C#07 === RUN TestLoadIndirect/variable_valid/eBPF#04 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6285,31 +6331,6 @@ return: 7: Exit === RUN TestLoadAbsoluteBigOffset/kernel#07 ---- PASS: TestLoadAbsoluteBigOffset (1.00s) - --- SKIP: TestLoadAbsoluteBigOffset/C (0.07s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#01 (0.09s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#01 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#01 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#02 (0.08s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#02 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#02 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#03 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#03 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#03 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#04 (0.06s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#04 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#04 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#05 (0.04s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#05 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#05 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#06 (0.10s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#06 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#06 (0.05s) - --- SKIP: TestLoadAbsoluteBigOffset/C#07 (0.09s) - --- SKIP: TestLoadAbsoluteBigOffset/eBPF#07 (0.00s) - --- PASS: TestLoadAbsoluteBigOffset/kernel#07 (0.05s) === RUN TestLoadIndirect/variable_valid/eBPF#05 ebpf_test.go:17: 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 @@ -6350,6 +6371,31 @@ return: 30: Exit === RUN TestLoadIndirect/variable_valid/kernel#05 +--- PASS: TestLoadAbsoluteBigOffset (0.66s) + --- SKIP: TestLoadAbsoluteBigOffset/C (0.04s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#01 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#01 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#01 (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#02 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#02 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#02 (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#03 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#03 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#03 (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#04 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#04 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#04 (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#05 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#05 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#05 (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#06 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#06 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#06 (0.05s) + --- SKIP: TestLoadAbsoluteBigOffset/C#07 (0.03s) + --- SKIP: TestLoadAbsoluteBigOffset/eBPF#07 (0.00s) + --- PASS: TestLoadAbsoluteBigOffset/kernel#07 (0.05s) === RUN TestLoadIndirect/constant_outofbounds === RUN TestLoadIndirect/constant_outofbounds/C === RUN TestLoadIndirect/constant_outofbounds/eBPF @@ -6671,79 +6717,79 @@ return: 25: Exit === RUN TestLoadIndirect/variable_outofbounds/kernel#04 ---- PASS: TestLoadIndirect (2.24s) - --- PASS: TestLoadIndirect/constant_valid (0.68s) - --- SKIP: TestLoadIndirect/constant_valid/C (0.08s) +--- PASS: TestLoadIndirect (1.42s) + --- PASS: TestLoadIndirect/constant_valid (0.34s) + --- SKIP: TestLoadIndirect/constant_valid/C (0.03s) --- SKIP: TestLoadIndirect/constant_valid/eBPF (0.00s) --- PASS: TestLoadIndirect/constant_valid/kernel (0.00s) - --- SKIP: TestLoadIndirect/constant_valid/C#01 (0.06s) + --- SKIP: TestLoadIndirect/constant_valid/C#01 (0.04s) --- SKIP: TestLoadIndirect/constant_valid/eBPF#01 (0.00s) - --- PASS: TestLoadIndirect/constant_valid/kernel#01 (0.06s) - --- SKIP: TestLoadIndirect/constant_valid/C#02 (0.09s) + --- PASS: TestLoadIndirect/constant_valid/kernel#01 (0.05s) + --- SKIP: TestLoadIndirect/constant_valid/C#02 (0.03s) --- SKIP: TestLoadIndirect/constant_valid/eBPF#02 (0.00s) --- PASS: TestLoadIndirect/constant_valid/kernel#02 (0.00s) - --- SKIP: TestLoadIndirect/constant_valid/C#03 (0.06s) + --- SKIP: TestLoadIndirect/constant_valid/C#03 (0.03s) --- SKIP: TestLoadIndirect/constant_valid/eBPF#03 (0.00s) - --- PASS: TestLoadIndirect/constant_valid/kernel#03 (0.08s) - --- SKIP: TestLoadIndirect/constant_valid/C#04 (0.09s) + --- PASS: TestLoadIndirect/constant_valid/kernel#03 (0.05s) + --- SKIP: TestLoadIndirect/constant_valid/C#04 (0.03s) --- SKIP: TestLoadIndirect/constant_valid/eBPF#04 (0.00s) --- PASS: TestLoadIndirect/constant_valid/kernel#04 (0.00s) - --- SKIP: TestLoadIndirect/constant_valid/C#05 (0.08s) + --- SKIP: TestLoadIndirect/constant_valid/C#05 (0.03s) --- SKIP: TestLoadIndirect/constant_valid/eBPF#05 (0.00s) --- PASS: TestLoadIndirect/constant_valid/kernel#05 (0.05s) - --- PASS: TestLoadIndirect/variable_valid (0.48s) - --- SKIP: TestLoadIndirect/variable_valid/C (0.03s) + --- PASS: TestLoadIndirect/variable_valid (0.36s) + --- SKIP: TestLoadIndirect/variable_valid/C (0.04s) --- SKIP: TestLoadIndirect/variable_valid/eBPF (0.00s) --- PASS: TestLoadIndirect/variable_valid/kernel (0.00s) --- SKIP: TestLoadIndirect/variable_valid/C#01 (0.03s) --- SKIP: TestLoadIndirect/variable_valid/eBPF#01 (0.00s) --- PASS: TestLoadIndirect/variable_valid/kernel#01 (0.05s) - --- SKIP: TestLoadIndirect/variable_valid/C#02 (0.06s) + --- SKIP: TestLoadIndirect/variable_valid/C#02 (0.03s) --- SKIP: TestLoadIndirect/variable_valid/eBPF#02 (0.00s) --- PASS: TestLoadIndirect/variable_valid/kernel#02 (0.00s) - --- SKIP: TestLoadIndirect/variable_valid/C#03 (0.06s) + --- SKIP: TestLoadIndirect/variable_valid/C#03 (0.03s) --- SKIP: TestLoadIndirect/variable_valid/eBPF#03 (0.00s) - --- PASS: TestLoadIndirect/variable_valid/kernel#03 (0.06s) - --- SKIP: TestLoadIndirect/variable_valid/C#04 (0.07s) + --- PASS: TestLoadIndirect/variable_valid/kernel#03 (0.05s) + --- SKIP: TestLoadIndirect/variable_valid/C#04 (0.03s) --- SKIP: TestLoadIndirect/variable_valid/eBPF#04 (0.00s) --- PASS: TestLoadIndirect/variable_valid/kernel#04 (0.00s) - --- SKIP: TestLoadIndirect/variable_valid/C#05 (0.07s) + --- SKIP: TestLoadIndirect/variable_valid/C#05 (0.03s) --- SKIP: TestLoadIndirect/variable_valid/eBPF#05 (0.00s) --- PASS: TestLoadIndirect/variable_valid/kernel#05 (0.05s) - --- PASS: TestLoadIndirect/constant_outofbounds (0.55s) - --- SKIP: TestLoadIndirect/constant_outofbounds/C (0.10s) + --- PASS: TestLoadIndirect/constant_outofbounds (0.35s) + --- SKIP: TestLoadIndirect/constant_outofbounds/C (0.03s) --- SKIP: TestLoadIndirect/constant_outofbounds/eBPF (0.00s) --- PASS: TestLoadIndirect/constant_outofbounds/kernel (0.00s) - --- SKIP: TestLoadIndirect/constant_outofbounds/C#01 (0.06s) + --- SKIP: TestLoadIndirect/constant_outofbounds/C#01 (0.03s) --- SKIP: TestLoadIndirect/constant_outofbounds/eBPF#01 (0.00s) --- PASS: TestLoadIndirect/constant_outofbounds/kernel#01 (0.05s) - --- SKIP: TestLoadIndirect/constant_outofbounds/C#02 (0.06s) + --- SKIP: TestLoadIndirect/constant_outofbounds/C#02 (0.03s) --- SKIP: TestLoadIndirect/constant_outofbounds/eBPF#02 (0.00s) --- PASS: TestLoadIndirect/constant_outofbounds/kernel#02 (0.05s) - --- SKIP: TestLoadIndirect/constant_outofbounds/C#03 (0.05s) + --- SKIP: TestLoadIndirect/constant_outofbounds/C#03 (0.03s) --- SKIP: TestLoadIndirect/constant_outofbounds/eBPF#03 (0.00s) --- PASS: TestLoadIndirect/constant_outofbounds/kernel#03 (0.05s) - --- SKIP: TestLoadIndirect/constant_outofbounds/C#04 (0.06s) + --- SKIP: TestLoadIndirect/constant_outofbounds/C#04 (0.03s) --- SKIP: TestLoadIndirect/constant_outofbounds/eBPF#04 (0.00s) --- PASS: TestLoadIndirect/constant_outofbounds/kernel#04 (0.05s) - --- PASS: TestLoadIndirect/variable_outofbounds (0.53s) - --- SKIP: TestLoadIndirect/variable_outofbounds/C (0.06s) + --- PASS: TestLoadIndirect/variable_outofbounds (0.37s) + --- SKIP: TestLoadIndirect/variable_outofbounds/C (0.03s) --- SKIP: TestLoadIndirect/variable_outofbounds/eBPF (0.00s) --- PASS: TestLoadIndirect/variable_outofbounds/kernel (0.00s) - --- SKIP: TestLoadIndirect/variable_outofbounds/C#01 (0.06s) + --- SKIP: TestLoadIndirect/variable_outofbounds/C#01 (0.03s) --- SKIP: TestLoadIndirect/variable_outofbounds/eBPF#01 (0.00s) --- PASS: TestLoadIndirect/variable_outofbounds/kernel#01 (0.05s) - --- SKIP: TestLoadIndirect/variable_outofbounds/C#02 (0.07s) + --- SKIP: TestLoadIndirect/variable_outofbounds/C#02 (0.03s) --- SKIP: TestLoadIndirect/variable_outofbounds/eBPF#02 (0.00s) --- PASS: TestLoadIndirect/variable_outofbounds/kernel#02 (0.05s) - --- SKIP: TestLoadIndirect/variable_outofbounds/C#03 (0.06s) + --- SKIP: TestLoadIndirect/variable_outofbounds/C#03 (0.03s) --- SKIP: TestLoadIndirect/variable_outofbounds/eBPF#03 (0.00s) --- PASS: TestLoadIndirect/variable_outofbounds/kernel#03 (0.05s) - --- SKIP: TestLoadIndirect/variable_outofbounds/C#04 (0.07s) + --- SKIP: TestLoadIndirect/variable_outofbounds/C#04 (0.03s) --- SKIP: TestLoadIndirect/variable_outofbounds/eBPF#04 (0.00s) --- PASS: TestLoadIndirect/variable_outofbounds/kernel#04 (0.05s) PASS -ok github.com/cloudflare/cbpfc 4.956s +ok github.com/cloudflare/cbpfc 3.116s make[1]: Leaving directory '/build/reproducible-path/golang-github-cloudflare-cbpfc-0.0~git20231012.992ed75' create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang @@ -6771,12 +6817,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/24142/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/16861 and its subdirectories -I: Current time: Fri Nov 22 07:42:28 -12 2024 -I: pbuilder-time-stamp: 1732304548 +I: removing directory /srv/workspace/pbuilder/24142 and its subdirectories +I: Current time: Fri Dec 26 16:06:13 +14 2025 +I: pbuilder-time-stamp: 1766714773