X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fsessiond-trace-chunks.h;h=2c771d8094fe172628bd41b8ecea38af7dca2bdd;hb=d1bc11c3e8bbd032c6638a2def5994703e7c9778;hp=f05877ac943b885f94d2bb415f9f882e9ece3528;hpb=c70636a7342f34e3be68fcf411cf3e3718b8e73f;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/sessiond-trace-chunks.h b/src/bin/lttng-relayd/sessiond-trace-chunks.h index f05877ac9..2c771d809 100644 --- a/src/bin/lttng-relayd/sessiond-trace-chunks.h +++ b/src/bin/lttng-relayd/sessiond-trace-chunks.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2019 - Jérémie Galarneau + * Copyright (C) 2019 Jérémie Galarneau * - * 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 SESSIOND_TRACE_CHUNK_REGISTRY_H @@ -22,6 +12,17 @@ #include #include +/* + * A session trace chunk registry allows the relay daemon to share trace chunks + * used by different "relay sessions" when they were created for the same + * user-visible session daemon session. Tracing multiple domains (e.g. ust and + * kernel) results in per-domain relay sessions being created. + * + * Sharing trace chunks, and their output directory more specifically, is + * essential to properly implement session rotations. The sharing of output + * directory handles allows directory renames to be performed once and without + * races that would stem from from multiple renames. + */ struct sessiond_trace_chunk_registry; struct sessiond_trace_chunk_registry *