Here is a
cpustat command that Amjad K. shared for tracking L1/L2 cache hit/miss on Solaris x86 Opteron. A special thanks to Amjad for this tip. Here is the command:
%cpustat -c IC_itlb_L1_miss_L2_miss 1 5 %cpustat -c IC_itlb_L1_miss_L2_hit,IC_itlb_L1_miss_L2_miss
If you are interested to track other events for Opteron, see the following listing. A special thanks to Chien Y. for this pointer.