projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Transfer UST exclusion names from sessiond to client
[lttng-tools.git]
/
src
/
common
/
defaults.h
diff --git
a/src/common/defaults.h
b/src/common/defaults.h
index cba94c9168eff2111f4879c9e63cf51fbe36b3d9..6bf06becdde069ff04e26900c99013d8f62c4da1 100644
(file)
--- a/
src/common/defaults.h
+++ b/
src/common/defaults.h
@@
-1,6
+1,7
@@
/*
* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/*
* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * 2015 - 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 General Public License, version 2 only,
*
* 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,
@@
-19,6
+20,8
@@
#ifndef _DEFAULTS_H
#define _DEFAULTS_H
#ifndef _DEFAULTS_H
#define _DEFAULTS_H
+#include <src/common/macros.h>
+
/* Default unix group name for tracing. */
#define DEFAULT_TRACING_GROUP "tracing"
/* Default unix group name for tracing. */
#define DEFAULT_TRACING_GROUP "tracing"
@@
-303,23
+306,14
@@
/* Default runas worker name */
#define DEFAULT_RUN_AS_WORKER_NAME "lttng-runas"
/* Default runas worker name */
#define DEFAULT_RUN_AS_WORKER_NAME "lttng-runas"
-extern size_t default_channel_subbuf_size;
-extern size_t default_metadata_subbuf_size;
-extern size_t default_ust_pid_channel_subbuf_size;
-extern size_t default_ust_uid_channel_subbuf_size;
-extern size_t default_kernel_channel_subbuf_size;
-
/*
* Returns the default subbuf size.
*
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
/*
* Returns the default subbuf size.
*
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
-static inline
-size_t default_get_channel_subbuf_size(void)
-{
- return default_channel_subbuf_size;
-}
+LTTNG_HIDDEN
+size_t default_get_channel_subbuf_size(void);
/*
* Returns the default metadata subbuf size.
/*
* Returns the default metadata subbuf size.
@@
-327,11
+321,8
@@
size_t default_get_channel_subbuf_size(void)
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
-static inline
-size_t default_get_metadata_subbuf_size(void)
-{
- return default_metadata_subbuf_size;
-}
+LTTNG_HIDDEN
+size_t default_get_metadata_subbuf_size(void);
/*
* Returns the default subbuf size for the kernel domain.
/*
* Returns the default subbuf size for the kernel domain.
@@
-339,11
+330,8
@@
size_t default_get_metadata_subbuf_size(void)
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
-static inline
-size_t default_get_kernel_channel_subbuf_size(void)
-{
- return default_kernel_channel_subbuf_size;
-}
+LTTNG_HIDDEN
+size_t default_get_kernel_channel_subbuf_size(void);
/*
* Returns the default subbuf size for the UST domain per PID.
/*
* Returns the default subbuf size for the UST domain per PID.
@@
-351,11
+339,8
@@
size_t default_get_kernel_channel_subbuf_size(void)
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
-static inline
-size_t default_get_ust_pid_channel_subbuf_size(void)
-{
- return default_ust_pid_channel_subbuf_size;
-}
+LTTNG_HIDDEN
+size_t default_get_ust_pid_channel_subbuf_size(void);
/*
* Returns the default subbuf size for the UST domain per UID.
/*
* Returns the default subbuf size for the UST domain per UID.
@@
-363,10
+348,7
@@
size_t default_get_ust_pid_channel_subbuf_size(void)
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
* This function depends on a value that is set at constructor time, so it is
* unsafe to call it from another constructor.
*/
-static inline
-size_t default_get_ust_uid_channel_subbuf_size(void)
-{
- return default_ust_uid_channel_subbuf_size;
-}
+LTTNG_HIDDEN
+size_t default_get_ust_uid_channel_subbuf_size(void);
#endif /* _DEFAULTS_H */
#endif /* _DEFAULTS_H */
This page took
0.028314 seconds
and
4
git commands to generate.