Chapter 19. Debugging and problem diagnosis 369
Using the previous date example:
# strace date 2>&1|grep open
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or direct
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/etc/localtime", O_RDONLY) = 3
#CP TRACE SVC 5
# date
date
-> 40013AA0" SVC 0A05 -> 00016060' CC 0
-> 40013AA0" SVC 0A05 -> 00016060' CC 0
-> 40013AA0" SVC 0A05 -> 00016060' CC 0
-> 400C0588" SVC 0A05 -> 00016060' CC 0
Using the trace feature of VM, you can trace events beyond system calls (such
as instruction execution, storage alteration, register alteration, and I/O activity). In
addition, a combination of up to 255 of these ...