projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the filter expression to the enable_event agent protocol message
[lttng-tools.git]
/
src
/
common
/
defaults.h
diff --git
a/src/common/defaults.h
b/src/common/defaults.h
index c7e801d14d79bd8aadfa52bcd2bee01f69fce2a9..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"
@@
-166,19
+167,20
@@
/* Default JUL domain channel name. */
#define DEFAULT_JUL_CHANNEL_NAME "lttng_jul_channel"
/* Default JUL tracepoint name. This is a wildcard for the JUL domain. */
/* Default JUL domain channel name. */
#define DEFAULT_JUL_CHANNEL_NAME "lttng_jul_channel"
/* Default JUL tracepoint name. This is a wildcard for the JUL domain. */
-#define DEFAULT_
SYS_JUL_EVENT_NAME "lttng_jul:sys*
"
-#define DEFAULT_
USER_JUL_EVENT_NAME "lttng_jul:user
*"
+#define DEFAULT_
JUL_EVENT_COMPONENT "lttng_jul
"
+#define DEFAULT_
JUL_EVENT_NAME DEFAULT_JUL_EVENT_COMPONENT ":
*"
/* Default log4j domain channel name. */
#define DEFAULT_LOG4J_CHANNEL_NAME "lttng_log4j_channel"
/* Default log4j tracepoint name. This is a wildcard for the log4j domain. */
/* Default log4j domain channel name. */
#define DEFAULT_LOG4J_CHANNEL_NAME "lttng_log4j_channel"
/* Default log4j tracepoint name. This is a wildcard for the log4j domain. */
-#define DEFAULT_
SYS_LOG4J_EVENT_NAME "lttng_log4j:sys*
"
-#define DEFAULT_
USER_LOG4J_EVENT_NAME "lttng_log4j:user
*"
+#define DEFAULT_
LOG4J_EVENT_COMPONENT "lttng_log4j
"
+#define DEFAULT_
LOG4J_EVENT_NAME DEFAULT_LOG4J_EVENT_COMPONENT ":
*"
/* Default Python domain channel name. */
#define DEFAULT_PYTHON_CHANNEL_NAME "lttng_python_channel"
/* Default Python tracepoint name. This is a wildcard for the python domain. */
/* Default Python domain channel name. */
#define DEFAULT_PYTHON_CHANNEL_NAME "lttng_python_channel"
/* Default Python tracepoint name. This is a wildcard for the python domain. */
-#define DEFAULT_USER_PYTHON_EVENT_NAME "lttng_python:user*"
+#define DEFAULT_PYTHON_EVENT_COMPONENT "lttng_python"
+#define DEFAULT_PYTHON_EVENT_NAME DEFAULT_PYTHON_EVENT_COMPONENT ":*"
#define DEFAULT_CHANNEL_OVERWRITE 0
#define DEFAULT_CHANNEL_TRACEFILE_SIZE 0
#define DEFAULT_CHANNEL_OVERWRITE 0
#define DEFAULT_CHANNEL_TRACEFILE_SIZE 0
@@
-301,11
+303,8
@@
/* Default lttng command live timer value in usec. */
#define DEFAULT_LTTNG_LIVE_TIMER 1000000
/* Default lttng command live timer value in usec. */
#define DEFAULT_LTTNG_LIVE_TIMER 1000000
-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;
+/* Default runas worker name */
+#define DEFAULT_RUN_AS_WORKER_NAME "lttng-runas"
/*
* Returns the default subbuf size.
/*
* Returns the default subbuf size.
@@
-313,11
+312,8
@@
extern size_t default_kernel_channel_subbuf_size;
* 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_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.
@@
-325,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.
@@
-337,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.
@@
-349,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.
@@
-361,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.027012 seconds
and
4
git commands to generate.