From 084dc96bc564b814b7d8850958613cfae835dc77 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Aug 2018 14:27:33 +0100 Subject: [Feature] Add support for Lua API tracing --- src/lua/lua_trie.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lua/lua_trie.c') diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c index 5911842b9..362564ce8 100644 --- a/src/lua/lua_trie.c +++ b/src/lua/lua_trie.c @@ -202,6 +202,7 @@ lua_trie_search_str (lua_State *L, struct rspamd_multipattern *trie, static gint lua_trie_match (lua_State *L) { + LUA_TRACE_POINT; struct rspamd_multipattern *trie = lua_check_trie (L, 1); const gchar *text; gsize len; @@ -249,6 +250,7 @@ lua_trie_match (lua_State *L) static gint lua_trie_search_mime (lua_State *L) { + LUA_TRACE_POINT; struct rspamd_multipattern *trie = lua_check_trie (L, 1); struct rspamd_task *task = lua_check_task (L, 2); struct rspamd_mime_text_part *part; @@ -286,6 +288,7 @@ lua_trie_search_mime (lua_State *L) static gint lua_trie_search_rawmsg (lua_State *L) { + LUA_TRACE_POINT; struct rspamd_multipattern *trie = lua_check_trie (L, 1); struct rspamd_task *task = lua_check_task (L, 2); const gchar *text; @@ -316,6 +319,7 @@ lua_trie_search_rawmsg (lua_State *L) static gint lua_trie_search_rawbody (lua_State *L) { + LUA_TRACE_POINT; struct rspamd_multipattern *trie = lua_check_trie (L, 1); struct rspamd_task *task = lua_check_task (L, 2); const gchar *text; -- cgit v1.2.3