[PATCH v2 10/14] perf, persistent: Avoid adding identical events