--Drop in the new files
cp trace.s 9k/k8/
cp devtrace.c 9k/port/


--Some functions must not be traced, so we set that here:
around cycles() in k8/devarch.c:
#pragma profile 0
(cycles)
#pragma profile 1

same for panic in port/devcons.c

Stick a #pragma profile 0 at the top of port/qlock.c and port/taslock.c


--Change the config files
Copy the k8cpu config file to k8pf, put "trace	trace" under kprof in the "dev +dev" section.

Modify k8/mkfile:
Add k8pf to the CONFLIST
and change
	$LD -o $target -T0xFFFFFFFF80110000 -l $OBJ $CONF.$O $LIB
to
	$LD -p -o $target -T0xFFFFFFFF80110000 -l $OBJ $CONF.$O $LIB


I hacked our 6l to take a -t argument, which expects the functions _tracein and _traceout instead of _profin and _profout and will insert calls to them instead of _profin and _profout. The idea is that you could also build a regular profiling kernel from the same tree.