projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint loglevel: setup all loglevel information at build time
[lttng-ust.git]
/
include
/
lttng
/
ust-events.h
diff --git
a/include/lttng/ust-events.h
b/include/lttng/ust-events.h
index 0ccef46ab33fa8769c0b3fd09424bfd81c4187a0..6b4863fd494540b921c6158544b94a8d3ebf3929 100644
(file)
--- a/
include/lttng/ust-events.h
+++ b/
include/lttng/ust-events.h
@@
-183,19
+183,32
@@
struct lttng_ctx {
unsigned int allocated_fields;
};
unsigned int allocated_fields;
};
+struct tracepoint_loglevel_entry {
+ const char *identifier;
+ long value;
+};
+
struct lttng_event_desc {
const char *name;
void *probe_callback;
const struct lttng_event_ctx *ctx; /* context */
const struct lttng_event_field *fields; /* event payload */
unsigned int nr_fields;
struct lttng_event_desc {
const char *name;
void *probe_callback;
const struct lttng_event_ctx *ctx; /* context */
const struct lttng_event_field *fields; /* event payload */
unsigned int nr_fields;
+ const struct tracepoint_loglevel_entry **loglevel;
};
struct lttng_probe_desc {
};
struct lttng_probe_desc {
- const struct lttng_event_desc *event_desc;
+ const char *provider;
+ const struct lttng_event_desc **event_desc;
unsigned int nr_events;
unsigned int nr_events;
+ const struct tracepoint_loglevel_entry **loglevels;
+ unsigned int nr_loglevels;
struct cds_list_head head; /* chain registered probes */
struct cds_list_head head; /* chain registered probes */
- struct tracepoint_loglevel *loglevels;
+};
+
+struct tp_loglevel_iter {
+ struct lttng_probe_desc *desc;
+ const struct tracepoint_loglevel_entry *loglevel;
};
struct ust_pending_probe;
};
struct ust_pending_probe;
@@
-303,17
+316,6
@@
struct ltt_transport {
struct ltt_channel_ops ops;
};
struct ltt_channel_ops ops;
};
-struct tracepoint_loglevel_enum_entry {
- const char *identifier;
- long value;
-};
-
-/* mapping between tracepoint and loglevel */
-struct tracepoint_loglevel {
- const char *name;
- const struct tracepoint_loglevel_enum_entry *loglevel;
-};
-
struct ltt_session *ltt_session_create(void);
int ltt_session_enable(struct ltt_session *session);
int ltt_session_disable(struct ltt_session *session);
struct ltt_session *ltt_session_create(void);
int ltt_session_enable(struct ltt_session *session);
int ltt_session_disable(struct ltt_session *session);
This page took
0.024494 seconds
and
4
git commands to generate.