aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2022-08-18 10:58:58 +0100
committerGitHub <noreply@github.com>2022-08-18 10:58:58 +0100
commita511dd988f5e05c5eebfadb823ef2ff6fe2d7379 (patch)
tree4403a1edb85b7dd5347beb4e1b051cedd6845382 /.github
parentff0ef3fb1ed7b206d0586071a88778110b245582 (diff)
downloadlibvfio-user-a511dd988f5e05c5eebfadb823ef2ff6fe2d7379.zip
libvfio-user-a511dd988f5e05c5eebfadb823ef2ff6fe2d7379.tar.gz
libvfio-user-a511dd988f5e05c5eebfadb823ef2ff6fe2d7379.tar.bz2
avoid vfu_log() in SGL hot path (#705)
Even though in non-debug, we don't actually log anything here, even assembling the arguments to vfu_log() has a performance impact. Hide them behind a DEBUG_SGL define - even in a DEBUG build, they are particularly noisy and low-value. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to '.github')
-rwxr-xr-x.github/workflows/pull_request.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/pull_request.sh b/.github/workflows/pull_request.sh
index b972bda..0462c7c 100755
--- a/.github/workflows/pull_request.sh
+++ b/.github/workflows/pull_request.sh
@@ -32,7 +32,7 @@ ninja -C $BUILD/clang-release -v
meson test -C $BUILD/clang-release --no-suite style --print-errorlogs
# debug build with gcc
-CC=gcc meson setup build/gcc-debug -Dtran-pipe=true
+CC=gcc meson setup build/gcc-debug -Dtran-pipe=true -Ddebug-sgl=true
ninja -C $BUILD/gcc-debug -v
meson test -C $BUILD/gcc-debug --no-suite style --print-errorlogs