diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2016-05-26 10:20:05 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-06-02 15:45:28 +0300 |
commit | 3c32dd2267d768e0ddc51f3d86979854946078fc (patch) | |
tree | 75ce1f621ecc10d382625137d768069b58df3338 | |
parent | 2a367a02665ab9893bbc66e6d8da9dbb6064c5de (diff) |
linux-generic: tm: parameterize use of secondary_hash_dump() routine
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2177 by making use
of secondary_hash_dump() debug routine parameterized.
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r-- | platform/linux-generic/odp_name_table.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/linux-generic/odp_name_table.c b/platform/linux-generic/odp_name_table.c index 801c4560c..14525d113 100644 --- a/platform/linux-generic/odp_name_table.c +++ b/platform/linux-generic/odp_name_table.c @@ -47,6 +47,7 @@ #define NUM_NAME_TBLS 16 #define SECONDARY_HASH_HISTO_PRINT 1 +#define SECONDARY_HASH_DUMP 0 typedef struct name_tbl_entry_s name_tbl_entry_t; @@ -203,7 +204,6 @@ static void check_secondary_hash(secondary_hash_tbl_t *secondary_hash_tbl) } } -#ifdef NOT_USED /* @todo */ static void secondary_hash_dump(secondary_hash_tbl_t *secondary_hash_tbl) { name_tbl_entry_t *name_tbl_entry; @@ -235,7 +235,6 @@ static void secondary_hash_dump(secondary_hash_tbl_t *secondary_hash_tbl) ODP_DBG("%s count=%u\n", __func__, count); } -#endif static uint32_t name_tbl_free_list_add(name_tbl_t *name_tbl, uint32_t num_to_add) @@ -486,7 +485,8 @@ static hash_tbl_entry_t secondary_hash_add(name_tbl_entry_t *name_tbl_entry, name_tbl_entry = next_entry; } - /* secondary_hash_dump(secondary_hash); */ + if (SECONDARY_HASH_DUMP) + secondary_hash_dump(secondary_hash); return (hash_tbl_entry_t)(uintptr_t)secondary_hash; } |