Add base support for event rule hit
[lttng-tools.git] / src / common / event-rule / event-rule.c
index 627674ba90026a84cb912aa407b2a4909465f8e0..a42d5555c409eff5e0693becd92b55a6ea1cb2dc 100644 (file)
@@ -11,6 +11,8 @@
 #include <common/macros.h>
 #include <common/payload.h>
 #include <common/payload-view.h>
+#include <common/hashtable/hashtable.h>
+#include <common/hashtable/utils.h>
 #include <lttng/event-rule/event-rule-internal.h>
 #include <lttng/event-rule/kprobe-internal.h>
 #include <lttng/event-rule/syscall-internal.h>
@@ -292,3 +294,10 @@ const char *lttng_event_rule_type_str(enum lttng_event_rule_type type)
                abort();
        }
 }
+
+LTTNG_HIDDEN
+unsigned long lttng_event_rule_hash(const struct lttng_event_rule *rule)
+{
+       assert(rule->hash);
+       return rule->hash(rule);
+}
This page took 0.030331 seconds and 4 git commands to generate.