library/src/datastructures/BP-HashTable.cc
// simple catch all routine for displaying all information stored within a hash registry
simple catch all routine for displaying all information stored within a hash registry
simple catch all routine for displaying all information stored within a hash registry
BP_ERROR_T BP_HashRegDisplay
(
	P_BP_HASH_TABLE_REGISTRY hreg,
	BP_BOOL                  display_mem_entries,
	BP_BOOL                  display_hive_entries
)
{
	BP_GLOBAL_HASH_TABLE_OVERRIDE(ERR_FAILURE);
	printf("\n [+] Hash Table Registry: %p", hreg);
	printf("\n");
	printf("\n   lock:               %p", hreg->lock);
	printf("\n   lock_acquired_time: %u", hreg->lock_acquired_time);
	printf("\n   memory_table:       %p", hreg->memory_table);
	printf("\n   hive:               %p", hreg->hive);
	printf("\n");
	BP_HashRegDisplayMemory(hreg, display_mem_entries);
	BP_HashRegDisplayHive(hreg, BP_TRUE, display_hive_entries);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_HashRegDisplay ( P_BP_HASH_TABLE_REGISTRY hreg , BP_BOOL display_mem_entries , BP_BOOL display_hive_entries ) { BP_GLOBAL_HASH_TABLE_OVERRIDE ( ERR_FAILURE ) ; printf ( " \n " , hreg ) ; printf ( " \n " ) ; printf ( " \n " , hreg -> lock ) ; printf ( " \n " , hreg -> lock_acquired_time ) ; printf ( " \n " , hreg -> memory_table ) ; printf ( " \n " , hreg -> hive ) ; printf ( " \n " ) ; BP_HashRegDisplayMemory ( hreg , display_mem_entries ) ; BP_HashRegDisplayHive ( hreg , BP_TRUE , display_hive_entries ) ; return ERR_SUCCESS ; }
simple catch all routine for displaying all information stored within a hash registry
simple catch all routine for displaying all information stored within a hash registry
// macro to override hreg on null // &global_mprof_hash_table_registry // display the hash table registry // display memory // display the hive // return indicating success