perf scripts python: export-to-sqlite.py: Fix DROP VIEW power_events_view
commit1334bb94cd8a21217cb0c186925f9bc9d47adafc
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 8 Jul 2019 05:52:32 +0000 (8 08:52 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 Jul 2019 13:13:28 +0000 (9 10:13 -0300)
treeae5a18d3b3c8b1bb48b503ed70df18177a3ffa14
parentd8d051df9f906232715282cc0570c94273b197bc
perf scripts python: export-to-sqlite.py: Fix DROP VIEW power_events_view

Drop power_events_view before its dependent tables.

SQLite does not seem to mind but the fix was needed for PostgreSQL
(export-to-postgresql.py script), so do the same fix for the SQLite. It is
more logical and keeps the 2 scripts following the same approach.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Fixes: 5130c6e55531 ("perf scripts python: export-to-sqlite.py: Export Intel PT power and ptwrite events")
Link: http://lkml.kernel.org/r/20190708055232.5032-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/export-to-sqlite.py