diff options
author | Matias Elo <matias.elo@nokia.com> | 2020-12-18 09:18:51 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2020-12-23 15:29:10 +0200 |
commit | 676bd9ff66bae9ca6def39dc19e11a2886dc8043 (patch) | |
tree | 89144dd01729f37e3bf7506b3879d3dda4420996 /platform/linux-generic/odp_pool.c | |
parent | 3b5e2891253889db6a6eddbb098f8cd47cabb266 (diff) |
linux-gen: pool: remove old debug pool statistics
Old implementation specific pool statistics can be removed now when the
pool API provides similar functionality.
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/odp_pool.c')
-rw-r--r-- | platform/linux-generic/odp_pool.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 53376bac4..d1fb7c933 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -56,13 +56,6 @@ typedef struct pool_local_t { pool_cache_t *cache[ODP_CONFIG_POOLS]; int thr_id; - /* Number of event allocs and frees by this thread. */ - struct { - uint64_t num_alloc; - uint64_t num_free; - - } stat[ODP_CONFIG_POOLS]; - } pool_local_t; pool_global_t *_odp_pool_glb; @@ -356,18 +349,6 @@ int _odp_pool_term_local(void) pool_t *pool = pool_entry(i); cache_flush(local.cache[i], pool); - - if (ODP_DEBUG == 1) { - uint64_t num_alloc = local.stat[i].num_alloc; - uint64_t num_free = local.stat[i].num_free; - - if (num_alloc || num_free) { - ODP_DBG("Pool[%i] stats: thr %i, " - "allocs % " PRIu64 ", " - "frees % " PRIu64 "\n", - i, local.thr_id, num_alloc, num_free); - } - } } return 0; @@ -1120,9 +1101,6 @@ int buffer_alloc_multi(pool_t *pool, odp_buffer_hdr_t *buf_hdr[], int max_num) num_alloc = num_ch + num_deq; - if (ODP_DEBUG == 1) - local.stat[pool_idx].num_alloc += num_alloc; - return num_alloc; } @@ -1135,9 +1113,6 @@ static inline void buffer_free_to_pool(pool_t *pool, uint32_t cache_num, mask; uint32_t cache_size = pool->cache_size; - if (ODP_DEBUG == 1) - local.stat[pool_idx].num_free += num; - /* Special case of a very large free. Move directly to * the global pool. */ if (odp_unlikely(num > (int)cache_size)) { |