Implement support for brackets in filter expressions
[lttng-tools.git] / src / lib / lttng-ctl / filter / filter-bytecode.h
index 627d0d6f0b6f58943b7326b8c59ba019f8682f11..b7b71ad538ad7de884bddf284b2532e09670851a 100644 (file)
@@ -35,6 +35,12 @@ struct field_ref {
        uint16_t offset;
 } LTTNG_PACKED;
 
        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;
 struct literal_numeric {
        int64_t v;
 } LTTNG_PACKED;
@@ -163,6 +169,14 @@ enum filter_op {
        FILTER_OP_EQ_STAR_GLOB_STRING           = 77,
        FILTER_OP_NE_STAR_GLOB_STRING           = 78,
 
        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,
 };
 
        NR_FILTER_OPS,
 };
 
This page took 0.034113 seconds and 4 git commands to generate.