【问题标题】:How to find out what these syscall_983045, syscall_322 syscalls in strace output?如何在 strace 输出中找出这些 syscall_983045、syscall_322 系统调用是什么?
【发布时间】:2012-01-06 19:09:04
【问题描述】:

我在我的 strace 日志中经常看到这两个系统调用。

找出这些系统调用含义的最佳方法是什么?

我在 linux 内核源代码树中尝试了 include/linux/syscalls.h。但在那里找不到任何东西。

这个 android ics 系统。 Linux 3.0 代码。

[pid   144] syscall_322(0xa, 0x1ba3b, 0x24000, 0, 0x3, 0x2, 0xa, 0x142, 0x1b6d8, 0xa, 0x181a0, 0x181a0, 0, 0xbecfda98, 0x400dbbe5, 0x400cf4d4, 0x60000010, 0xa, 0xb691, 0, 0x7379732f, 0x2f6d6574, 0x2f62696c, 0x6462696c, 0x732e6d76, 0x6f73006f, 0x746e6569, 0x6f732e, 0x6f, 0x6f732e, 0x442000, 0x30303200 <unfinished ...>


[pid   169] syscall_983045(0xb001b878, 0xb001d0c4, 0xffffffc8, 0, 0, 0xb00094f0, 0xbefcac30, 0xf0005, 0xb001b878, 0, 0, 0, 0, 0xbefcabe0, 0xb00047c3, 0xb0001200, 0x10, 0xb001b878, 0xb691, 0, 0x6363612f, 0x69752f74, 0x30312f64, 0x742f3030, 0x736b7361, 0x3a746900, 0x746e6569, 0x6f732e, 0x6f, 0x6f732e, 0x442000, 0x30303200) = 0
[pid   170] close(9)                    = 0

【问题讨论】:

    标签: android linux system-calls strace


    【解决方案1】:

    找到了,以防其他人需要知道:

    $ grep 983045 ./development/ndk/platforms/android-3/include/sys/linux-syscalls.h
    #define __NR_ARM_set_tls                  (__NR_SYSCALL_BASE + 983045)
    $ grep 322 ./development/ndk/platforms/android-3/include/sys/linux-syscalls.h
    #define __NR_openat                       (__NR_SYSCALL_BASE + 322)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多