[PATCH v7 15/22] perf tools: Add function to run the trace decoder and process samples