From: Rajasekhar Duddu <rajduddu@linux.vnet.ibm.com>
To: Wenji Huang <wenji.huang@oracle.com>
Cc: systemtap@sources.redhat.com
Subject: Re: [PATCH V5] Tracepoint Tapset for Memory Subsystem
Date: Wed, 09 Dec 2009 06:57:00 -0000 [thread overview]
Message-ID: <20091209065725.GA5987@rajduddu> (raw)
In-Reply-To: <4B1C6D57.7090409@oracle.com>
On Mon, Dec 07, 2009 at 10:49:59AM +0800, Wenji Huang wrote:
> Hi,
>
> Rajasekhar Duddu wrote:
>> +/* The Formal Parameters will be displayed if available, otherwise \
>> + "0" or "unknown" will be displayed */
>> +
>> +probe __vm.kmalloc.tp = kernel.trace("kmalloc") {
>> + name = "kmalloc"
>> + call_site = $call_site
>> + caller_function = symname(call_site)
>> + bytes_req = $bytes_req
>> + bytes_alloc = $bytes_alloc
>> + gfp_flags = $gfp_flags
>> + gfp_flag_name = __gfp_flag_str($gfp_flags)
>> + ptr = $ptr
>> +}
>> +
>> +/* It is unsafe to invoke __builtin_return_address() \
>> +presently(to get call_site for kporbe based probes) \
>> +and that it can be improved later when fix for bugs bz#6961 and bz#6580 is available. */
>> +
>> +probe __vm.kmalloc.kp = kernel.function("kmalloc").return {
>> + name = "kmalloc"
>> + call_site = 0
>> + caller_function = "unknown"
>> + bytes_req = $size
>> + bytes_alloc = "unknown"
> why let bytes_alloc be "unknown", not 0 ?
> The type is not consistent with the above one.
>
> Same issue exists in the following part.
>
Hi Wenji,
I do agree with you that type is not consistent here, but if
bytes_alloc is assigined "0" , it may indicate a failure.
When Memory allacation is successful then bytes_alloc would be
non-zero which we are not able to fetch here, so I feel its not
good to assign it with zero.
Thanks
--
Rajasekhar Duddu (rajduddu@linux.vnet.ibm.com),
Linux on System z - CSVT, IBM LTC, Bangalore.
next prev parent reply other threads:[~2009-12-09 6:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 9:31 [PATCH V4] " Rajasekhar Duddu
2009-11-30 16:26 ` Frank Ch. Eigler
2009-12-04 12:09 ` [PATCH V5] " Rajasekhar Duddu
2009-12-07 2:52 ` Wenji Huang
2009-12-09 6:57 ` Rajasekhar Duddu [this message]
2009-12-11 18:36 ` [PATCH V6] " Rajasekhar Duddu
2009-12-21 11:46 ` Prerna Saxena
2009-12-21 21:49 ` Mark Wielaard
2009-12-22 17:02 ` Prerna Saxena
2009-12-29 21:36 ` Mark Wielaard
[not found] <449125467.1554931259945048608.JavaMail.root@zmail02.collab.prod.int.phx2.redhat.com>
2009-12-04 17:11 ` [PATCH V5] " David Smith
2009-12-09 6:59 ` 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=20091209065725.GA5987@rajduddu \
--to=rajduddu@linux.vnet.ibm.com \
--cc=systemtap@sources.redhat.com \
--cc=wenji.huang@oracle.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).