From 69ac83dd546561eb451fed008ea41a3db1412e79 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 25 Dec 2010 17:25:04 +0100 Subject: [PATCH] sms: Add a simple SystemTap probe to see SQL queries This will proble all queries done in the system. This can help to identify some issues with libdbi's performance. --- openbsc/contrib/sms/sqlite-probe.tap.d | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 openbsc/contrib/sms/sqlite-probe.tap.d diff --git a/openbsc/contrib/sms/sqlite-probe.tap.d b/openbsc/contrib/sms/sqlite-probe.tap.d new file mode 100644 index 000000000..e75cdfcfa --- /dev/null +++ b/openbsc/contrib/sms/sqlite-probe.tap.d @@ -0,0 +1,5 @@ +probe process("/usr/lib/libsqlite3.so.0.8.6").function("sqlite3_get_table") +{ + a = user_string($zSql); + printf("sqlite3_get_table called '%s'\n", a); +}