projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: compile libcompat as C++
[lttng-tools.git]
/
include
/
lttng
/
kernel-probe-internal.h
diff --git
a/include/lttng/kernel-probe-internal.h
b/include/lttng/kernel-probe-internal.h
index e2889fd78d2b04d034505d806486ba12c78d7ce0..e0b94749ef777fb297e09492061d29d59fc72e69 100644
(file)
--- a/
include/lttng/kernel-probe-internal.h
+++ b/
include/lttng/kernel-probe-internal.h
@@
-11,13
+11,19
@@
#include <common/fd-handle.h>
#include <common/macros.h>
#include <lttng/kernel-probe.h>
#include <common/fd-handle.h>
#include <common/macros.h>
#include <lttng/kernel-probe.h>
+#include <lttng/lttng-error.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct lttng_payload;
struct lttng_payload_view;
struct lttng_dynamic_buffer;
struct lttng_payload;
struct lttng_payload_view;
struct lttng_dynamic_buffer;
+struct mi_writer;
typedef bool (*kernel_probe_location_equal_cb)(
const struct lttng_kernel_probe_location *a,
typedef bool (*kernel_probe_location_equal_cb)(
const struct lttng_kernel_probe_location *a,
@@
-33,6
+39,9
@@
typedef ssize_t (*kernel_probe_location_create_from_payload_cb)(
struct lttng_kernel_probe_location **kernel_probe_location);
typedef unsigned long (*kernel_probe_location_hash_cb)(
const struct lttng_kernel_probe_location *location);
struct lttng_kernel_probe_location **kernel_probe_location);
typedef unsigned long (*kernel_probe_location_hash_cb)(
const struct lttng_kernel_probe_location *location);
+typedef enum lttng_error_code (*kernel_probe_location_mi_serialize_cb)(
+ const struct lttng_kernel_probe_location *location,
+ struct mi_writer *writer);
struct lttng_kernel_probe_location_comm {
/* enum lttng_kernel_probe_location_type */
struct lttng_kernel_probe_location_comm {
/* enum lttng_kernel_probe_location_type */
@@
-66,6
+75,7
@@
struct lttng_kernel_probe_location {
kernel_probe_location_equal_cb equal;
kernel_probe_location_serialize_cb serialize;
kernel_probe_location_hash_cb hash;
kernel_probe_location_equal_cb equal;
kernel_probe_location_serialize_cb serialize;
kernel_probe_location_hash_cb hash;
+ kernel_probe_location_mi_serialize_cb mi_serialize;
};
struct lttng_kernel_probe_location_symbol {
};
struct lttng_kernel_probe_location_symbol {
@@
-79,27
+89,30
@@
struct lttng_kernel_probe_location_address {
uint64_t address;
};
uint64_t address;
};
-LTTNG_HIDDEN
int lttng_kernel_probe_location_serialize(
const struct lttng_kernel_probe_location *location,
struct lttng_payload *payload);
int lttng_kernel_probe_location_serialize(
const struct lttng_kernel_probe_location *location,
struct lttng_payload *payload);
-LTTNG_HIDDEN
ssize_t lttng_kernel_probe_location_create_from_payload(
struct lttng_payload_view *view,
struct lttng_kernel_probe_location **probe_location);
ssize_t lttng_kernel_probe_location_create_from_payload(
struct lttng_payload_view *view,
struct lttng_kernel_probe_location **probe_location);
-LTTNG_HIDDEN
bool lttng_kernel_probe_location_is_equal(
const struct lttng_kernel_probe_location *a,
const struct lttng_kernel_probe_location *b);
bool lttng_kernel_probe_location_is_equal(
const struct lttng_kernel_probe_location *a,
const struct lttng_kernel_probe_location *b);
-LTTNG_HIDDEN
struct lttng_kernel_probe_location *lttng_kernel_probe_location_copy(
const struct lttng_kernel_probe_location *location);
struct lttng_kernel_probe_location *lttng_kernel_probe_location_copy(
const struct lttng_kernel_probe_location *location);
-LTTNG_HIDDEN
unsigned long lttng_kernel_probe_location_hash(
const struct lttng_kernel_probe_location *location);
unsigned long lttng_kernel_probe_location_hash(
const struct lttng_kernel_probe_location *location);
+enum lttng_error_code lttng_kernel_probe_location_mi_serialize(
+ const struct lttng_kernel_probe_location *location,
+ struct mi_writer *writer);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LTTNG_KERNEL_PROBE_INTERNAL_H */
#endif /* LTTNG_KERNEL_PROBE_INTERNAL_H */
This page took
0.025622 seconds
and
5
git commands to generate.