Filter: use only single lower bit of filter return value
[lttng-ust.git] / include / lttng / ust-events.h
index f501fd1459bd6e96356ab52f1a3ddc424447aeb0..331506bd69d838a0c77075489ec3830b859dbe86 100644 (file)
@@ -299,10 +299,19 @@ struct lttng_ust_filter_bytecode_node {
        struct lttng_ust_filter_bytecode bc;
 };
 
+/*
+ * Filter return value masks.
+ */
+enum lttng_filter_ret {
+       LTTNG_FILTER_DISCARD = 0,
+       LTTNG_FILTER_RECORD_FLAG = (1ULL << 0),
+       /* Other bits are kept for future use. */
+};
+
 struct lttng_bytecode_runtime {
        /* Associated bytecode */
        struct lttng_ust_filter_bytecode_node *bc;
-       int (*filter)(void *filter_data, const char *filter_stack_data);
+       uint64_t (*filter)(void *filter_data, const char *filter_stack_data);
        int link_failed;
        struct cds_list_head node;      /* list of bytecode runtime in event */
 };
This page took 0.024263 seconds and 4 git commands to generate.