Skip to content

Commit 1334bb9

Browse files
ahunter6acmel
authored andcommitted
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: 5130c6e ("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>
1 parent d8d051d commit 1334bb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/perf/scripts/python/export-to-sqlite.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,11 @@ def trace_end():
608608
if is_table_empty("ptwrite"):
609609
drop("ptwrite")
610610
if is_table_empty("mwait") and is_table_empty("pwre") and is_table_empty("exstop") and is_table_empty("pwrx"):
611+
do_query(query, 'DROP VIEW power_events_view');
611612
drop("mwait")
612613
drop("pwre")
613614
drop("exstop")
614615
drop("pwrx")
615-
do_query(query, 'DROP VIEW power_events_view');
616616
if is_table_empty("cbr"):
617617
drop("cbr")
618618

0 commit comments

Comments
 (0)