public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/9775] New: stap must throw a warning if a script probes a __user variable
@ 2009-01-22 11:55 prerna at linux dot vnet dot ibm dot com
  2009-01-22 13:04 ` [Bug translator/9775] " fche at redhat dot com
  2009-02-26  8:09 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: prerna at linux dot vnet dot ibm dot com @ 2009-01-22 11:55 UTC (permalink / raw)
  To: systemtap

It'd be good to have the translator throw a warning if a script probes a __user
variable, such as :

stap -vve 'probe kernel.function("sys_open"){printf("\n filename %p ",$filename)}'

This feature would be particularly handy while probing char*-- It could be
extended to directly invoke the user_string / kernel_string functions, as the
case would be.

I'm not sure how DWARF would distinguish __user variables

-- 
           Summary: stap must throw a warning if a script probes a __user
                    variable
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: prerna at linux dot vnet dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9775

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug translator/9775] stap must throw a warning if a script probes a __user variable
  2009-01-22 11:55 [Bug translator/9775] New: stap must throw a warning if a script probes a __user variable prerna at linux dot vnet dot ibm dot com
@ 2009-01-22 13:04 ` fche at redhat dot com
  2009-02-26  8:09 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2009-01-22 13:04 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-01-22 12:06 -------
Unfortunately, the __user designation is not represented at all to the
compiler, thus nor in DWARF.  See also <sources.redhat.com/PR1187>.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=9775

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug translator/9775] stap must throw a warning if a script probes a __user variable
  2009-01-22 11:55 [Bug translator/9775] New: stap must throw a warning if a script probes a __user variable prerna at linux dot vnet dot ibm dot com
  2009-01-22 13:04 ` [Bug translator/9775] " fche at redhat dot com
@ 2009-02-26  8:09 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2009-02-26  8:09 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-02-26 07:58 -------
CANTFIX except perhaps with source code parsing

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=9775

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-26  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-22 11:55 [Bug translator/9775] New: stap must throw a warning if a script probes a __user variable prerna at linux dot vnet dot ibm dot com
2009-01-22 13:04 ` [Bug translator/9775] " fche at redhat dot com
2009-02-26  8:09 ` fche at redhat dot com

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).