All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prerna Saxena <prerna@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: Maneesh Soni <maneesh@linux.vnet.ibm.com>,
	Anthony Liguori <aliguori@us.ibm.com>,
	Ananth <ananth@linux.vnet.ibm.com>,
	Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH 1/3]make tdb_hash available
Date: Mon, 24 May 2010 21:45:09 +0530	[thread overview]
Message-ID: <4BFAA60D.6080308@linux.vnet.ibm.com> (raw)
In-Reply-To: <4BFAA3BB.5030207@linux.vnet.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

This function is used for hash table lookups by tracepoint framework.
The patch adds trivial changes to reuse it.

Regards,
-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India

[-- Attachment #2: qhash.patch --]
[-- Type: text/x-diff, Size: 1032 bytes --]

Signed-off by : Prerna (prerna@linux.vnet.ibm.com)

Index: qemu/qdict.c
===================================================================
--- qemu.orig/qdict.c
+++ qemu/qdict.c
@@ -56,7 +56,7 @@ QDict *qobject_to_qdict(const QObject *o
  * tdb_hash(): based on the hash agorithm from gdbm, via tdb
  * (from module-init-tools)
  */
-static unsigned int tdb_hash(const char *name)
+unsigned int tdb_hash(const char *name)
 {
     unsigned value;	/* Used to compute the hash value.  */
     unsigned   i;	/* Used to cycle through random values. */
Index: qemu/qdict.h
===================================================================
--- qemu.orig/qdict.h
+++ qemu/qdict.h
@@ -46,5 +46,7 @@ const char *qdict_get_str(const QDict *q
 int64_t qdict_get_try_int(const QDict *qdict, const char *key,
                           int64_t err_value);
 const char *qdict_get_try_str(const QDict *qdict, const char *key);
+/* Export tdb_hash() for use by trace-framework */
+unsigned int tdb_hash(const char *name);
 
 #endif /* QDICT_H */

  reply	other threads:[~2010-05-24 16:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24 16:05 [Qemu-devel] [RFC 0/3] Tracing framework for QEMU Prerna Saxena
2010-05-24 16:15 ` Prerna Saxena [this message]
2010-05-24 16:16   ` [Qemu-devel] [PATCH 2/3] Tracepoint, buffer & monitor framework Prerna Saxena
2010-05-25 11:40     ` Stefan Hajnoczi
2010-05-25 18:20       ` Prerna Saxena
2010-05-25 20:07         ` Stefan Hajnoczi
2010-05-24 16:19   ` [Qemu-devel] [PATCH 3/3] Samples to add a tracepoint Prerna Saxena
2010-05-25 11:38     ` Stefan Hajnoczi
2010-05-25 11:43 ` [Qemu-devel] [RFC 0/3] Tracing framework for QEMU Stefan Hajnoczi
2010-06-08  8:35   ` Prerna Saxena

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=4BFAA60D.6080308@linux.vnet.ibm.com \
    --to=prerna@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=ananth@linux.vnet.ibm.com \
    --cc=maneesh@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@linux.vnet.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.