perf hists: Introduce hists__match_hierarchy()