libperf evlist: Check nr_mmaps is correct
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 24 May 2022 07:54:32 +0000 (10:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 May 2022 15:36:57 +0000 (12:36 -0300)
commit4ce47d842d4c16c07b135b8a7975b8f0672bcc0e
tree240a6873aac0d2b3c9fd892806e338c16952fe68
parentae4f8ae16a07896403c90305d4b9be27f657c1fc
libperf evlist: Check nr_mmaps is correct

Print an error message if the predetermined number of mmaps is
incorrect.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20220524075436.29144-12-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/evlist.c