Add tracing functionality: useful for logging and troubleshooting

See API in include/trace.h. When remote cpu is enabled then traces are
available in the file /sys/kernel/debug/remoteproc/remoteproc0/trace0.