MCPcopy Create free account
hub / github.com/F-Stack/f-stack / print_key_info

Function print_key_info

dpdk/app/test/test_hash.c:106–116  ·  view source on GitHub ↗

* Print out result of unit test hash operation. */

Source from the content-addressed store, hash-verified

104 * Print out result of unit test hash operation.
105 */
106static void print_key_info(const char *msg, const struct flow_key *key,
107 int32_t pos)
108{
109 const uint8_t *p = (const uint8_t *)key;
110 unsigned int i;
111
112 rte_log(RTE_LOG_DEBUG, hash_logtype_test, "%s key:0x", msg);
113 for (i = 0; i < sizeof(struct flow_key); i++)
114 rte_log(RTE_LOG_DEBUG, hash_logtype_test, "%02X", p[i]);
115 rte_log(RTE_LOG_DEBUG, hash_logtype_test, " @ pos %d\n", pos);
116}
117
118/* Keys used by unit test functions */
119static struct flow_key keys[5] = { {

Callers 10

test_add_deleteFunction · 0.70
test_add_update_deleteFunction · 0.70
test_add_delete_free_lfFunction · 0.70
test_five_keysFunction · 0.70
test_full_bucketFunction · 0.70
test_extendable_bucketFunction · 0.70

Calls 1

rte_logFunction · 0.85

Tested by

no test coverage detected