aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-06-29 16:36:22 +0300
committerMatias Elo <matias.elo@nokia.com>2023-01-18 10:12:09 +0200
commita735a7131bceadb87c25b553446e4829923bcc1c (patch)
tree06fb66a46a0d1b1251bbfe96ac7c43887a546011 /include
parent8782c99a6cb53af57316e66271e0a1c6b951fa2b (diff)
linux-gen: event: add event validation support
Add support for runtime event validation (initially buffer endmark checking). Event validation can be enabled during configure with '--enable-event-validation' [warn/abort] or with --enabled-debug=full. When event validation is enabled, endmarks are checked in: - odp_buffer_free() / odp_buffer_free_multi() - odp_buffer_is_valid() - odp_event_free() / odp_event_free_multi() / odp_event_free_sp() - odp_event_is_valid() - odp_packet_free() / odp_packet_free_multi() / odp_packet_free_sp() - odp_packet_is_valid() Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/autoheader_external.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/odp/autoheader_external.h.in b/include/odp/autoheader_external.h.in
index dd60fa0b2..74662b2e0 100644
--- a/include/odp/autoheader_external.h.in
+++ b/include/odp/autoheader_external.h.in
@@ -11,4 +11,7 @@
/* Define cache line size */
#undef _ODP_CACHE_LINE_SIZE
+/* Define to 1 or 2 to enable event validation */
+#undef _ODP_EVENT_VALIDATION
+
#endif