Salvage event-related constants from trace.h.

#802