plan 9 kernel history: overview | file list | diff list

1990/1004/port/devkprof.c (diff list | history)

1990/0928/sys/src/9/port/devkprof.c:30,381990/1004/sys/src/9/port/devkprof.c:30,41 (short | long | prev | next)
1990/0330    
	"kpstop",	Kprofstopqid,		0,		0600, 
1990/03292    
}; 
 
1990/1004    
void kproftimer(ulong); 
 
1990/03292    
void 
1990/0330    
kprofreset(void) 
{ 
1990/1004    
	kprofp = kproftimer; 
1990/0330    
} 
 
void 
1990/0928/sys/src/9/port/devkprof.c:157,1631990/1004/sys/src/9/port/devkprof.c:160,171
1990/03292    
void 
kproftimer(ulong pc) 
{ 
1990/0928    
	extern ulong splpc; 
1990/1004    
	/* 
	 *  if the pc is coming out of slplo pr splx, then use 
	 *  the pc saved when we went splhi. 
	 */ 
	if(pc>=(ulong)spllo && pc<=(ulong)spldone) 
		pc = m->splpc; 
1990/0928    
 
1990/03292    
	timerbuf[0]++; 
	if(KTZERO<=pc && pc<KTZERO+MAXPC){ 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)