kernel: event notifier: kernel-ctl interface
[lttng-tools.git] / src / common / trace-chunk.h
index 8b43a25f7487f9ba35cbfa66de55dfe9e096f75b..4ab0b11c5c405d31d52c46392b2618b5e8b42069 100644 (file)
@@ -1,18 +1,8 @@
 /*
- * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License, version 2.1 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef LTTNG_TRACE_CHUNK_H
@@ -65,7 +55,7 @@ struct lttng_trace_chunk;
 struct fd_tracker;
 
 enum lttng_trace_chunk_status {
-        LTTNG_TRACE_CHUNK_STATUS_OK,
+       LTTNG_TRACE_CHUNK_STATUS_OK,
        LTTNG_TRACE_CHUNK_STATUS_NONE,
        LTTNG_TRACE_CHUNK_STATUS_INVALID_ARGUMENT,
        LTTNG_TRACE_CHUNK_STATUS_INVALID_OPERATION,
@@ -210,6 +200,10 @@ LTTNG_HIDDEN
 const char *lttng_trace_chunk_command_type_get_name(
                enum lttng_trace_chunk_command_type command);
 
+LTTNG_HIDDEN
+bool lttng_trace_chunk_ids_equal(const struct lttng_trace_chunk *chunk_a,
+               const struct lttng_trace_chunk *chunk_b);
+
 /* Returns true on success. */
 LTTNG_HIDDEN
 bool lttng_trace_chunk_get(struct lttng_trace_chunk *chunk);
This page took 0.024451 seconds and 4 git commands to generate.