0
A
回答
0
我想你指的strace
並要篩選它的輸出。
strace
的-e
選項可讓您決定應打印哪些呼叫。以下是手冊摘錄:
-e trace=file
Trace all system calls which take a file name as an argument. You can think of this as an abbreviation for
-e trace=open,stat,chmod,unlink,... which is useful to seeing what files the process is referencing. Furthermore, using
the abbreviation will ensure that you don't accidentally forget to include a call like lstat in the list. Betchya woulda
forgot that one.
-e trace=process
Trace all system calls which involve process management. This is useful for watching the fork, wait, and exec steps of a
process.
-e trace=network
Trace all the network related system calls.
-e trace=signal
Trace all signal related system calls.
-e trace=ipc
Trace all IPC related system calls.
-e trace=desc
Trace all file descriptor related system calls.
您也可以選擇單個系統調用。
相關問題
- 1. linux內核中的系統調用表在哪裏?
- 2. 在哪裏可以找到Linux系統調用的源代碼?
- 3. umount系統調用在哪裏?
- 4. clone()系統調用在linux內核中定義的位置在哪裏?
- 5. 哪個進程在Linux內核中調用系統調用?
- 6. Cocoa的所有鍵碼都在哪裏?
- 7. 從哪裏調用malloc從哪裏來都沒關係? - c
- 8. pause()系統調用的系統調用處理函數在哪裏?
- 9. Linux系統調用
- 10. Linux系統的udev使用「keyboard-keys-from-name.h」在哪裏?
- 11. MySQL選擇所有關係都在哪裏x
- 12. 檢查Linux內核中斷在暫停後恢復系統
- 13. 所有的系統調用都是非實時安全的嗎?
- 14. 所有系統調用都需要Windows上的SSDT?
- 15. 我在哪裏可以找到我的Linux系統的libxul.so庫?
- 16. linux系統中使用的for_each_zone在新系統調用中調用
- 17. 在Linux中創建系統調用
- 18. Linux權限604,系統中的所有用戶是否都讀過該文件?
- 19. 在Linux中使用什麼系統調用來複制文件
- 20. 爲Linux系統定義的OPEN_MAX在哪裏?
- 21. linux在哪裏存儲我的系統日誌?
- 22. linux系統調用getpeername C++
- 23. linux系統調用執行
- 24. 開放系統調用 - Linux
- 25. Linux系統調用誰
- 26. nasm系統調用Linux
- 27. Linux阻止系統調用
- 28. Linux系統調用getifaddr C++
- 29. 宏+ Linux系統調用(NASM)
- 30. Linux內核中的系統調用