update(userspace/engine): avoid solving macros AST at each cycle when getting details of all rules

Signed-off-by: Lorenzo Susini <susinilorenzo1@gmail.com>
This commit is contained in:
Lorenzo Susini
2023-05-13 09:48:49 +00:00
committed by poiana
parent c1623771d8
commit 727aed0c03
4 changed files with 31 additions and 21 deletions

View File

@@ -37,6 +37,7 @@ limitations under the License.
#include "falco_common.h"
#include "falco_source.h"
#include "falco_load_result.h"
#include "filter_details_resolver.h"
//
// This class acts as the primary interface between a program and the
@@ -299,7 +300,7 @@ private:
inline bool should_drop_evt() const;
// Retrieve details of a rule in json format
Json::Value get_json_rule_details(const falco_rule& r) const;
Json::Value get_json_rule_details(const falco_rule& r, filter_details& details) const;
rule_loader::collector m_rule_collector;
indexed_vector<falco_rule> m_rules;