projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust-ctl: allow runtime version checks
[lttng-ust.git]
/
include
/
lttng
/
ust-ctl.h
diff --git
a/include/lttng/ust-ctl.h
b/include/lttng/ust-ctl.h
index d7ab7afd1594effb4ca4d045493bc0ef9ad4ce58..42b30ea9f06ae5565801d26b87ad7785ec4b6203 100644
(file)
--- a/
include/lttng/ust-ctl.h
+++ b/
include/lttng/ust-ctl.h
@@
-1,7
+1,7
@@
/*
* SPDX-License-Identifier: GPL-2.0-only
*
/*
* SPDX-License-Identifier: GPL-2.0-only
*
- * Copyright (C) 2011
Julien Desfossez <julien.desfossez@polymtl.ca>
+ * Copyright (C) 2011
EfficiOS Inc.
* Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
* Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
@@
-18,6
+18,10
@@
#include <lttng/ust-utils.h>
#include <lttng/ust-sigbus.h>
#include <lttng/ust-utils.h>
#include <lttng/ust-sigbus.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef LTTNG_UST_UUID_LEN
#define LTTNG_UST_UUID_LEN 16
#endif
#ifndef LTTNG_UST_UUID_LEN
#define LTTNG_UST_UUID_LEN 16
#endif
@@
-25,7
+29,7
@@
/* Default unix socket path */
#define LTTNG_UST_SOCK_FILENAME \
"lttng-ust-sock-" \
/* Default unix socket path */
#define LTTNG_UST_SOCK_FILENAME \
"lttng-ust-sock-" \
- lttng_ust_stringify(LTTNG_UST_ABI_MAJOR_VERSION)
+ lttng_ust_stringify(LTTNG_UST_ABI_MAJOR_VERSION
_OLDEST_COMPATIBLE
)
/*
* Shared memory files path are automatically related to shm root, e.g.
/*
* Shared memory files path are automatically related to shm root, e.g.
@@
-33,7
+37,7
@@
*/
#define LTTNG_UST_WAIT_FILENAME \
"lttng-ust-wait-" \
*/
#define LTTNG_UST_WAIT_FILENAME \
"lttng-ust-wait-" \
- lttng_ust_stringify(LTTNG_UST_ABI_MAJOR_VERSION)
+ lttng_ust_stringify(LTTNG_UST_ABI_MAJOR_VERSION
_OLDEST_COMPATIBLE
)
struct lttng_ust_ctl_consumer_channel_attr {
enum lttng_ust_abi_chan_type type;
struct lttng_ust_ctl_consumer_channel_attr {
enum lttng_ust_abi_chan_type type;
@@
-656,4
+660,10
@@
int lttng_ust_ctl_counter_clear(struct lttng_ust_ctl_daemon_counter *counter,
void lttng_ust_ctl_sigbus_handle(void *addr);
void lttng_ust_ctl_sigbus_handle(void *addr);
+int lttng_ust_ctl_get_version(uint32_t *major, uint32_t *minor, uint32_t *patchlevel);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _LTTNG_UST_CTL_H */
#endif /* _LTTNG_UST_CTL_H */
This page took
0.024659 seconds
and
4
git commands to generate.