The following appears immediately upon execution: phil@phil:~/tmp/Bridge$ valgrind --leak-check=yes ./Bridge ==23243== Memcheck, a memory error detector ==23243== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==23243== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info ==23243== Command: ./Bridge ==23243== --23243-- WARNING: unhandled amd64-linux syscall: 324 --23243-- You may be able to write your own handler. --23243-- Read the file README_MISSING_SYSCALL_OR_IOCTL. --23243-- Nevertheless we consider this a bug. Please report --23243-- it at http://valgrind.org/support/bug_reports.html.
This appears to be membarrier and should be fairly simple to support.
commit 959a54cb3a631bb61420f1784a0c8585af24349e Author: Bart Van Assche <bart.vanassche@wdc.com> Date: Fri Jun 15 08:24:53 2018 -0700 Add support for the Linux membarrier() system call Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>