public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Josh Stone <jistone@redhat.com>
To: Rajasekhar Duddu <rajduddu@linux.vnet.ibm.com>
Cc: systemtap@redhat.com
Subject: Re: [PATCH v2] Tracepoint Tapset for Memory Subsystem
Date: Fri, 25 Sep 2009 21:50:00 -0000	[thread overview]
Message-ID: <4ABD3B2B.4020107@redhat.com> (raw)
In-Reply-To: <20090924180817.GA9698@rajduddu>

On 09/24/2009 11:08 AM, Rajasekhar Duddu wrote:
> 
> Hi, I have modified the patch according to the comments passed
> by Frank and David.
> 
> Many thanks to Frank And David.
> 
> Changelog:
> 	Removed the Hardcoded constants in converting GFPFLAGS.
> 	Added a kprobe based fallback probe to kfree.

Why is kfree the only one you're adding with a kprobe fallback?  This is
a good feature to have!

> +/**
> + * probe kmem.kfree - Fires when <command>kfree</comand> is requested.
> + * @call_site: Address of the function calling this kmemory function.
> + * @ptr: Pointer to the kmemory allocated which is returned by kmalloc
> + */
> +probe kmem.kfree.kp = kernel.function("kfree") {
> +	name = "kfree"
> +	call_site = symname(call_site())
> +	ptr = $x
> +}
> +
> +probe kmem.kfree.tp = kernel.trace("kfree") {
> +	name = "kfree"
> +	call_site = symname($call_site)
> +	ptr = $ptr
> +}
> +
> +probe kmem.kfree = kmem.kfree.tp !,
> +		   kmem.kfree.kp
> +{}

Please use an underscored prefix (e.g. __kmem) for internal details that
the user isn't meant to use directly, like the .tp/.kp branches.

I'd also like to see a consistent prefix in this tapset.  The existing
probe points in memory.stp are all vm.*, so it's probably best to stick
with that.

Thanks,

Josh

  parent reply	other threads:[~2009-09-25 21:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-19  5:01 [PATCH] " Rajasekhar Duddu
2009-09-22 17:39 ` David Smith
2009-09-22 21:23   ` Frank Ch. Eigler
2009-09-22 22:05     ` David Smith
2009-09-24 18:08       ` [PATCH v2] " Rajasekhar Duddu
2009-09-25 19:19         ` David Smith
2009-09-25 20:07           ` Frank Ch. Eigler
2009-09-28 18:12           ` Jim Keniston
2009-09-29  8:58             ` K.Prasad
2009-09-25 21:50         ` Josh Stone [this message]
2009-09-30 10:12           ` Rajasekhar Duddu
2009-10-02 15:14             ` [PATCH v3] " Rajasekhar Duddu
2009-10-06 19:01               ` Frank Ch. Eigler
2009-10-07 13:07                 ` Rajasekhar Duddu
2009-10-07 19:51                   ` Frank Ch. Eigler
2009-10-09 17:08                     ` Rajasekhar Duddu
2009-10-09 17:38                       ` Frank Ch. Eigler
2009-10-14  8:32                         ` Rajasekhar Duddu

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=4ABD3B2B.4020107@redhat.com \
    --to=jistone@redhat.com \
    --cc=rajduddu@linux.vnet.ibm.com \
    --cc=systemtap@redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).