public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/12033] New: 'stap -l' needs better error reporting
@ 2010-09-17 18:56 dsmith at redhat dot com
  2010-09-17 19:06 ` [Bug translator/12033] 'stap -l' variant with " fche at redhat dot com
  2010-09-17 19:07 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2010-09-17 18:56 UTC (permalink / raw)
  To: systemtap

'stap -l' is a bit too silent when it comes to errors.  It makes it quite
difficult to really know what is going on.  (See bug 12032 for another example.)

# stap -l 'kernel.function("X")'

Function "X" doesn't exist, so nothing is reported.  Perhaps a "No probes found"
error message here would be nice.

# stap -l 'module("Y").function("X")'

Nothing is reported here either.  At this point a user doesn't know if:
1) module "Y" couldn't be found; or
2) module "Y" was found but function "X" doesn't exist

The same thing happens as the previous example when static user markers are used:

# stap -l 'process("abc").mark("X")'

Nothing is reported here.  At this point a user doesn't know if:
1) the "abc" executable couldn't be found; or
2) the "abc" executable was found but marker "X" doesn't exist

-- 
           Summary: 'stap -l' needs better error reporting
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: dsmith at redhat dot com


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

------- 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/12033] 'stap -l' variant with error reporting
  2010-09-17 18:56 [Bug translator/12033] New: 'stap -l' needs better error reporting dsmith at redhat dot com
@ 2010-09-17 19:06 ` fche at redhat dot com
  2010-09-17 19:07 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2010-09-17 19:06 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-09-17 19:06 -------
Again, stap -l is documented not to print error messages, so it's
easily used from scripts.

Maybe you'd like a mode, perhaps -vv -l to print errors after all.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|'stap -l' needs better error|'stap -l' variant with error
                   |reporting                   |reporting


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

------- 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/12033] 'stap -l' variant with error reporting
  2010-09-17 18:56 [Bug translator/12033] New: 'stap -l' needs better error reporting dsmith at redhat dot com
  2010-09-17 19:06 ` [Bug translator/12033] 'stap -l' variant with " fche at redhat dot com
@ 2010-09-17 19:07 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2010-09-17 19:07 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2010-09-17 19:06 -------
*** Bug 12032 has been marked as a duplicate of this bug. ***

-- 


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

------- 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:[~2010-09-17 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-17 18:56 [Bug translator/12033] New: 'stap -l' needs better error reporting dsmith at redhat dot com
2010-09-17 19:06 ` [Bug translator/12033] 'stap -l' variant with " fche at redhat dot com
2010-09-17 19:07 ` 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).