• Andi Kleen's avatar
    perf stat: Don't merge events in the same PMU · 6c5f4e5c
    Andi Kleen authored
    Event merging is mainly to collapse similar events in lots of different
    duplicated PMUs.
    
    It can break metric displaying. It's possible for two metrics to have
    the same event, and when the two events happen in a row the second
    wouldn't be displayed.  This would also not show the second metric.
    
    To avoid this don't merge events in the same PMU. This makes sense, if
    we have multiple events in the same PMU there is likely some reason for
    it (e.g. using multiple groups) and we better not merge them.
    
    While in theory it would be possible to construct metrics that have
    events with the same name in different PMU no current metrics have this
    problem.
    
    This is the fix for perf stat -M UPI,IPC (needs also another bug fix to
    completely work)
    Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
    Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Fixes: 430daf2d ("perf stat: Collapse identically named events")
    Link: http://lkml.kernel.org/r/20190624193711.35241-3-andi@firstfloor.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    6c5f4e5c
stat-display.c 29.7 KB