Force usage of assert() condition when NDEBUG is defined
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 20 Aug 2021 19:26:01 +0000 (15:26 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Sep 2021 18:46:54 +0000 (14:46 -0400)
commita0377dfefe40662ba7d68617bce6ff467114136c
tree193da33147005f405372605c5100cb74797a6f86
parentcc3b9644f017a91d347d7a414387292e3175635e
Force usage of assert() condition when NDEBUG is defined

Reuse the BT2 approach to force the usage of the assertion condition
even when assert() are removed by the NDEBUG define.

See `BT_USE_EXPR()` macro and documentation in Babeltrace commit[0]:
  commit 1778c2a4134647150b199b2b57130817144446b0
  Author: Philippe Proulx <eeppeliteloop@gmail.com>
  Date:   Tue Apr 21 11:15:42 2020 -0400
  lib: assign a unique ID to each pre/postcond. and report it on failure

0: https://github.com/efficios/babeltrace/commit/1778c2a4134647150b199b2b57130817144446b0

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I3844b6ae7e95952d90033898397ac936540b785c
224 files changed:
doc/examples/trigger-condition-event-matches/notification-client.c
include/lttng/event-expr-internal.h
include/lttng/event-field-value-internal.h
include/lttng/health-internal.h
include/lttng/ref-internal.h
src/bin/lttng-consumerd/health-consumerd.c
src/bin/lttng-consumerd/lttng-consumerd.c
src/bin/lttng-relayd/backward-compatibility-group-by.c
src/bin/lttng-relayd/cmd-2-1.c
src/bin/lttng-relayd/cmd-2-11.c
src/bin/lttng-relayd/cmd-2-2.c
src/bin/lttng-relayd/cmd-2-4.c
src/bin/lttng-relayd/connection.c
src/bin/lttng-relayd/ctf-trace.c
src/bin/lttng-relayd/health-relayd.c
src/bin/lttng-relayd/index.c
src/bin/lttng-relayd/live.c
src/bin/lttng-relayd/main.c
src/bin/lttng-relayd/session.c
src/bin/lttng-relayd/sessiond-trace-chunks.c
src/bin/lttng-relayd/stream.c
src/bin/lttng-relayd/tracefile-array.c
src/bin/lttng-relayd/utils.c
src/bin/lttng-relayd/viewer-session.c
src/bin/lttng-relayd/viewer-stream.c
src/bin/lttng-sessiond/action-executor.c
src/bin/lttng-sessiond/agent-thread.c
src/bin/lttng-sessiond/agent.c
src/bin/lttng-sessiond/buffer-registry.c
src/bin/lttng-sessiond/channel.c
src/bin/lttng-sessiond/clear.c
src/bin/lttng-sessiond/client.c
src/bin/lttng-sessiond/cmd.c
src/bin/lttng-sessiond/condition-internal.c
src/bin/lttng-sessiond/consumer.c
src/bin/lttng-sessiond/context.c
src/bin/lttng-sessiond/dispatch.c
src/bin/lttng-sessiond/event-notifier-error-accounting.c
src/bin/lttng-sessiond/event.c
src/bin/lttng-sessiond/ht-cleanup.c
src/bin/lttng-sessiond/kernel-consumer.c
src/bin/lttng-sessiond/kernel.c
src/bin/lttng-sessiond/lttng-syscall.c
src/bin/lttng-sessiond/main.c
src/bin/lttng-sessiond/manage-consumer.c
src/bin/lttng-sessiond/modprobe.c
src/bin/lttng-sessiond/notification-thread-commands.c
src/bin/lttng-sessiond/notification-thread-events.c
src/bin/lttng-sessiond/notification-thread.c
src/bin/lttng-sessiond/notify-apps.c
src/bin/lttng-sessiond/rotation-thread.c
src/bin/lttng-sessiond/save.c
src/bin/lttng-sessiond/session.c
src/bin/lttng-sessiond/sessiond-config.c
src/bin/lttng-sessiond/snapshot.c
src/bin/lttng-sessiond/thread-utils.c
src/bin/lttng-sessiond/thread.c
src/bin/lttng-sessiond/timer.c
src/bin/lttng-sessiond/trace-kernel.c
src/bin/lttng-sessiond/trace-ust.c
src/bin/lttng-sessiond/tracker.c
src/bin/lttng-sessiond/trigger-error-query.c
src/bin/lttng-sessiond/ust-app.c
src/bin/lttng-sessiond/ust-consumer.c
src/bin/lttng-sessiond/ust-metadata.c
src/bin/lttng-sessiond/ust-registry.c
src/bin/lttng-sessiond/utils.c
src/bin/lttng/commands/add_context.c
src/bin/lttng/commands/add_trigger.c
src/bin/lttng/commands/create.c
src/bin/lttng/commands/destroy.c
src/bin/lttng/commands/disable_channels.c
src/bin/lttng/commands/disable_events.c
src/bin/lttng/commands/enable_channels.c
src/bin/lttng/commands/enable_events.c
src/bin/lttng/commands/help.c
src/bin/lttng/commands/list.c
src/bin/lttng/commands/list_triggers.c
src/bin/lttng/commands/load.c
src/bin/lttng/commands/metadata.c
src/bin/lttng/commands/regenerate.c
src/bin/lttng/commands/remove_trigger.c
src/bin/lttng/commands/rotate.c
src/bin/lttng/commands/save.c
src/bin/lttng/commands/set_session.c
src/bin/lttng/commands/snapshot.c
src/bin/lttng/commands/stop.c
src/bin/lttng/commands/track-untrack.c
src/bin/lttng/loglevel.c
src/bin/lttng/uprobe.c
src/bin/lttng/utils.c
src/common/actions/action.c
src/common/actions/firing-policy.c
src/common/actions/list.c
src/common/actions/notify.c
src/common/actions/path.c
src/common/actions/rate-policy.c
src/common/actions/rotate-session.c
src/common/actions/snapshot-session.c
src/common/actions/start-session.c
src/common/actions/stop-session.c
src/common/argpar/argpar.c
src/common/buffer-view.c
src/common/compat/directory-handle.c
src/common/compat/poll.c
src/common/compat/poll.h
src/common/conditions/buffer-usage.c
src/common/conditions/condition.c
src/common/conditions/event-rule-matches.c
src/common/conditions/session-consumed-size.c
src/common/conditions/session-rotation.c
src/common/config/session-config.c
src/common/consumer/consumer-metadata-cache.c
src/common/consumer/consumer-stream.c
src/common/consumer/consumer-timer.c
src/common/consumer/consumer.c
src/common/credentials.c
src/common/dynamic-array.h
src/common/dynamic-buffer.c
src/common/error-query.c
src/common/error.c
src/common/error.h
src/common/evaluation.c
src/common/event-expr/event-expr.c
src/common/event-field-value.c
src/common/event-rule/event-rule.c
src/common/event-rule/jul-logging.c
src/common/event-rule/kernel-kprobe.c
src/common/event-rule/kernel-syscall.c
src/common/event-rule/kernel-tracepoint.c
src/common/event-rule/kernel-uprobe.c
src/common/event-rule/log4j-logging.c
src/common/event-rule/python-logging.c
src/common/event-rule/user-tracepoint.c
src/common/fd-handle.c
src/common/fd-tracker/fd-tracker.c
src/common/fd-tracker/inode.c
src/common/filter-grammar-test.c
src/common/filter/filter-parser.y
src/common/filter/filter-visitor-generate-ir.c
src/common/filter/filter-visitor-ir-check-binary-comparator.c
src/common/filter/filter-visitor-ir-check-binary-op-nesting.c
src/common/filter/filter-visitor-ir-normalize-glob-patterns.c
src/common/filter/filter-visitor-ir-validate-globbing.c
src/common/filter/filter-visitor-ir-validate-string.c
src/common/filter/filter-visitor-xml.c
src/common/hashtable/hashtable.c
src/common/hashtable/utils.c
src/common/health/health.c
src/common/index-allocator.c
src/common/index/index.c
src/common/kernel-consumer/kernel-consumer.c
src/common/kernel-ctl/kernel-ctl.c
src/common/kernel-probe.c
src/common/log-level-rule.c
src/common/macros.h
src/common/mi-lttng.c
src/common/notification.c
src/common/optional.h
src/common/payload.c
src/common/pipe.c
src/common/readwrite.c
src/common/relayd/relayd.c
src/common/runas.c
src/common/session-descriptor.c
src/common/sessiond-comm/inet.c
src/common/sessiond-comm/inet6.c
src/common/sessiond-comm/sessiond-comm.c
src/common/shm.c
src/common/snapshot.c
src/common/spawn-viewer.c
src/common/string-utils/string-utils.c
src/common/trace-chunk.c
src/common/trigger.c
src/common/unix.c
src/common/uri.c
src/common/userspace-probe.c
src/common/ust-consumer/ust-consumer.c
src/common/utils.c
src/common/waiter.c
src/lib/lttng-ctl/channel.c
src/lib/lttng-ctl/clear.c
src/lib/lttng-ctl/destruction-handle.c
src/lib/lttng-ctl/event.c
src/lib/lttng-ctl/load.c
src/lib/lttng-ctl/lttng-ctl-health.c
src/lib/lttng-ctl/lttng-ctl.c
src/lib/lttng-ctl/rotate.c
src/lib/lttng-ctl/save.c
src/lib/lttng-ctl/snapshot.c
tests/regression/tools/live/live_test.c
tests/regression/tools/notification/base_client.c
tests/regression/tools/notification/consumer_testpoints.c
tests/regression/tools/notification/notification.c
tests/regression/tools/notification/rotation.c
tests/regression/tools/notification/sessiond_testpoints.c
tests/regression/tools/trigger/hidden/hidden_trigger.c
tests/regression/tools/trigger/name/trigger_name.c
tests/regression/tools/trigger/utils/register-some-triggers.c
tests/unit/test_action.c
tests/unit/test_condition.c
tests/unit/test_directory_handle.c
tests/unit/test_event_rule.c
tests/unit/test_fd_tracker.c
tests/unit/test_kernel_data.c
tests/unit/test_kernel_probe.c
tests/unit/test_log_level_rule.c
tests/unit/test_notification.c
tests/unit/test_payload.c
tests/unit/test_rate_policy.c
tests/unit/test_relayd_backward_compat_group_by_session.c
tests/unit/test_session.c
tests/unit/test_string_utils.c
tests/unit/test_uri.c
tests/unit/test_ust_data.c
tests/unit/test_utils_compat_poll.c
tests/unit/test_utils_expand_path.c
tests/unit/test_utils_parse_size_suffix.c
tests/unit/test_utils_parse_time_suffix.c
tests/utils/testapp/gen-ust-events/gen-ust-events.c
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
tests/utils/utils.c
tests/utils/xml-utils/extract_xml.c
tests/utils/xml-utils/validate_xml.c
This page took 0.074791 seconds and 5 git commands to generate.