HP Caliper User's Guide
• In programs that dynamically load and then unload shared libraries, the cstack
measurement might not attribute measurement results to the appropriate shared
library.
• The kernel does not allow HP Caliper to stop a thread in uninterruptible sleep
state. Hence, if a process has one or more threads in uninterrupible sleep state, the
callstack profile may be inaccurate.
Pstack like functionality
With HP Caliper 5.2, the cstack measurement can be used to generate a pstack-like
report. In this mode, only one callstack sample is collected for all threads of the target
process-id. While reporting, only the callpaths are reported for all the threads; other
sections like Function Summary, Function Details, and CallGraph are not reported.
Specifying 0 with the-e or --duration option will generate this pstack-like report.
For example, the following HP Caliper invocation will collect and report callstack
samples for all threads of the target process '12345':
$ caliper cstack -e 0 12345
A sample report follows:
====================================================================
HP Caliper A.5.1.19 Report Summary for Call Stack Profile
====================================================================
Hot Call Paths (Thread 859899@signal_monitor_thread_main)
-------------------------------------------------------------
--% Total Hits In Only--
Run + Run Block
Index Block Hits Hits Name
Hits Only Only
-------------------------------------------------------------
0 100.0 0.0 100.0 libc.so.1::__sigwait_sys
libc.so.1::sigwait
caliper::signal_monitor_thread_main
libpthread.so.1::__pthread_bound_body
-------------------------------------------------------------
Hot Call Paths (Thread 859900@timers_thread_main)
-------------------------------------------------------------
--% Total Hits In Only--
Run + Run Block
Index Block Hits Hits Name
Hits Only Only
-------------------------------------------------------------
0 100.0 0.0 100.0 libc.so.1::_nanosleep_sys
libc.so.1::nanosleep
caliper::timers_sleep
caliper::timers_thread_main
libpthread.so.1::__pthread_bound_body
-------------------------------------------------------------
Hot Call Paths (Thread 859906@pmm_slds_write_main)
-------------------------------------------------------------
--% Total Hits In Only--
Run + Run Block
Index Block Hits Hits Name
Hits Only Only
194 Producing a Sampled Call Stack Profile Analysis