perf script: Fix unnecessary machine_resolve()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 11 Aug 2021 10:10:32 +0000 (13:10 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Aug 2021 12:33:59 +0000 (09:33 -0300)
commit29159727aa7ed3341dc560e9983e7284f4279ade
treeac68243eb95d87a8409c83d3e7254c71e24cb485
parent988db17932a78d201e826af3df7e89494ee0c037
perf script: Fix unnecessary machine_resolve()

machine_resolve() may have already been called. Test for that to avoid
calling it again unnecessarily.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https //lore.kernel.org/r/20210811101036.17986-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c