From: Qi Liu<liuqi115@xxxxxxxxxx>
Add find_pmu_for_event() and use to simplify logic in
auxtrace_record_init(). find_pmu_for_event() will be
reused in subsequent patches.
Reviewed-by: Leo Yan<leo.yan@xxxxxxxxxx>
Reviewed-by: Jonathan Cameron<Jonathan.Cameron@xxxxxxxxxx>
Signed-off-by: Qi Liu<liuqi115@xxxxxxxxxx>
Signed-off-by: Yicong Yang<yangyicong@xxxxxxxxxxxxx>
---