From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751923AbdHCIhy (ORCPT ); Thu, 3 Aug 2017 04:37:54 -0400 Received: from mga07.intel.com ([134.134.136.100]:59715 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751837AbdHCIhw (ORCPT ); Thu, 3 Aug 2017 04:37:52 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,315,1498546800"; d="scan'208";a="295126865" From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/5] perf script: Add support for exporting to sqlite3 Date: Thu, 3 Aug 2017 11:31:25 +0300 Message-Id: <1501749090-20357-1-git-send-email-adrian.hunter@intel.com> X-Mailer: git-send-email 1.9.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Here is a script for exporting to SQLite 3 the same data as the PostgreSQL export. The call-graph script is renamed and amended to work with both PostgreSQL and SQLite. Adrian Hunter (5): perf script: Fix missing call_path_id in export-to-postgresql script perf script: Fix query in call-graph-from-postgresql.py perf script: Add support for exporting to sqlite3 perf script: Rename call-graph-from-postgresql.py to call-graph-from-sql.py perf script: Add support for sqlite3 to call-graph-from-sql.py tools/perf/Documentation/intel-pt.txt | 6 +- .../scripts/python/bin/export-to-sqlite-record | 8 + .../scripts/python/bin/export-to-sqlite-report | 29 ++ ...h-from-postgresql.py => call-graph-from-sql.py} | 70 ++-- tools/perf/scripts/python/export-to-postgresql.py | 5 +- tools/perf/scripts/python/export-to-sqlite.py | 451 +++++++++++++++++++++ 6 files changed, 535 insertions(+), 34 deletions(-) create mode 100644 tools/perf/scripts/python/bin/export-to-sqlite-record create mode 100644 tools/perf/scripts/python/bin/export-to-sqlite-report rename tools/perf/scripts/python/{call-graph-from-postgresql.py => call-graph-from-sql.py} (87%) create mode 100644 tools/perf/scripts/python/export-to-sqlite.py Regards Adrian