Implement support for brackets in filter expressions
[lttng-tools.git] / src / lib / lttng-ctl / filter / filter-bytecode.h
index cdc334555de37daeb5c77d12374f3b7fbc5523c5..b7b71ad538ad7de884bddf284b2532e09670851a 100644 (file)
@@ -35,6 +35,12 @@ struct field_ref {
        uint16_t offset;
 } LTTNG_PACKED;
 
+struct field_ref_index {
+       /* Initially, symbol offset. After link, field offset. */
+       uint16_t offset;
+       uint64_t index;         /* array index */
+} LTTNG_PACKED;
+
 struct literal_numeric {
        int64_t v;
 } LTTNG_PACKED;
@@ -72,7 +78,7 @@ enum filter_op {
        FILTER_OP_GE                            = 16,
        FILTER_OP_LE                            = 17,
 
-       /* string binary comparator */
+       /* string binary comparator: apply to  */
        FILTER_OP_EQ_STRING                     = 18,
        FILTER_OP_NE_STRING                     = 19,
        FILTER_OP_GT_STRING                     = 20,
@@ -153,6 +159,24 @@ enum filter_op {
        FILTER_OP_LOAD_FIELD_REF_USER_STRING    = 74,
        FILTER_OP_LOAD_FIELD_REF_USER_SEQUENCE  = 75,
 
+       /*
+        * load immediate star globbing pattern (literal string)
+        * from immediate
+        */
+       FILTER_OP_LOAD_STAR_GLOB_STRING         = 76,
+
+       /* globbing pattern binary operator: apply to */
+       FILTER_OP_EQ_STAR_GLOB_STRING           = 77,
+       FILTER_OP_NE_STAR_GLOB_STRING           = 78,
+
+       /* load field ref with index */
+       FILTER_OP_LOAD_FIELD_REF_INDEX                  = 79,
+       FILTER_OP_LOAD_FIELD_REF_INDEX_S64              = 80,
+
+       /* get context ref with index */
+       FILTER_OP_GET_CONTEXT_REF_INDEX                 = 81,
+       FILTER_OP_GET_CONTEXT_REF_INDEX_S64             = 82,
+
        NR_FILTER_OPS,
 };
 
This page took 0.023427 seconds and 4 git commands to generate.