perf scripts python: call-graph-from-sql.py: Add a class for global data
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 1 Oct 2018 06:28:41 +0000 (09:28 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Oct 2018 17:23:31 +0000 (14:23 -0300)
commit5f9dfef1bb7fadfb2d001244ef23359982fedd06
treed5f5e09077b0413879f49b999725914e0063fe85
parentb2556c46a69b4c0e6bbf690ac4ca2913cbe90e1e
perf scripts python: call-graph-from-sql.py: Add a class for global data

Keep global data in a single object that is easy to pass around as
needed, without polluting 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-8-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/call-graph-from-sql.py