mbox series

[0/2] trace-cmd/kernel-shark: Use one quick hash algorithm

Message ID 20190920151526.528126066@goodmis.org (mailing list archive)
Headers show
Series trace-cmd/kernel-shark: Use one quick hash algorithm | expand

Message

Steven Rostedt Sept. 20, 2019, 3:15 p.m. UTC
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(-)