perf flamegraph: Explicitly set utf-8 encoding
authorAndreas Gerstmayr <agerstmayr@redhat.com>
Fri, 19 Jun 2020 15:32:31 +0000 (17:32 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jun 2020 16:30:55 +0000 (13:30 -0300)
commitc42ad5d4358230be166fc36c87bae0dd1680c570
treed601f36bd62812e82e28bc98d2126370b2aaab62
parent625d3449788f85569096780592549d0340e9c0c7
perf flamegraph: Explicitly set utf-8 encoding

On some platforms the default encoding is not utf-8, which causes an
UnicodeDecodeError when reading the flamegraph template and writing the
flamegraph

Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200619153232.203537-1-agerstmayr@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/flamegraph.py