如何找出谁在Linux上调用futex系统调用?

时间:2017-07-14 05:24:29

标签: linux debugging system-calls

我启动了几个pthread并且每个线程都继续运行如下所示的函数:

void test_spin() {
    pthread_spin_lock(&spinlock);
    pthread_spin_unlock(&spinlock);
}

一个简单的'strace -c -f'告诉我有3个futex系统调用。所以我的问题是这些系统调用来自哪里?我如何追踪谁正在调用futex系统调用?

0 个答案:

没有答案
相关问题