]> www.infradead.org Git - nvme.git/commit
tracing: Use hashtable.h for event_hash
authorSasha Levin <sashal@kernel.org>
Sun, 23 Mar 2025 13:28:00 +0000 (09:28 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sun, 23 Mar 2025 19:26:14 +0000 (15:26 -0400)
commit391dda1bd7c56de62b96126214f040fe8965561b
treefb3b1166b74d7343f2d55bec96aeae1c3222f154
parent7f81f27b1093e4895e87b74143c59c055c3b1906
tracing: Use hashtable.h for event_hash

Convert the event_hash array in trace_output.c to use the generic
hashtable implementation from hashtable.h instead of the manually
implemented hash table.

This simplifies the code and makes it more maintainable by using the
standard hashtable API defined in hashtable.h.

Rename EVENT_HASHSIZE to EVENT_HASH_BITS to properly reflect its new
meaning as the number of bits for the hashtable size.

Link: https://lore.kernel.org/20250323132800.3010783-1-sashal@kernel.org
Link: https://lore.kernel.org/20250319190545.3058319-1-sashal@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_output.c