]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7a07585d15c0aa12e46cb5a29faa77da0f9113c
treeb8fe2580d47737cf0290b3ffbc0e0ace706bdcb7
parentd333d92b11e983927b4e8e6284cfc5fd3d4d6f22
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