projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MI: Implement event context schema change
[lttng-tools.git]
/
src
/
common
/
defaults.h
diff --git
a/src/common/defaults.h
b/src/common/defaults.h
index 02721bf797ff0a661f3deb9fa74a89bbbb59a83e..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,7
+20,7
@@
#ifndef _DEFAULTS_H
#define _DEFAULTS_H
#ifndef _DEFAULTS_H
#define _DEFAULTS_H
-#include <
config
.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"
@@
-305,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.
@@
-329,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.
@@
-341,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.
@@
-353,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.
@@
-365,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.023687 seconds
and
4
git commands to generate.