aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_expression.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-09 14:27:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-09 15:27:32 +0100
commit084dc96bc564b814b7d8850958613cfae835dc77 (patch)
treea33bbbb6dac6c4277389478b154f2b4306eacb34 /src/lua/lua_expression.c
parent0ebcb5c9fb90363a2afff95f3f1af827fcf9b287 (diff)
downloadrspamd-084dc96bc564b814b7d8850958613cfae835dc77.tar.gz
rspamd-084dc96bc564b814b7d8850958613cfae835dc77.zip
[Feature] Add support for Lua API tracing
Diffstat (limited to 'src/lua/lua_expression.c')
-rw-r--r--src/lua/lua_expression.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c
index 7975cc227..03a667b8d 100644
--- a/src/lua/lua_expression.c
+++ b/src/lua/lua_expression.c
@@ -190,6 +190,7 @@ lua_atom_process (gpointer input, rspamd_expression_atom_t *atom)
static gint
lua_expr_process (lua_State *L)
{
+ LUA_TRACE_POINT;
struct lua_expression *e = rspamd_lua_expression (L, 1);
gdouble res;
gint flags = 0;
@@ -208,6 +209,7 @@ lua_expr_process (lua_State *L)
static gint
lua_expr_process_traced (lua_State *L)
{
+ LUA_TRACE_POINT;
struct lua_expression *e = rspamd_lua_expression (L, 1);
rspamd_expression_atom_t *atom;
gint res;
@@ -242,6 +244,7 @@ lua_expr_process_traced (lua_State *L)
static gint
lua_expr_create (lua_State *L)
{
+ LUA_TRACE_POINT;
struct lua_expression *e, **pe;
const char *line;
gsize len;
@@ -323,6 +326,7 @@ lua_expr_create (lua_State *L)
static gint
lua_expr_to_string (lua_State *L)
{
+ LUA_TRACE_POINT;
struct lua_expression *e = rspamd_lua_expression (L, 1);
GString *str;
@@ -360,6 +364,7 @@ lua_exr_atom_cb (const rspamd_ftok_t *tok, gpointer ud)
static gint
lua_expr_atoms (lua_State *L)
{
+ LUA_TRACE_POINT;
struct lua_expression *e = rspamd_lua_expression (L, 1);
struct lua_expr_atoms_cbdata cbdata;