X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.h;h=027b098c046cf9bfcb9a48c5f331deade0e635a9;hp=91215272ac83f3316348c0c10ae098c6b26b5fbf;hb=242388e491e4219f967ee424d7bf02035a313e6f;hpb=6dc3064a30b0cc7cfa9fdd22da1963525dfb7388 diff --git a/src/bin/lttng-sessiond/snapshot.h b/src/bin/lttng-sessiond/snapshot.h index 91215272a..027b098c0 100644 --- a/src/bin/lttng-sessiond/snapshot.h +++ b/src/bin/lttng-sessiond/snapshot.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2013 - David Goulet + * Copyright (C) 2013 David Goulet * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-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 General Public License for - * more details. - * - * You should have received a copy of the GNU 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 SNAPSHOT_H @@ -28,14 +18,23 @@ #include "consumer.h" struct consumer_output; +struct ltt_session; struct snapshot_output { uint32_t id; uint64_t max_size; + /* Number of snapshot taken with that output. */ + uint64_t nb_snapshot; char name[NAME_MAX]; struct consumer_output *consumer; int kernel_sockets_copied; int ust_sockets_copied; + /* + * Contains the string with "-