Platform dependent usage and functionality.
strace [-a] [-l] [-f] [-w outfile] [pc sp] stack_addr [level]
Displays all complete and unique stack traces (containing level or more stack frames) from the stack starting at stack_addr. If a level isn't specified, then each stack trace must have at least three frames to be considered valid. Alternately, use a specific PC and SP to generate a stack trace from the stack starting at stack_addr. Or, when the -l command line option is specified, displays a list of all saved return addresses contained in the stack starting at stack_addr, along with their location in the stack and possibly the name of the function called. Or, if the -a option is specified, display ALL traces of level or more frames, including invalid traces and duplicate (sub) traces.
strace [-f] [-w outfile] stack_addr [level]
Displays all complete and unique stack traces (containing level or more stack frames) from the stack starting at stack_addr. If a level isn't Specified, then each stack trace must have at least three frames to be considered valid.
Example 4-16. strace (s390)
>> task ADDR UID PID PPID STATE FLAGS NAME =============================================================================== 184000 0 0 0 0 0 swapper =============================================================================== 1 active task struct found >> whatis lowcore_ptr ADDR OFFSET TYPE NAME ============================================================ 25c484 0 GLOBAL_DATA lowcore_ptr >> dump 25c484 10 0x25c484: 00000000 00000000 00000000 00000000 : ................ 0x25c494: 00000000 00000000 00000000 00000000 : ................ 0x25c4a4: 00000000 00000000 : ........ >> dump 0x180 16 0x180: 00000000 000100e5 000100e5 00000001 : ................ 0x190: 0042ce60 00010000 00000066 00000003 : .B.`.......f.... 0x1a0: 00000394 000000e5 ffc4ea0a 0018cc80 : ................ 0x1b0: 00000002 800b7f70 800b80ee 00185cd8 : .......p......\. >> strace 00185cd8 ================================================================ TRACE FOR STACK PTR: 0x185cd8 0 disable_cpu_sync_isc+390 [0xb80ee] 1 s390_device_recognition_irq+240 [0xb8f80] 2 s390_device_recognition_all+42 [0xb8fc2] 3 s390_init_IRQ+192 [0xb5fc0] 4 init_IRQ+28 [0x1d50ac] 5 start_kernel+322 [0x1d47d6] 6 _stext+98 [0x10862] 7 <back chain invalid>+<ERROR> [0x65bec0] ================================================================