projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin: compile lttng as C++
[lttng-tools.git]
/
src
/
common
/
evaluation.c
diff --git
a/src/common/evaluation.c
b/src/common/evaluation.c
index 15e4f11ee3d6f53b2e4389fc834d619c7c5453c1..6b3e634947253812329f099770d2345f999622b1 100644
(file)
--- a/
src/common/evaluation.c
+++ b/
src/common/evaluation.c
@@
-14,16
+14,13
@@
#include <common/macros.h>
#include <common/error.h>
#include <stdbool.h>
#include <common/macros.h>
#include <common/error.h>
#include <stdbool.h>
-#include <assert.h>
-LTTNG_HIDDEN
void lttng_evaluation_init(struct lttng_evaluation *evaluation,
enum lttng_condition_type type)
{
evaluation->type = type;
}
void lttng_evaluation_init(struct lttng_evaluation *evaluation,
enum lttng_condition_type type)
{
evaluation->type = type;
}
-LTTNG_HIDDEN
int lttng_evaluation_serialize(const struct lttng_evaluation *evaluation,
struct lttng_payload *payload)
{
int lttng_evaluation_serialize(const struct lttng_evaluation *evaluation,
struct lttng_payload *payload)
{
@@
-48,7
+45,6
@@
end:
return ret;
}
return ret;
}
-LTTNG_HIDDEN
ssize_t lttng_evaluation_create_from_payload(
const struct lttng_condition *condition,
struct lttng_payload_view *src_view,
ssize_t lttng_evaluation_create_from_payload(
const struct lttng_condition *condition,
struct lttng_payload_view *src_view,
@@
-118,8
+114,8
@@
ssize_t lttng_evaluation_create_from_payload(
evaluation_size += ret;
break;
case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES:
evaluation_size += ret;
break;
case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES:
-
assert
(condition);
-
assert
(condition->type ==
+
LTTNG_ASSERT
(condition);
+
LTTNG_ASSERT
(condition->type ==
LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES);
ret = lttng_evaluation_event_rule_matches_create_from_payload(
container_of(condition,
LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES);
ret = lttng_evaluation_event_rule_matches_create_from_payload(
container_of(condition,
@@
-155,6
+151,6
@@
void lttng_evaluation_destroy(struct lttng_evaluation *evaluation)
return;
}
return;
}
-
assert
(evaluation->destroy);
+
LTTNG_ASSERT
(evaluation->destroy);
evaluation->destroy(evaluation);
}
evaluation->destroy(evaluation);
}
This page took
0.024913 seconds
and
4
git commands to generate.