diff options
author | Sasha Levin <sashal@kernel.org> | 2025-03-23 09:28:00 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2025-03-23 15:26:14 -0400 |
commit | 391dda1bd7c56de62b96126214f040fe8965561b (patch) | |
tree | fb3b1166b74d7343f2d55bec96aeae1c3222f154 /tools/perf/scripts/python/stackcollapse.py | |
parent | 7f81f27b1093e4895e87b74143c59c055c3b1906 (diff) | |
download | lwn-391dda1bd7c56de62b96126214f040fe8965561b.tar.gz lwn-391dda1bd7c56de62b96126214f040fe8965561b.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions