Update license text
[lttng-ust.git] / include / lttng / ust-events.h
index 5010a66e3e89d5c426f1bbe0f77d93d7026b9efd..095fb1ef1482ac954be5aa88ed06b55ede45a571 100644 (file)
  *
  * 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.
  */
 
 #include <urcu/list.h>
@@ -291,14 +299,28 @@ struct lttng_event;
 
 struct lttng_ust_filter_bytecode_node {
        struct cds_list_head node;
-       struct lttng_ust_filter_bytecode bc;
        struct lttng_enabler *enabler;
+       /*
+        * struct lttng_ust_filter_bytecode has var. sized array, must
+        * be last field.
+        */
+       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 */
 };
 
@@ -337,7 +359,7 @@ struct lttng_event {
        /* LTTng-UST 2.1 starts here */
        /* list of struct lttng_bytecode_runtime, sorted by seqnum */
        struct cds_list_head bytecode_runtime_head;
-
+       int has_enablers_without_bytecode;
        /* Backward references: list of lttng_enabler_ref (ref to enablers) */
        struct cds_list_head enablers_ref_head;
 };
This page took 0.024823 seconds and 4 git commands to generate.