Generic On Chip Trace system