projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
liblttng-ust-comm/lttng-ust-com.c: remove unnecessary goto in ustcomm_accept_unix_sock()
[lttng-ust.git]
/
include
/
lttng
/
ust-events.h
diff --git
a/include/lttng/ust-events.h
b/include/lttng/ust-events.h
index 9508e7664f8601e112017bf0746032cce6c2e84c..5edfbb99f88019565669adaf735cefa2e6cc3b12 100644
(file)
--- a/
include/lttng/ust-events.h
+++ b/
include/lttng/ust-events.h
@@
-21,13
+21,14
@@
#include <urcu/list.h>
#include <urcu/hlist.h>
#include <urcu/list.h>
#include <urcu/hlist.h>
-#include <uuid/uuid.h>
#include <stdint.h>
#include <lttng/ust-abi.h>
#include <lttng/ust-tracer.h>
#include <stdint.h>
#include <lttng/ust-abi.h>
#include <lttng/ust-tracer.h>
-#include <endian.h>
+#include <
lttng/ust-
endian.h>
#include <float.h>
#include <float.h>
+#define LTTNG_UST_UUID_LEN 16
+
struct ltt_channel;
struct ltt_session;
struct lttng_ust_lib_ring_buffer_ctx;
struct ltt_channel;
struct ltt_session;
struct lttng_ust_lib_ring_buffer_ctx;
@@
-84,7
+85,7
@@
struct lttng_enum_entry {
.size = sizeof(_type) * CHAR_BIT, \
.alignment = lttng_alignof(_type) * CHAR_BIT, \
.signedness = lttng_is_signed_type(_type), \
.size = sizeof(_type) * CHAR_BIT, \
.alignment = lttng_alignof(_type) * CHAR_BIT, \
.signedness = lttng_is_signed_type(_type), \
- .reverse_byte_order = _byte_order !=
__BYTE_ORDER,
\
+ .reverse_byte_order = _byte_order !=
BYTE_ORDER,
\
.base = _base, \
.encoding = lttng_encode_##_encoding, \
}, \
.base = _base, \
.encoding = lttng_encode_##_encoding, \
}, \
@@
-119,7
+120,7
@@
struct lttng_integer_type {
- _float_mant_dig(_type), \
.mant_dig = _float_mant_dig(_type), \
.alignment = lttng_alignof(_type) * CHAR_BIT, \
- _float_mant_dig(_type), \
.mant_dig = _float_mant_dig(_type), \
.alignment = lttng_alignof(_type) * CHAR_BIT, \
- .reverse_byte_order =
__BYTE_ORDER != __
FLOAT_WORD_ORDER, \
+ .reverse_byte_order =
BYTE_ORDER !=
FLOAT_WORD_ORDER, \
}, \
} \
}, \
} \
@@
-211,7
+212,7
@@
struct lttng_ctx {
#define LTTNG_UST_EVENT_DESC_PADDING 40
struct lttng_event_desc {
const char *name;
#define LTTNG_UST_EVENT_DESC_PADDING 40
struct lttng_event_desc {
const char *name;
- void
*probe_callback
;
+ void
(*probe_callback)(void)
;
const struct lttng_event_ctx *ctx; /* context */
const struct lttng_event_field *fields; /* event payload */
unsigned int nr_fields;
const struct lttng_event_ctx *ctx; /* context */
const struct lttng_event_field *fields; /* event payload */
unsigned int nr_fields;
@@
-270,7
+271,18
@@
struct lttng_ust_tracepoint_list {
struct cds_list_head head;
};
struct cds_list_head head;
};
+struct tp_field_list_entry {
+ struct lttng_ust_field_iter field;
+ struct cds_list_head head;
+};
+
+struct lttng_ust_field_list {
+ struct tp_field_list_entry *iter;
+ struct cds_list_head head;
+};
+
struct ust_pending_probe;
struct ust_pending_probe;
+struct ltt_event;
/*
* ltt_event structure is referred to by the tracing fast path. It must be
/*
* ltt_event structure is referred to by the tracing fast path. It must be
@@
-281,7
+293,7
@@
struct ltt_event {
struct ltt_channel *chan;
int enabled;
const struct lttng_event_desc *desc;
struct ltt_channel *chan;
int enabled;
const struct lttng_event_desc *desc;
- void
*filter
;
+ void
(*filter)(struct ltt_event *event)
;
struct lttng_ctx *ctx;
enum lttng_ust_instrumentation instrumentation;
union {
struct lttng_ctx *ctx;
enum lttng_ust_instrumentation instrumentation;
union {
@@
-354,7
+366,7
@@
struct ltt_channel {
/* Channel ID, available for consumer too */
unsigned int id;
/* Copy of session UUID for consumer (availability through shm) */
/* Channel ID, available for consumer too */
unsigned int id;
/* Copy of session UUID for consumer (availability through shm) */
- u
uid_t uuid;
/* Trace session unique ID */
+ u
nsigned char uuid[LTTNG_UST_UUID_LEN];
/* Trace session unique ID */
};
struct ltt_session {
};
struct ltt_session {
@@
-367,7
+379,7
@@
struct ltt_session {
struct cds_list_head wildcards; /* Wildcard list head */
struct cds_list_head list; /* Session list */
unsigned int free_chan_id; /* Next chan ID to allocate */
struct cds_list_head wildcards; /* Wildcard list head */
struct cds_list_head list; /* Session list */
unsigned int free_chan_id; /* Next chan ID to allocate */
- u
uid_t uuid;
/* Trace session unique ID */
+ u
nsigned char uuid[LTTNG_UST_UUID_LEN];
/* Trace session unique ID */
unsigned int metadata_dumped:1;
};
unsigned int metadata_dumped:1;
};
@@
-401,7
+413,7
@@
struct ltt_channel *ltt_global_channel_create(struct ltt_session *session,
int ltt_event_create(struct ltt_channel *chan,
struct lttng_ust_event *event_param,
int ltt_event_create(struct ltt_channel *chan,
struct lttng_ust_event *event_param,
- void
*filter
,
+ void
(*filter)(struct ltt_event *event)
,
struct ltt_event **event);
int ltt_channel_enable(struct ltt_channel *channel);
struct ltt_event **event);
int ltt_channel_enable(struct ltt_channel *channel);
@@
-433,9
+445,9
@@
int lttng_add_procname_to_ctx(struct lttng_ctx **ctx);
void lttng_context_vtid_reset(void);
void lttng_context_vpid_reset(void);
void lttng_context_vtid_reset(void);
void lttng_context_vpid_reset(void);
-const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_metadata;
-const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_discard;
-const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite;
+
extern
const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_metadata;
+
extern
const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_discard;
+
extern
const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite;
struct ltt_transport *ltt_transport_find(const char *name);
struct ltt_transport *ltt_transport_find(const char *name);
@@
-443,6
+455,10
@@
int ltt_probes_get_event_list(struct lttng_ust_tracepoint_list *list);
void ltt_probes_prune_event_list(struct lttng_ust_tracepoint_list *list);
struct lttng_ust_tracepoint_iter *
lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list);
void ltt_probes_prune_event_list(struct lttng_ust_tracepoint_list *list);
struct lttng_ust_tracepoint_iter *
lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list);
+int ltt_probes_get_field_list(struct lttng_ust_field_list *list);
+void ltt_probes_prune_field_list(struct lttng_ust_field_list *list);
+struct lttng_ust_field_iter *
+ lttng_ust_field_list_get_iter_next(struct lttng_ust_field_list *list);
int ltt_wildcard_enable(struct session_wildcard *wildcard);
int ltt_wildcard_disable(struct session_wildcard *wildcard);
int ltt_wildcard_enable(struct session_wildcard *wildcard);
int ltt_wildcard_disable(struct session_wildcard *wildcard);
This page took
0.024537 seconds
and
4
git commands to generate.