linux/tools/perf/scripts/python/bin/futex-contention-record

#!/bin/bash
perf record -e syscalls:sys_enter_futex -e syscalls:sys_exit_futex $@