X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-events.h;h=1a5b5d5cf6c196252458ae18ec65d8fb57637baf;hb=9e7e489272e646b39c51e3074de800e928bb5cec;hp=4179fb7c6720e7107f78d2d492f393d8fbc00227;hpb=271b66812595fb4be4ce1cb2b8277d97b13d795e;p=lttng-modules.git diff --git a/ltt-events.h b/ltt-events.h index 4179fb7c..1a5b5d5c 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -14,6 +14,9 @@ #include #include "ltt-debugfs-abi.h" +#undef is_signed_type +#define is_signed_type(type) (((type)(-1)) < 0) + struct ltt_channel; struct ltt_session; struct lib_ring_buffer_ctx; @@ -125,6 +128,7 @@ struct lttng_ctx_field { struct perf_event_attr *attr; } perf_counter; } u; + void (*destroy)(struct lttng_ctx_field *field); }; struct lttng_ctx { @@ -261,6 +265,8 @@ const struct lttng_event_desc *ltt_event_get(const char *name); void ltt_event_put(const struct lttng_event_desc *desc); int ltt_probes_init(void); void ltt_probes_exit(void); +struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx); +void lttng_destroy_context(struct lttng_ctx *ctx); #ifdef CONFIG_KPROBES int lttng_kprobes_register(const char *name, @@ -269,6 +275,7 @@ int lttng_kprobes_register(const char *name, uint64_t addr, struct ltt_event *event); void lttng_kprobes_unregister(struct ltt_event *event); +void lttng_kprobes_destroy_private(struct ltt_event *event); #else static inline int lttng_kprobes_register(const char *name, @@ -284,6 +291,11 @@ static inline void lttng_kprobes_unregister(struct ltt_event *event) { } + +static inline +void lttng_kprobes_destroy_private(struct ltt_event *event) +{ +} #endif #ifdef CONFIG_DYNAMIC_FTRACE @@ -291,6 +303,7 @@ int lttng_ftrace_register(const char *name, const char *symbol_name, struct ltt_event *event); void lttng_ftrace_unregister(struct ltt_event *event); +void lttng_ftrace_destroy_private(struct ltt_event *event); #else static inline int lttng_ftrace_register(const char *name, @@ -304,6 +317,11 @@ static inline void lttng_ftrace_unregister(struct ltt_event *event) { } + +static inline +void lttng_ftrace_destroy_private(struct ltt_event *event) +{ +} #endif extern const struct file_operations lttng_tracepoint_list_fops;