Skip to content

Commit 5fec0cf

Browse files
committed
fix: correct check for load and store exclusives
1 parent 3c09886 commit 5fec0cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/01-postgres_check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function check_lse_enabled {
4343
if [ $ARCH = "aarch64" ]; then
4444
echo -e "\nArchitecture is $ARCH. Checking for LSE:"
4545

46-
LSE_COUNT=$(nm /usr/lib/postgresql/bin/postgres | grep __aarch64_have_lse_atomics | wc -l)
46+
LSE_COUNT=$(objdump -d /usr/lib/postgresql/bin/postgres | grep -i 'ldxr\|ldaxr\|stxr\|stlxr' | wc -l)
4747
MOUTLINE_ATOMICS_COUNT=$(nm /usr/lib/postgresql/bin/postgres | grep __aarch64_have_lse_atomics | wc -l)
4848

4949
# Checking for load and store exclusives

0 commit comments

Comments
 (0)