aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_config_internal.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2020-12-09 11:17:52 +0200
committerMatias Elo <matias.elo@nokia.com>2020-12-23 15:29:10 +0200
commit3b5e2891253889db6a6eddbb098f8cd47cabb266 (patch)
treed25115cf7851721a8e5e04f0c65f979dac78aad2 /platform/linux-generic/include/odp_config_internal.h
parent7016ea9405ad12db90b62dcf8f986f599a55741f (diff)
linux-gen: pool: implement support for pool statistics
Implement new odp_pool_stats_reset() and odp_pool_stats() functions. To minimize overhead, support for alloc_ops, free_ops, cache_alloc_ops, and cache_free_ops counters can be disabled by setting CONFIG_POOL_STATISTICS define (platform/linux-generic/include/odp_config_internal.h) to zero. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r--platform/linux-generic/include/odp_config_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h
index 046463a5d..bd7f710d2 100644
--- a/platform/linux-generic/include/odp_config_internal.h
+++ b/platform/linux-generic/include/odp_config_internal.h
@@ -149,6 +149,9 @@ extern "C" {
/* Maximum packet vector size */
#define CONFIG_PACKET_VECTOR_MAX_SIZE 256
+/* Enable pool statistics collection */
+#define CONFIG_POOL_STATISTICS 1
+
#ifdef __cplusplus
}
#endif