projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
conditions
/
event-rule-matches.cpp
diff --git
a/src/common/conditions/event-rule-matches.cpp
b/src/common/conditions/event-rule-matches.cpp
index 3e7776f46cbd5d5449cfed4af2482a7d83031bdc..0a926755ecee1eef537805e89604ed8810c38f08 100644
(file)
--- a/
src/common/conditions/event-rule-matches.cpp
+++ b/
src/common/conditions/event-rule-matches.cpp
@@
-5,18
+5,18
@@
*
*/
*
*/
-#include <common/error.h>
-#include <common/macros.h>
-#include <common/mi-lttng.h>
+#include <common/error.h
pp
>
+#include <common/macros.h
pp
>
+#include <common/mi-lttng.h
pp
>
#include <inttypes.h>
#include <limits.h>
#include <inttypes.h>
#include <limits.h>
-#include <lttng/condition/condition-internal.h>
-#include <lttng/condition/event-rule-matches-internal.h>
+#include <lttng/condition/condition-internal.h
pp
>
+#include <lttng/condition/event-rule-matches-internal.h
pp
>
#include <lttng/condition/event-rule-matches.h>
#include <lttng/condition/event-rule-matches.h>
-#include <lttng/event-expr-internal.h>
+#include <lttng/event-expr-internal.h
pp
>
#include <lttng/event-expr.h>
#include <lttng/event-expr.h>
-#include <lttng/event-field-value-internal.h>
-#include <lttng/event-rule/event-rule-internal.h>
+#include <lttng/event-field-value-internal.h
pp
>
+#include <lttng/event-rule/event-rule-internal.h
pp
>
#include <lttng/lttng-error.h>
#include <stdbool.h>
#include <stdint.h>
#include <lttng/lttng-error.h>
#include <stdbool.h>
#include <stdint.h>
@@
-518,7
+518,7
@@
struct lttng_condition *lttng_condition_event_rule_matches_create(
goto end;
}
goto end;
}
- condition =
(lttng_condition_event_rule_matches *) zmalloc(sizeof(struct lttng_condition_event_rule_matches)
);
+ condition =
zmalloc<lttng_condition_event_rule_matches>(
);
if (!condition) {
return NULL;
}
if (!condition) {
return NULL;
}
@@
-889,7
+889,7
@@
lttng_condition_event_rule_matches_append_capture_descriptor(
goto end;
}
goto end;
}
- descriptor =
(lttng_capture_descriptor *) malloc(sizeof(*descriptor)
);
+ descriptor =
malloc<lttng_capture_descriptor>(
);
if (descriptor == NULL) {
status = LTTNG_CONDITION_STATUS_ERROR;
goto end;
if (descriptor == NULL) {
status = LTTNG_CONDITION_STATUS_ERROR;
goto end;
@@
-1385,7
+1385,7
@@
struct lttng_evaluation *lttng_evaluation_event_rule_matches_create(
struct lttng_evaluation_event_rule_matches *hit;
struct lttng_evaluation *evaluation = NULL;
struct lttng_evaluation_event_rule_matches *hit;
struct lttng_evaluation *evaluation = NULL;
- hit =
(lttng_evaluation_event_rule_matches *) zmalloc(sizeof(struct lttng_evaluation_event_rule_matches)
);
+ hit =
zmalloc<lttng_evaluation_event_rule_matches>(
);
if (!hit) {
goto error;
}
if (!hit) {
goto error;
}
This page took
0.025219 seconds
and
4
git commands to generate.