Clean-up: Remove unused variables from default.c
[lttng-tools.git] / src / common / defaults.c
CommitLineData
8b3bd7a3
SM
1/*
2 * Copyright (C) 2012 - Simon Marchi <simon.marchi@polymtl.ca>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
6c1c0768 18#define _LGPL_SOURCE
8b3bd7a3
SM
19#include <stddef.h>
20#include <unistd.h>
21
22#include "defaults.h"
23#include "macros.h"
78d8fb4f 24#include "align.h"
8b3bd7a3 25
78d8fb4f
JG
26LTTNG_HIDDEN
27size_t default_get_channel_subbuf_size(void)
8b3bd7a3 28{
78d8fb4f
JG
29 return max(_DEFAULT_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
30}
31
32LTTNG_HIDDEN
33size_t default_get_metadata_subbuf_size(void)
34{
35 return max(DEFAULT_METADATA_SUBBUF_SIZE, PAGE_SIZE);
36}
37
38LTTNG_HIDDEN
39size_t default_get_kernel_channel_subbuf_size(void)
40{
41 return max(DEFAULT_KERNEL_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
42}
43
44LTTNG_HIDDEN
45size_t default_get_ust_pid_channel_subbuf_size(void)
46{
47 return max(DEFAULT_UST_PID_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
48}
49
50LTTNG_HIDDEN
51size_t default_get_ust_uid_channel_subbuf_size(void)
52{
53 return max(DEFAULT_UST_UID_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
8b3bd7a3 54}
This page took 0.033779 seconds and 4 git commands to generate.