projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng: destroy: ensure a cmd_error_code is returned by the command
[lttng-tools.git]
/
src
/
common
/
event-rule
/
user-tracepoint.cpp
diff --git
a/src/common/event-rule/user-tracepoint.cpp
b/src/common/event-rule/user-tracepoint.cpp
index 55b1c2505c9fb76ace05fa3df06ded60facd3354..e892b0ce89cf4d2c3274f2785226d76bd77e5431 100644
(file)
--- a/
src/common/event-rule/user-tracepoint.cpp
+++ b/
src/common/event-rule/user-tracepoint.cpp
@@
-149,6
+149,7
@@
static int lttng_event_rule_user_tracepoint_serialize(const struct lttng_event_r
for (i = 0; i < exclusion_count; i++) {
size_t len;
for (i = 0; i < exclusion_count; i++) {
size_t len;
+ uint32_t serialized_len;
const char *exclusion;
status = lttng_event_rule_user_tracepoint_get_name_pattern_exclusion_at_index(
const char *exclusion;
status = lttng_event_rule_user_tracepoint_get_name_pattern_exclusion_at_index(
@@
-156,8
+157,11
@@
static int lttng_event_rule_user_tracepoint_serialize(const struct lttng_event_r
LTTNG_ASSERT(status == LTTNG_EVENT_RULE_STATUS_OK);
len = strlen(exclusion) + 1;
LTTNG_ASSERT(status == LTTNG_EVENT_RULE_STATUS_OK);
len = strlen(exclusion) + 1;
+
+ serialized_len = len;
/* Append exclusion length, includes the null terminator. */
/* Append exclusion length, includes the null terminator. */
- ret = lttng_dynamic_buffer_append(&payload->buffer, &len, sizeof(uint32_t));
+ ret = lttng_dynamic_buffer_append(
+ &payload->buffer, &serialized_len, sizeof(serialized_len));
if (ret) {
goto end;
}
if (ret) {
goto end;
}
This page took
0.02294 seconds
and
4
git commands to generate.