public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Christian Kaiser <kaiser@dolphinics.com>
To: systemtap@sourceware.org
Subject: trace function argument
Date: Tue, 16 Jun 2009 09:08:00 -0000	[thread overview]
Message-ID: <4A376113.30109@dolphinics.com> (raw)

Hi all,

is it possible to get the value of a function argument of a probed function?

With dtrace for example, you can do something like:
dtrace -n '::some_function:entry/arg0 != 0/{ printf("arg0 is not zero!"); }'

I have searched the "Beginners Guide", mailinglist, wiki, web, etc. but 
could not find anything useful.

Thanks!

   Christian

-- 
Christian Kaiser, Software Engineer, Dolphin Interconnect Solutions
http://www.dolphinics.com

             reply	other threads:[~2009-06-16  9:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-16  9:08 Christian Kaiser [this message]
2009-06-16  9:15 ` Ananth N Mavinakayanahalli
2009-06-16  9:47   ` Christian Kaiser
2009-06-16 10:01     ` Ananth N Mavinakayanahalli
2009-06-16 10:31       ` Christian Kaiser
2009-06-16 10:47         ` Ananth N Mavinakayanahalli
2009-06-16 10:04     ` Mark Wielaard

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=4A376113.30109@dolphinics.com \
    --to=kaiser@dolphinics.com \
    --cc=systemtap@sourceware.org \
    /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).