perf evlist: Remove unused perf_evlist__fprintf() method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Sep 2019 18:45:21 +0000 (15:45 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Sep 2019 19:26:40 +0000 (16:26 -0300)
commitbd70462062f36bec9d93d3900addfca4f8ec718f
tree1bdc37d1d2e002c656b0dd2aed7cf41d10c7c207
parentca1252779f48ece225c6003e01c675abb91cf1b4
perf evlist: Remove unused perf_evlist__fprintf() method

Ditch it, noone is using it, one more stdio.h include in a hot header.

Fix the fallout in parse-events.y, where we end up using a FILE pointer,
I think due to YYDEBUG being set and in some places, like Amazon Linux 1
we don't get stdio.h included by luck, like in most other places, add a
explicit stdio.h include directive.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-37k5q0lhdbo2hvvfbnnzn7og@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/parse-events.y