40339b39f9
- Change ktrace interface to pass in the current process, rather than p->p_tracep, since the various ktr* function need curproc anyway. - Add curproc as a parameter to mi_switch() since all callers had it handy anyway. - Add a second proc argument for inferior() since callers all had curproc handy. Also, miscellaneous cleanups in ktrace: - ktrace now always uses file-based, rather than vnode-based I/O (simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD. Do non-blocking I/O, and yield a finite number of times when receiving EWOULDBLOCK before giving up. - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common. - simplify interface to ktrwrite() |
||
---|---|---|
.. | ||
aout_machdep.c | ||
autoconf.c | ||
bus.c | ||
conf.c | ||
cons_machdep.c | ||
copyinout.S | ||
copyinoutstr.c | ||
cpu.c | ||
cpuvar.h | ||
db_disasm.c | ||
db_interface.c | ||
db_machdep.c | ||
db_trace.c | ||
disksubr_acorn.c | ||
disksubr_mbr.c | ||
disksubr.c | ||
except.c | ||
genassym.cf | ||
intrnames.S | ||
irq.c | ||
Locore.c | ||
locore.S | ||
machdep.c | ||
md_root.c | ||
mem.c | ||
pmap.c | ||
rscons.c | ||
softintr.c | ||
start.c | ||
stubs.c | ||
vm_machdep.c | ||
zeropage.S |