projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate capture bytecode on trigger reception
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
client.c
diff --git
a/src/bin/lttng-sessiond/client.c
b/src/bin/lttng-sessiond/client.c
index c0086953a8e06bb1bb4405e3f0b3ba0954a407b4..d752fb94efe9b02bbdaffb2f71c6a1463ac196e0 100644
(file)
--- a/
src/bin/lttng-sessiond/client.c
+++ b/
src/bin/lttng-sessiond/client.c
@@
-705,7
+705,7
@@
static enum lttng_error_code receive_lttng_trigger(struct command_ctx *cmd_ctx,
ssize_t sock_recv_len;
enum lttng_error_code ret_code;
struct lttng_payload trigger_payload;
ssize_t sock_recv_len;
enum lttng_error_code ret_code;
struct lttng_payload trigger_payload;
- struct lttng_trigger *trigger;
+ struct lttng_trigger *trigger
= NULL
;
lttng_payload_init(&trigger_payload);
trigger_len = (size_t) cmd_ctx->lsm.u.trigger.length;
lttng_payload_init(&trigger_payload);
trigger_len = (size_t) cmd_ctx->lsm.u.trigger.length;
@@
-755,6
+755,7
@@
static enum lttng_error_code receive_lttng_trigger(struct command_ctx *cmd_ctx,
trigger_len) {
ERR("Invalid trigger received as part of command payload");
ret_code = LTTNG_ERR_INVALID_TRIGGER;
trigger_len) {
ERR("Invalid trigger received as part of command payload");
ret_code = LTTNG_ERR_INVALID_TRIGGER;
+ lttng_trigger_put(trigger);
goto end;
}
}
goto end;
}
}
@@
-1555,7
+1556,7
@@
error_add_context:
{
struct lttng_event *ev = NULL;
struct lttng_event_exclusion *exclusion = NULL;
{
struct lttng_event *ev = NULL;
struct lttng_event_exclusion *exclusion = NULL;
- struct lttng_
filter_
bytecode *bytecode = NULL;
+ struct lttng_bytecode *bytecode = NULL;
char *filter_expression = NULL;
/* Handle exclusion events and receive it from the client. */
char *filter_expression = NULL;
/* Handle exclusion events and receive it from the client. */
This page took
0.023638 seconds
and
4
git commands to generate.