X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=filter-bytecode.h;h=09cea497e736ee587b95a70bc4976c9ca165aea3;hb=refs%2Fheads%2Fstable-2.12;hp=bd83d0891570b01daff304102bd58db7c4aa299b;hpb=57ba4b4152578d463e8642ec0000cd3d6114ee6f;p=lttng-modules.git diff --git a/filter-bytecode.h b/filter-bytecode.h index bd83d089..09cea497 100644 --- a/filter-bytecode.h +++ b/filter-bytecode.h @@ -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 - * - * 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, @@ -213,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));