linux:strace

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

最新のリビジョン両方とも次のリビジョン
linux:strace [2019/09/10 14:35] – 作成 ともやんlinux:strace [2020/04/06 07:40] ともやん
行 1: 行 1:
 +<html>
 +  <style>
 +    #result pre {
 +      overflow: scroll;
 +      overflow-x: hidden;
 +      font-size: 10px;
 +    }
 +    #result_long pre {
 +      height: 400px;
 +      overflow: scroll;
 +      overflow-x: hidden;
 +      font-size: 10px;
 +    }
 +    #source_code pre {
 +      height: 400px;
 +      overflow: scroll;
 +      overflow-x: hidden;
 +      font-size: 10px;
 +    }
 +  </style>
 +</html>
 ====== strace コマンド ====== ====== strace コマンド ======
 strace コマンドはプロセスのシステムコールをトレースすることが出来る。\\ strace コマンドはプロセスのシステムコールをトレースすることが出来る。\\
行 6: 行 27:
 $ sudo dnf install strace $ sudo dnf install strace
 </code> </code>
 +
 +===== 動作確認 =====
 +<code>
 +$ strace -V
 +</code>
 +<WRAP prewrap 100% #result>
 +<code>
 +strace -- version 5.5
 +Copyright (c) 1991-2020 The strace developers <https://strace.io>.
 +This is free software; see the source for copying conditions.  There is NO
 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 +
 +Optional features enabled: stack-trace=libdw stack-demangle m32-mpers mx32-mpers
 +</code>
 +</WRAP>
  
 ===== 実行 ===== ===== 実行 =====
行 11: 行 47:
 \\ \\
 実行例:\\ 実行例:\\
-<WRAP prewrap 100%> 
 <code> <code>
 $ strace sensors $ strace sensors
 +</code>
 +<WRAP prewrap 100% #result_long>
 +<code>
 execve("/usr/bin/sensors", ["sensors"], 0x7ffdde1aeea0 /* 76 vars */) = 0 execve("/usr/bin/sensors", ["sensors"], 0x7ffdde1aeea0 /* 76 vars */) = 0
 brk(NULL)                               = 0x564bd7254000 brk(NULL)                               = 0x564bd7254000
  • linux/strace.txt
  • 最終更新: 2020/09/11 20:17
  • by ともやん