trace: move trace declarations from cache.h to new trace.h