From c695051990d704414a23fd4aa2977a9a45838946 Mon Sep 17 00:00:00 2001 From: Henri DF Date: Sun, 28 Feb 2016 15:49:33 -0800 Subject: [PATCH] rule_loader.lua: comments cleanups --- userspace/digwatch/lua/rule_loader.lua | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/userspace/digwatch/lua/rule_loader.lua b/userspace/digwatch/lua/rule_loader.lua index ec4f3583..a7963d9f 100644 --- a/userspace/digwatch/lua/rule_loader.lua +++ b/userspace/digwatch/lua/rule_loader.lua @@ -31,6 +31,9 @@ local function mark_relational_nodes(ast, index) end end +--[[ + Take a filter AST and set it up in the libsinsp runtime, using the filter API. +--]] local function install_filter(node) local t = node.type @@ -60,17 +63,6 @@ local function install_filter(node) end end - --- filter.rel_expr("proc.name", "=", "cat") --- filter.bool_op("and") --- filter.nest() --- filter.nest() --- filter.rel_expr("fd.num", "=", "1") --- filter.bool_op("or") --- filter.rel_expr("fd.num", "=", "2") --- filter.unnest() --- filter.unnest() - local state --[[