mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vamsi Krishna S ." <vamsi@in.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org, richard <richardj_moore@uk.ibm.com>,
	suparna <suparna@in.ibm.com>
Subject: Re: [patch] kprobes for 2.5.73 with single-stepping out-of-line
Date: Wed, 25 Jun 2003 16:11:13 +0530	[thread overview]
Message-ID: <20030625161113.A20435@in.ibm.com> (raw)
In-Reply-To: <p73n0g74g8q.fsf@oldwotan.suse.de>; from ak@suse.de on Tue, Jun 24, 2003 at 06:01:09PM +0200

On Tue, Jun 24, 2003 at 06:01:09PM +0200, Andi Kleen wrote:
> "Vamsi Krishna S ." <vamsi@in.ibm.com> writes:
> 
> 
> > +static struct kprobe *current_kprobe;
> 
> This global variable is quite unclean. It looks like it is for passing
> function arguments around. Why is it needed? 
> 
This is used for keeping track of the probe that is currently being
handled. This information is needed to be kept across a 
trap 3 - singlestep - trap 1. So, we set store the current probe in
this variable while handling trap 3, for use while handling the
subsequent trap 1.

> > +#define KPROBE_HASH_BITS 6
> > +#define KPROBE_TABLE_SIZE (1 << KPROBE_HASH_BITS)
> > +
> > +static struct list_head kprobe_table[KPROBE_TABLE_SIZE];
> 
> Use hlists?
> 
Yes, that will save some space in this hash table.. will convert to
hlists and repost.

> 
> -Andi

Thanks,
Vamsi.
-- 
Vamsi Krishna S.
IBM Software Lab, Bangalore.
Ph: +91 80 5044959
Internet: vamsi@in.ibm.com

  reply	other threads:[~2003-06-25 10:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030624140926.A17908@in.ibm.com.suse.lists.linux.kernel>
2003-06-24 16:01 ` Andi Kleen
2003-06-25 10:41   ` Vamsi Krishna S . [this message]
2003-06-25 11:52     ` Andi Kleen
2003-06-25 12:46       ` Vamsi Krishna S .
2003-06-24  8:39 Vamsi Krishna S .

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=20030625161113.A20435@in.ibm.com \
    --to=vamsi@in.ibm.com \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richardj_moore@uk.ibm.com \
    --cc=suparna@in.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®