perf scripts python: call-graph-from-sql.py: Make a "Main" function
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 1 Oct 2018 06:28:39 +0000 (09:28 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Oct 2018 17:22:54 +0000 (14:22 -0300)
commit7e4fc93e2ade2b0c453a97e307203ffe3f930c98
tree003eb47ae3c00f7b4f88803cbde462d7675492f8
parent99a097c987c26c8c82293fcb92908d07009c925e
perf scripts python: call-graph-from-sql.py: Make a "Main" function

Make a "Main" function so that the variables used do not pollute the global
namespace.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20181001062853.28285-6-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/call-graph-from-sql.py