public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "jistone at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug runtime/17362] no script-level local variables available in F20's kernel.function("do_execve")
Date: Mon, 08 Sep 2014 18:38:00 -0000	[thread overview]
Message-ID: <bug-17362-6586-iiPGcMZ0rF@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-17362-6586@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=17362

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com

--- Comment #2 from Josh Stone <jistone at redhat dot com> ---
If you use a script like:

  probe f = kernel.function("do_execve"){}
  probe f.call, f.inline { println($$parms) }

in pass-2 output you'll see:

  kernel.function("do_execve@fs/exec.c:1547").call /* pc=_stext+0x1edf38 */ /*
<- kernel.function("do_execve@fs/exec.c:1547").call */
  println(sprintf("filename=%#x __argv=%#x __envp=%#x",
_dwarf_tvar_get_filename_0(), _dwarf_tvar_get___argv_1(),
_dwarf_tvar_get___envp_2()))

  kernel.function("do_execve@fs/exec.c:1547").inline /* pc=_stext+0x1ee16f */
/* <- kernel.function("do_execve@fs/exec.c:1547").inline */
  println(sprintf("__envp=? __argv=? filename=?"))

So there's a full .call function which has all the parameters available, and an
.inline instance which has none of them.


(In reply to Frank Ch. Eigler from comment #1)
> Chances are this is related to
> https://bugzilla.redhat.com/show_bug.cgi?id=1126580

The producer string does indeed include -fno-var-tracking-assignments.

-- 
You are receiving this mail because:
You are the assignee for the bug.

  parent reply	other threads:[~2014-09-08 18:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-08 15:15 [Bug runtime/17362] New: " mcermak at redhat dot com
2014-09-08 15:34 ` [Bug runtime/17362] " fche at redhat dot com
2014-09-08 18:38 ` jistone at redhat dot com [this message]
2014-09-09 15:19 ` mcermak at redhat dot com
2014-10-06 21:12 ` fche at redhat dot com

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=bug-17362-6586-iiPGcMZ0rF@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --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).