diff --git a/.bazelrc b/.bazelrc index 148adf66627..024f9da7096 100644 --- a/.bazelrc +++ b/.bazelrc @@ -93,6 +93,7 @@ build:aarch64_sysroot --config=sysroot-base # Increase test timeouts for qemu (don't increase the slowest ones because those are already very long). test:aarch64_sysroot --test_timeout=180,600,1800,3600 test:aarch64_sysroot --test_env=QEMU_STRACE +test:aarch64_sysroot --test_tag_filters=-no_libcpp,-requires_root,-requires_bpf,-disabled,-requires_full_qemu_emulation # Build for Clang using Libc++. diff --git a/src/common/system/BUILD.bazel b/src/common/system/BUILD.bazel index 3cbc2bd95c9..96d44e9cd27 100644 --- a/src/common/system/BUILD.bazel +++ b/src/common/system/BUILD.bazel @@ -85,7 +85,11 @@ pl_cc_test( flaky = 1, # TODO(oazizi/yzhao): Make this test safe to run with other tests. Right now it relies on global # network state making it flaky. - tags = ["exclusive"], + tags = [ + "exclusive", + # The NETLINK_SOCK_DIAG protocol we use is not supported by userspace QEMU. + "requires_full_qemu_emulation", + ], deps = [ ":cc_library", ], diff --git a/src/stirling/utils/BUILD.bazel b/src/stirling/utils/BUILD.bazel index 409457b33f4..3b6e5f0a135 100644 --- a/src/stirling/utils/BUILD.bazel +++ b/src/stirling/utils/BUILD.bazel @@ -78,6 +78,11 @@ pl_cc_test( ":cc_library", "//src/common/system:cc_library", ], + tags = [ + # Getting kernel version from VDSO fails because the system VDSO will be used with userspace qemu, + # so we need full qemu emulation to test that for ARM. + "requires_full_qemu_emulation", + ], ) pl_cc_test(