Fix: standardize man pages building/installing
[lttng-tools.git] / src / common / defaults.c
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
18 #define _LGPL_SOURCE
19 #include <stddef.h>
20 #include <unistd.h>
21
22 #include "defaults.h"
23 #include "macros.h"
24 #include "align.h"
25
26 LTTNG_HIDDEN
27 size_t default_get_channel_subbuf_size(void)
28 {
29 return max(_DEFAULT_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
30 }
31
32 LTTNG_HIDDEN
33 size_t default_get_metadata_subbuf_size(void)
34 {
35 return max(DEFAULT_METADATA_SUBBUF_SIZE, PAGE_SIZE);
36 }
37
38 LTTNG_HIDDEN
39 size_t default_get_kernel_channel_subbuf_size(void)
40 {
41 return max(DEFAULT_KERNEL_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
42 }
43
44 LTTNG_HIDDEN
45 size_t default_get_ust_pid_channel_subbuf_size(void)
46 {
47 return max(DEFAULT_UST_PID_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
48 }
49
50 LTTNG_HIDDEN
51 size_t default_get_ust_uid_channel_subbuf_size(void)
52 {
53 return max(DEFAULT_UST_UID_CHANNEL_SUBBUF_SIZE, PAGE_SIZE);
54 }
This page took 0.030504 seconds and 5 git commands to generate.