projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
src
/
common
/
event-rule
/
kernel-kprobe.c
diff --git
a/src/common/event-rule/kernel-kprobe.c
b/src/common/event-rule/kernel-kprobe.c
index 0b78786308b1da9cf39fdca033c17e7742802ec3..2819f2d2b50107f57bcac3dc7525146addf3a43d 100644
(file)
--- a/
src/common/event-rule/kernel-kprobe.c
+++ b/
src/common/event-rule/kernel-kprobe.c
@@
-5,7
+5,6
@@
*
*/
*
*/
-#include <assert.h>
#include <common/credentials.h>
#include <common/error.h>
#include <common/hashtable/hashtable.h>
#include <common/credentials.h>
#include <common/error.h>
#include <common/hashtable/hashtable.h>
@@
-138,8
+137,8
@@
static bool lttng_event_rule_kernel_kprobe_is_equal(const struct lttng_event_rul
}
/* Long check */
}
/* Long check */
-
assert
(a->name);
-
assert
(b->name);
+
LTTNG_ASSERT
(a->name);
+
LTTNG_ASSERT
(b->name);
if (strcmp(a->name, b->name)) {
goto end;
}
if (strcmp(a->name, b->name)) {
goto end;
}
@@
-234,18
+233,18
@@
enum lttng_error_code lttng_event_rule_kernel_kprobe_mi_serialize(
const char *event_name = NULL;
const struct lttng_kernel_probe_location *location = NULL;
const char *event_name = NULL;
const struct lttng_kernel_probe_location *location = NULL;
-
assert
(rule);
-
assert
(writer);
-
assert
(IS_KPROBE_EVENT_RULE(rule));
+
LTTNG_ASSERT
(rule);
+
LTTNG_ASSERT
(writer);
+
LTTNG_ASSERT
(IS_KPROBE_EVENT_RULE(rule));
status = lttng_event_rule_kernel_kprobe_get_event_name(
rule, &event_name);
status = lttng_event_rule_kernel_kprobe_get_event_name(
rule, &event_name);
-
assert
(status == LTTNG_EVENT_RULE_STATUS_OK);
-
assert
(event_name);
+
LTTNG_ASSERT
(status == LTTNG_EVENT_RULE_STATUS_OK);
+
LTTNG_ASSERT
(event_name);
status = lttng_event_rule_kernel_kprobe_get_location(rule, &location);
status = lttng_event_rule_kernel_kprobe_get_location(rule, &location);
-
assert
(status == LTTNG_EVENT_RULE_STATUS_OK);
-
assert
(location);
+
LTTNG_ASSERT
(status == LTTNG_EVENT_RULE_STATUS_OK);
+
LTTNG_ASSERT
(location);
/* Open event rule kernel kprobe element. */
ret = mi_lttng_writer_open_element(
/* Open event rule kernel kprobe element. */
ret = mi_lttng_writer_open_element(
This page took
0.025956 seconds
and
4
git commands to generate.