Instead of having multiple "knuth_hash()" static functions, make one generic tracecmd_quick_hash() function and use that. It also adds a "bits" field so that the result can be limited to any power of 2 that is less than 2^32. Steven Rostedt (VMware) (2): trace-cmd: Make a global tracecmd_quick_hash() instead of a local knuth_hash() kernel-shark: Increase the size of the task hash ---- include/trace-cmd/trace-filter-hash.h | 24 ++++++++++++++++++++++++ kernel-shark/src/libkshark.c | 18 ++++-------------- kernel-shark/src/libkshark.h | 3 ++- lib/trace-cmd/trace-filter-hash.c | 20 +++++--------------- 4 files changed, 35 insertions(+), 30 deletions(-)