On Fri, Feb 24, 2006 at 04:37:13PM -0800, Russ Blaine wrote: > Here is a paper written by Willian Chen of SunLabs. He proposes a change > to the CPC (CPU Performance Counters) subsystem whereby Solaris will > buffer overflow events in the kernel. > > In the interests of soliciting feedback from community members and being > more public about the types of changes we're considering for Solaris, > I'm posting this here for all to see and comment on before we submit it > to PSARC. > > cpc_set_add_request(cpc, set, name, period, > (CPC_COUNTER_USER | CPC_OVF_NOTIFY_EMT | CPC_OVF_BUFFERED), > 0, NULL); > > And in the EMT handler, cpc_set_sample_pcbuf is called to copy back the > buffered PC values into a user specified buffered area. After calling > cpc_set_sample_pcbuf, the kernel buffer must be cleared.
What happens if the buffer never fills? Is there any way to get the buffered entries? Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org