perf evlist: Allow multiple read formats
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 1 Apr 2020 10:16:12 +0000 (13:16 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 18 Apr 2020 12:05:00 +0000 (09:05 -0300)
commit94d3820f2e18d3c88f833baec8d6ad5b3489fa59
treeb8fe2580d47737cf0290b3ffbc0e0ace706bdcb7
parent3713eb371c873e6bed713d78f1bdd5e8be0764a3
perf evlist: Allow multiple read formats

Tools find the correct evsel, and therefore read format, using the event
ID, so it isn't necessary for all read formats to be the same. In the
case of leader-sampling of AUX area events, dummy tracking events will
have a different read format, so relax the validation to become a debug
message only.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20200401101613.6201-16-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c