[PATCH v3 2/6] tracing: add flag to control different traces