【问题标题】:output format for strace in cygwincygwin中strace的输出格式
【发布时间】:2019-05-03 16:31:25
【问题描述】:

有人知道 cygwin 中strace 的输出格式吗?在我看来,通过对选项的实验,前两列在某种程度上是自进程开始时间以来的微秒,但我找不到关于它们是什么或应该如何使用它们的任何解释。我认为它们是第一个数字是完成系统调用的 usec,第二个是进程启动后的 usec。有人知道吗?

excerpt from strace -f ls
   35   33002 [main] ls 2364 void: 0x0 = signal (3, 0x1)
   38   33040 [main] ls 2364 fhandler_base::close_with_arch: line 1180:  /dev/pty1<0x180335700> usecount + -1 = 1
   38   33078 [main] ls 2364 fhandler_base::close_with_arch: not closing archetype
   41   33119 [main] ls 2364 init_cygheap::close_ctty: closing cygheap->ctty 0x180335700
   39   33158 [main] ls 2364 fhandler_base::close_with_arch: closing passed in archetype 0x0, usecount 0
   38   33196 [main] ls 2364 fhandler_pty_slave::cleanup: /dev/pty1 closed, usecount 0
   39   33235 [main] ls 2364 fhandler_pty_slave::close: closing last open /dev/pty1 handle
  121   33356 [main] ls 2364 fhandler_console::free_console: freed console, res 1

【问题讨论】:

    标签: cygwin strace


    【解决方案1】:

    first = 两个 strace 输出之间的时间
    秒 = 从程序开始的累积时间

       35   33002 [main] ls 2364 void: 0x0 = signal (3, 0x1)
         38+33002=33040
       38   33040 [main] ls 2364 fhandler_base::close_with_arch: line 1180:  
         38+33040=33078
       38   33078 [main] ls 2364 fhandler_base::close_with_arch: not closing archetype
         41+33079=33119
       41   33119 [main] ls 2364 init_cygheap::close_ctty: closing cygheap->ctty 0x180335700
    

    【讨论】:

    • 感谢您的确认。
    猜你喜欢
    • 2011-08-16
    • 2023-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多