projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter: prepare filter stack data
[lttng-ust.git]
/
include
/
lttng
/
ust-events.h
diff --git
a/include/lttng/ust-events.h
b/include/lttng/ust-events.h
index da7a2299f055ec45ae7cd88c909b581536c65f15..91d5839bfa6c1386ea13f9160207e7c27413be3e 100644
(file)
--- a/
include/lttng/ust-events.h
+++ b/
include/lttng/ust-events.h
@@
-212,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;
@@
-282,6
+282,7
@@
struct lttng_ust_field_list {
};
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
@@
-292,7
+293,8
@@
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;
+ int (*filter)(void *filter_data, const char *filter_stack_data);
+ void *filter_data;
struct lttng_ctx *ctx;
enum lttng_ust_instrumentation instrumentation;
union {
struct lttng_ctx *ctx;
enum lttng_ust_instrumentation instrumentation;
union {
@@
-412,7
+414,9
@@
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,
+ int (*filter)(void *filter_data,
+ const char *filter_stack_data),
+ void *filter_data,
struct ltt_event **event);
int ltt_channel_enable(struct ltt_channel *channel);
struct ltt_event **event);
int ltt_channel_enable(struct ltt_channel *channel);
This page took
0.024187 seconds
and
4
git commands to generate.