Hardware Counters Experiment/2
Use the environment variables (see man speedshop) :
% setenv _SPEEDSHOP_HWC_COUNTER_NUMBER 6
% setenv _SPEEDSHOP_HWC_COUNTER_OVERFLOW 100
% ssrun -prof_hwc ./program.exe
% prof -lines program.exe.prof_hwc.m1336
-------------------------------------------------------------------------
SpeedShop profile listing generated Tue Feb 10 17:54:56 1998
prof -lines program.exe.prof_hwc.m1336
program.exe (n32): Target program
prof_hwc: Experiment name
R10000 / R10010: CPU / FPU
195: Clock frequency (MHz.)
From file program.exe.prof_hwc.m1336:
Caliper point 0 at target begin, PID 1336
/usr/users/Examples/speedshop/./program.exe
Caliper point 1 at exit(0)
-------------------------------------------------------------------------
Summary of R10K perf. counter overflow PC sampling data (prof_hwc)--
Decoded branches (6): Counter name (number)
100: Counter overflow value