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.
This commit is contained in:
Holger Hans Peter Freyther 2010-12-25 17:25:04 +01:00
parent 9d277d3b33
commit 69ac83dd54
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}