2

I am using LTTng 2.0 to track the events that occur when I click my USB mouse. The trace that I get is something like this (unwanted lines have been removed):

irq_handler_entry   name=i8042, irq-12
irq_handler_exit    Irq-12, ret=1 (handled)
exit_syscall        ret=1104
sys_unknown         Id=18, args={3, 140405224710240, 1024, 59772114944, 1024, 140405251328896}
exit_syscall        Ret=1024
sys_unknown         Id=18, args={3, 140405255394560, 1024, 3256243200, 2048, 1}
exit_syscall        Ret=1024
sys_unknown         Id=18, args={3, 140405255394560, 1024, 3256243200, 2048, 1}
exit_syscall        Ret=1024
sys_unknown         Id=18, args={3, 140405255303968, 1024, 3256252416, 1024, 1}
exit_syscall        Ret=1024
sys_writev          Vec=140737365122800, vlen=2, fd=4
exit_syscall        Ret=24
sys_read            Buf=140405224710160, count=135168, fd=4

This is the portion of the trace that starts when I get an IRQ 12 (mouse interrupt), I am trying to follow the events that occur after that but I can't seem to resolve the "sys_unknown" part of it. I would appreciate any sort of help.

Thanks!

osgx
  • 90,338
  • 53
  • 357
  • 513
brokenfoot
  • 11,083
  • 10
  • 59
  • 80
  • It is your bug? https://bugs.lttng.org/issues/20 – Oleksandr Kravchuk Dec 09 '12 at 18:42
  • Yes, I checked that. There are still some system calls that have not been implemented I guess. But the log gives the ID also: `sys_unknown Id=18, args={3, 140405255394560, 1024, 3256243200, 2048, 1}` Number 18 is the stat system call. But I am still not able to make any inference out of it. Thanks! – brokenfoot Dec 10 '12 at 20:56

1 Answers1

3

The "id" field indicates the system call number. System calls for which probes are not yet implemented within LTTng 2.x appear as "sys_unknown".

The mapping between system call ID and its actual name can be done manually by looking at your architecture-specific unistd.h file, usually installed system-wide. For instance, on x86-64, I can find this information within: /usr/include/asm/unistd_64.h