projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namepace struct lttng_session with lttng_ust_ prefix
[lttng-ust.git]
/
liblttng-ust
/
lttng-events.c
diff --git
a/liblttng-ust/lttng-events.c
b/liblttng-ust/lttng-events.c
index ad71efefb65d4e051fbde78072958e5d68ba53ca..de4d97d10eee4fa332852829eada19ab5d5c4902 100644
(file)
--- a/
liblttng-ust/lttng-events.c
+++ b/
liblttng-ust/lttng-events.c
@@
-74,9
+74,9
@@
static void _lttng_event_destroy(struct lttng_ust_event_common *event);
static void _lttng_enum_destroy(struct lttng_enum *_enum);
static
static void _lttng_enum_destroy(struct lttng_enum *_enum);
static
-void lttng_session_lazy_sync_event_enablers(struct lttng_session *session);
+void lttng_session_lazy_sync_event_enablers(struct lttng_
ust_
session *session);
static
static
-void lttng_session_sync_event_enablers(struct lttng_session *session);
+void lttng_session_sync_event_enablers(struct lttng_
ust_
session *session);
static
void lttng_event_notifier_group_sync_enablers(
struct lttng_event_notifier_group *event_notifier_group);
static
void lttng_event_notifier_group_sync_enablers(
struct lttng_event_notifier_group *event_notifier_group);
@@
-127,16
+127,16
@@
int lttng_loglevel_match(int loglevel,
}
}
}
}
-struct lttng_session *lttng_session_create(void)
+struct lttng_
ust_
session *lttng_session_create(void)
{
{
- struct lttng_session *session;
+ struct lttng_
ust_
session *session;
struct lttng_ust_session_private *session_priv;
int i;
struct lttng_ust_session_private *session_priv;
int i;
- session = zmalloc(sizeof(struct lttng_session));
+ session = zmalloc(sizeof(struct lttng_
ust_
session));
if (!session)
return NULL;
if (!session)
return NULL;
- session->struct_size = sizeof(struct lttng_session);
+ session->struct_size = sizeof(struct lttng_
ust_
session);
session_priv = zmalloc(sizeof(struct lttng_ust_session_private));
if (!session_priv) {
free(session);
session_priv = zmalloc(sizeof(struct lttng_ust_session_private));
if (!session_priv) {
free(session);
@@
-232,7
+232,7
@@
struct lttng_event_notifier_group *lttng_event_notifier_group_create(void)
static
void _lttng_channel_unmap(struct lttng_channel *lttng_chan)
{
static
void _lttng_channel_unmap(struct lttng_channel *lttng_chan)
{
- struct channel *chan;
+ struct
lttng_ust_lib_ring_buffer_
channel *chan;
struct lttng_ust_shm_handle *handle;
cds_list_del(<tng_chan->node);
struct lttng_ust_shm_handle *handle;
cds_list_del(<tng_chan->node);
@@
-285,7
+285,7
@@
void _lttng_event_unregister(struct lttng_ust_event_common *event)
unregister_event(event);
}
unregister_event(event);
}
-void lttng_session_destroy(struct lttng_session *session)
+void lttng_session_destroy(struct lttng_
ust_
session *session)
{
struct lttng_channel *chan, *tmpchan;
struct lttng_ust_event_recorder_private *event_recorder_priv, *tmpevent_recorder_priv;
{
struct lttng_channel *chan, *tmpchan;
struct lttng_ust_event_recorder_private *event_recorder_priv, *tmpevent_recorder_priv;
@@
-399,7
+399,7
@@
void lttng_enabler_destroy(struct lttng_enabler *enabler)
static
int lttng_enum_create(const struct lttng_ust_enum_desc *desc,
static
int lttng_enum_create(const struct lttng_ust_enum_desc *desc,
- struct lttng_session *session)
+ struct lttng_
ust_
session *session)
{
const char *enum_name = desc->name;
struct lttng_enum *_enum;
{
const char *enum_name = desc->name;
struct lttng_enum *_enum;
@@
-457,7
+457,7
@@
exist:
static
int lttng_create_enum_check(const struct lttng_type *type,
static
int lttng_create_enum_check(const struct lttng_type *type,
- struct lttng_session *session)
+ struct lttng_
ust_
session *session)
{
switch (type->atype) {
case atype_enum_nestable:
{
switch (type->atype) {
case atype_enum_nestable:
@@
-498,7
+498,7
@@
int lttng_create_enum_check(const struct lttng_type *type,
static
int lttng_create_all_event_enums(size_t nr_fields,
const struct lttng_ust_event_field **event_fields,
static
int lttng_create_all_event_enums(size_t nr_fields,
const struct lttng_ust_event_field **event_fields,
- struct lttng_session *session)
+ struct lttng_
ust_
session *session)
{
size_t i;
int ret;
{
size_t i;
int ret;
@@
-516,15
+516,15
@@
int lttng_create_all_event_enums(size_t nr_fields,
static
int lttng_create_all_ctx_enums(size_t nr_fields,
static
int lttng_create_all_ctx_enums(size_t nr_fields,
-
const struct lttng_ctx_field
*ctx_fields,
- struct lttng_session *session)
+
struct lttng_ust_ctx_field *
*ctx_fields,
+ struct lttng_
ust_
session *session)
{
size_t i;
int ret;
/* For each field, ensure enum is part of the session. */
for (i = 0; i < nr_fields; i++) {
{
size_t i;
int ret;
/* For each field, ensure enum is part of the session. */
for (i = 0; i < nr_fields; i++) {
- const struct lttng_type *type = &ctx_fields[i]
.event_field.
type;
+ const struct lttng_type *type = &ctx_fields[i]
->event_field->
type;
ret = lttng_create_enum_check(type, session);
if (ret)
ret = lttng_create_enum_check(type, session);
if (ret)
@@
-537,14
+537,14
@@
int lttng_create_all_ctx_enums(size_t nr_fields,
* Ensure that a state-dump will be performed for this session at the end
* of the current handle_message().
*/
* Ensure that a state-dump will be performed for this session at the end
* of the current handle_message().
*/
-int lttng_session_statedump(struct lttng_session *session)
+int lttng_session_statedump(struct lttng_
ust_
session *session)
{
session->priv->statedump_pending = 1;
lttng_ust_sockinfo_session_enabled(session->priv->owner);
return 0;
}
{
session->priv->statedump_pending = 1;
lttng_ust_sockinfo_session_enabled(session->priv->owner);
return 0;
}
-int lttng_session_enable(struct lttng_session *session)
+int lttng_session_enable(struct lttng_
ust_
session *session)
{
int ret = 0;
struct lttng_channel *chan;
{
int ret = 0;
struct lttng_channel *chan;
@@
-570,8
+570,8
@@
int lttng_session_enable(struct lttng_session *session)
* we need to use.
*/
cds_list_for_each_entry(chan, &session->priv->chan_head, node) {
* we need to use.
*/
cds_list_for_each_entry(chan, &session->priv->chan_head, node) {
- const struct lttng_ctx *ctx;
-
const struct lttng_ctx_field
*fields = NULL;
+ const struct lttng_
ust_
ctx *ctx;
+
struct lttng_ust_ctx_field *
*fields = NULL;
size_t nr_fields = 0;
uint32_t chan_id;
size_t nr_fields = 0;
uint32_t chan_id;
@@
-619,7
+619,7
@@
end:
return ret;
}
return ret;
}
-int lttng_session_disable(struct lttng_session *session)
+int lttng_session_disable(struct lttng_
ust_
session *session)
{
int ret = 0;
{
int ret = 0;
@@
-697,7
+697,7
@@
int lttng_event_recorder_create(const struct lttng_ust_event_desc *desc,
{
struct lttng_ust_event_recorder *event_recorder;
struct lttng_ust_event_recorder_private *event_recorder_priv;
{
struct lttng_ust_event_recorder *event_recorder;
struct lttng_ust_event_recorder_private *event_recorder_priv;
- struct lttng_session *session = chan->session;
+ struct lttng_
ust_
session *session = chan->session;
struct cds_hlist_head *head;
int ret = 0;
int notify_socket, loglevel;
struct cds_hlist_head *head;
int ret = 0;
int notify_socket, loglevel;
@@
-1004,7
+1004,7
@@
struct lttng_enabler_ref *lttng_enabler_ref(
static
void lttng_create_event_recorder_if_missing(struct lttng_event_enabler *event_enabler)
{
static
void lttng_create_event_recorder_if_missing(struct lttng_event_enabler *event_enabler)
{
- struct lttng_session *session = event_enabler->chan->session;
+ struct lttng_
ust_
session *session = event_enabler->chan->session;
struct lttng_ust_probe_desc *probe_desc;
const struct lttng_ust_event_desc *desc;
struct lttng_ust_event_recorder_private *event_recorder_priv;
struct lttng_ust_probe_desc *probe_desc;
const struct lttng_ust_event_desc *desc;
struct lttng_ust_event_recorder_private *event_recorder_priv;
@@
-1135,7
+1135,7
@@
void _event_enum_destroy(struct lttng_ust_event_common *event)
case LTTNG_UST_EVENT_TYPE_RECORDER:
{
struct lttng_ust_event_recorder *event_recorder = event->child;
case LTTNG_UST_EVENT_TYPE_RECORDER:
{
struct lttng_ust_event_recorder *event_recorder = event->child;
- struct lttng_session *session = event_recorder->chan->session;
+ struct lttng_
ust_
session *session = event_recorder->chan->session;
unsigned int i;
/* Destroy enums of the current event. */
unsigned int i;
/* Destroy enums of the current event. */
@@
-1202,7
+1202,7
@@
void lttng_probe_provider_unregister_events(
static
int lttng_event_enabler_ref_event_recorders(struct lttng_event_enabler *event_enabler)
{
static
int lttng_event_enabler_ref_event_recorders(struct lttng_event_enabler *event_enabler)
{
- struct lttng_session *session = event_enabler->chan->session;
+ struct lttng_
ust_
session *session = event_enabler->chan->session;
struct lttng_ust_event_recorder_private *event_recorder_priv;
if (!lttng_event_enabler_as_enabler(event_enabler)->enabled)
struct lttng_ust_event_recorder_private *event_recorder_priv;
if (!lttng_event_enabler_as_enabler(event_enabler)->enabled)
@@
-1546,7
+1546,7
@@
int lttng_event_notifier_enabler_attach_exclusion(
int lttng_attach_context(struct lttng_ust_abi_context *context_param,
union lttng_ust_abi_args *uargs,
int lttng_attach_context(struct lttng_ust_abi_context *context_param,
union lttng_ust_abi_args *uargs,
- struct lttng_
ctx **ctx, struct lttng
_session *session)
+ struct lttng_
ust_ctx **ctx, struct lttng_ust
_session *session)
{
/*
* We cannot attach a context after trace has been started for a
{
/*
* We cannot attach a context after trace has been started for a
@@
-1640,7
+1640,7
@@
void lttng_event_enabler_destroy(struct lttng_event_enabler *event_enabler)
* session.
*/
static
* session.
*/
static
-void lttng_session_sync_event_enablers(struct lttng_session *session)
+void lttng_session_sync_event_enablers(struct lttng_
ust_
session *session)
{
struct lttng_event_enabler *event_enabler;
struct lttng_ust_event_recorder_private *event_recorder_priv;
{
struct lttng_event_enabler *event_enabler;
struct lttng_ust_event_recorder_private *event_recorder_priv;
@@
-1931,7
+1931,7
@@
void lttng_event_notifier_group_sync_enablers(struct lttng_event_notifier_group
* "lazy" sync means we only sync if required.
*/
static
* "lazy" sync means we only sync if required.
*/
static
-void lttng_session_lazy_sync_event_enablers(struct lttng_session *session)
+void lttng_session_lazy_sync_event_enablers(struct lttng_
ust_
session *session)
{
/* We can skip if session is not active */
if (!session->active)
{
/* We can skip if session is not active */
if (!session->active)
@@
-1947,12
+1947,12
@@
void lttng_session_lazy_sync_event_enablers(struct lttng_session *session)
* context (either app context callbacks, or dummy callbacks).
*/
void lttng_ust_context_set_session_provider(const char *name,
* context (either app context callbacks, or dummy callbacks).
*/
void lttng_ust_context_set_session_provider(const char *name,
- size_t (*get_size)(struct lttng_ctx_field *field, size_t offset),
- void (*record)(struct lttng_ctx_field *field,
+ size_t (*get_size)(struct lttng_
ust_
ctx_field *field, size_t offset),
+ void (*record)(struct lttng_
ust_
ctx_field *field,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan),
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan),
- void (*get_value)(struct lttng_ctx_field *field,
- struct lttng_ctx_value *value))
+ void (*get_value)(struct lttng_
ust_
ctx_field *field,
+ struct lttng_
ust_
ctx_value *value))
{
struct lttng_ust_session_private *session_priv;
{
struct lttng_ust_session_private *session_priv;
@@
-1988,12
+1988,12
@@
void lttng_ust_context_set_session_provider(const char *name,
* context (either app context callbacks, or dummy callbacks).
*/
void lttng_ust_context_set_event_notifier_group_provider(const char *name,
* context (either app context callbacks, or dummy callbacks).
*/
void lttng_ust_context_set_event_notifier_group_provider(const char *name,
- size_t (*get_size)(struct lttng_ctx_field *field, size_t offset),
- void (*record)(struct lttng_ctx_field *field,
+ size_t (*get_size)(struct lttng_
ust_
ctx_field *field, size_t offset),
+ void (*record)(struct lttng_
ust_
ctx_field *field,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan),
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan),
- void (*get_value)(struct lttng_ctx_field *field,
- struct lttng_ctx_value *value))
+ void (*get_value)(struct lttng_
ust_
ctx_field *field,
+ struct lttng_
ust_
ctx_value *value))
{
struct lttng_event_notifier_group *event_notifier_group;
{
struct lttng_event_notifier_group *event_notifier_group;
This page took
0.027503 seconds
and
4
git commands to generate.