[PATCH v2 10/23] perf tools: Add function to read data from dsos