X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-events.c;h=4bacbb951e7405cbd03ff849ba48614fb3d0c985;hb=b2e37d27accf5e32128b82392dbe1a9522c7dc20;hp=33737e4d33089ff192c99c29e4c1328b018e51ad;hpb=34f7f1421e4869381acf65d59cb1abb37df440df;p=lttng-ust.git diff --git a/src/lib/lttng-ust/lttng-events.c b/src/lib/lttng-ust/lttng-events.c index 33737e4d..4bacbb95 100644 --- a/src/lib/lttng-ust/lttng-events.c +++ b/src/lib/lttng-ust/lttng-events.c @@ -120,23 +120,23 @@ int lttng_loglevel_match(int loglevel, int req_loglevel) { if (!has_loglevel) - loglevel = TRACE_DEFAULT; + loglevel = LTTNG_UST_TRACEPOINT_LOGLEVEL_DEFAULT; switch (req_type) { case LTTNG_UST_ABI_LOGLEVEL_RANGE: if (loglevel <= req_loglevel - || (req_loglevel == -1 && loglevel <= TRACE_DEBUG)) + || (req_loglevel == -1 && loglevel <= LTTNG_UST_TRACEPOINT_LOGLEVEL_DEBUG)) return 1; else return 0; case LTTNG_UST_ABI_LOGLEVEL_SINGLE: if (loglevel == req_loglevel - || (req_loglevel == -1 && loglevel <= TRACE_DEBUG)) + || (req_loglevel == -1 && loglevel <= LTTNG_UST_TRACEPOINT_LOGLEVEL_DEBUG)) return 1; else return 0; case LTTNG_UST_ABI_LOGLEVEL_ALL: default: - if (loglevel <= TRACE_DEBUG) + if (loglevel <= LTTNG_UST_TRACEPOINT_LOGLEVEL_DEBUG) return 1; else return 0; @@ -779,7 +779,7 @@ int lttng_event_recorder_create(const struct lttng_ust_event_desc *desc, if (desc->loglevel) loglevel = *(*desc->loglevel); else - loglevel = TRACE_DEFAULT; + loglevel = LTTNG_UST_TRACEPOINT_LOGLEVEL_DEFAULT; if (desc->model_emf_uri) uri = *(desc->model_emf_uri); else @@ -1997,10 +1997,13 @@ void lttng_session_lazy_sync_event_enablers(struct lttng_ust_session *session) * context (either app context callbacks, or dummy callbacks). */ void lttng_ust_context_set_session_provider(const char *name, - size_t (*get_size)(void *priv, size_t offset), - void (*record)(void *priv, struct lttng_ust_ring_buffer_ctx *ctx, + size_t (*get_size)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + size_t offset), + void (*record)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + struct lttng_ust_ring_buffer_ctx *ctx, struct lttng_ust_channel_buffer *chan), - void (*get_value)(void *priv, struct lttng_ust_ctx_value *value), + void (*get_value)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + struct lttng_ust_ctx_value *value), void *priv) { struct lttng_ust_session_private *session_priv; @@ -2037,10 +2040,13 @@ 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, - size_t (*get_size)(void *priv, size_t offset), - void (*record)(void *priv, struct lttng_ust_ring_buffer_ctx *ctx, + size_t (*get_size)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + size_t offset), + void (*record)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + struct lttng_ust_ring_buffer_ctx *ctx, struct lttng_ust_channel_buffer *chan), - void (*get_value)(void *priv, struct lttng_ust_ctx_value *value), + void (*get_value)(void *priv, struct lttng_ust_probe_ctx *probe_ctx, + struct lttng_ust_ctx_value *value), void *priv) { struct lttng_event_notifier_group *event_notifier_group;