Fix: Handle recent SLE major version codes
[lttng-modules.git] / filter-bytecode.h
index 2aa5c2d08462b6ca23129848b5ea8144d61c32f9..09cea497e736ee587b95a70bc4976c9ca165aea3 100644 (file)
@@ -1,32 +1,15 @@
-#ifndef _FILTER_BYTECODE_H
-#define _FILTER_BYTECODE_H
-
-/*
+/* SPDX-License-Identifier: MIT
+ *
  * filter-bytecode.h
  *
  * LTTng filter bytecode
  *
  * Copyright 2012-2016 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
  */
 
+#ifndef _FILTER_BYTECODE_H
+#define _FILTER_BYTECODE_H
+
 /*
  * offsets are absolute from start of bytecode.
  */
@@ -57,10 +40,6 @@ struct literal_double {
        double v;
 } __attribute__((packed));
 
-struct literal_string {
-       char string[0];
-} __attribute__((packed));
-
 enum filter_op {
        FILTER_OP_UNKNOWN                       = 0,
 
@@ -204,6 +183,8 @@ enum filter_op {
 
        FILTER_OP_UNARY_BIT_NOT                 = 98,
 
+       FILTER_OP_RETURN_S64                    = 99,
+
        NR_FILTER_OPS,
 };
 
@@ -211,7 +192,7 @@ typedef uint8_t filter_opcode_t;
 
 struct load_op {
        filter_opcode_t op;
-       char data[0];
+       char data[];
        /* data to load. Size known by enum filter_opcode and null-term char. */
 } __attribute__((packed));
 
This page took 0.02469 seconds and 4 git commands to generate.