trace: move backend-specific code into the trace/ directory Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>