Trace

Still requires a few fixes, but the main part is done.
Overflow can also happen for kt_event_type_func_enter