projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix C99 strict compatibility: don't use void * for function pointers
[lttng-ust.git]
/
include
/
lttng
/
ust-events.h
diff --git
a/include/lttng/ust-events.h
b/include/lttng/ust-events.h
index 5e7821b5b85824755f8c535900d1213c049f9f17..bf00f062482b154695e2579f7c0538537e55854c 100644
(file)
--- a/
include/lttng/ust-events.h
+++ b/
include/lttng/ust-events.h
@@
-211,7
+211,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;
@@
-271,6
+271,7
@@
struct lttng_ust_tracepoint_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
@@
-281,7
+282,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 {
@@
-401,7
+402,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);
This page took
0.024671 seconds
and
4
git commands to generate.