linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-trace-devel@vger.kernel.org
Cc: Yordan Karadzhov <y.karadz@gmail.com>
Subject: [PATCH 0/2] trace-cmd/kernel-shark: Use one quick hash algorithm
Date: Fri, 20 Sep 2019 11:15:26 -0400	[thread overview]
Message-ID: <20190920151526.528126066@goodmis.org> (raw)


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(-)


             reply	other threads:[~2019-09-20 15:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20 15:15 Steven Rostedt [this message]
2019-09-20 15:15 ` [PATCH 1/2] trace-cmd: Make a global tracecmd_quick_hash() instead of a local knuth_hash() Steven Rostedt
2019-09-20 15:15 ` [PATCH 2/2] kernel-shark: Increase the size of the task hash Steven Rostedt
2019-09-20 15:47   ` Yordan Karadzhov (VMware)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190920151526.528126066@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=y.karadz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).