public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/16955] New: blacklisting requires better feedback
@ 2014-05-16 20:47 jlebon at redhat dot com
  2014-05-16 21:32 ` [Bug translator/16955] " jlebon at redhat dot com
  2014-05-20 15:21 ` jlebon at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jlebon at redhat dot com @ 2014-05-16 20:47 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 16955
           Summary: blacklisting requires better feedback
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

When a function is omitted because it is blacklisted, there is no useful
feedback:

$ stap -e 'probe kernel.function("do_symlink") { next }'
semantic error: while resolving probe point: identifier 'kernel' at :1:7
        source: probe kernel.function("do_symlink") { next }
                      ^

semantic error: no match (similar functions: do_symlink, add_symlink,
del_symlink, do_setlink, SyS_symlink)
Pass 2: analysis failed.  [man error::pass2]
$

It's especially confusing because do_symlink is listed in the list of
alternatives. We should provide some indication as to why there was no match.

There is already some output hidden behind -vv to show that it is blacklisted:

...
probe do_symlink@init/initramfs.c:364 kernel reloc=.dynamic
pc=0xffffffff81d2116e init/exit - skipped
...

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

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

* [Bug translator/16955] blacklisting requires better feedback
  2014-05-16 20:47 [Bug translator/16955] New: blacklisting requires better feedback jlebon at redhat dot com
@ 2014-05-16 21:32 ` jlebon at redhat dot com
  2014-05-20 15:21 ` jlebon at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jlebon at redhat dot com @ 2014-05-16 21:32 UTC (permalink / raw)
  To: systemtap

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

--- Comment #1 from Jonathan Lebon <jlebon at redhat dot com> ---
Created attachment 7606
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7606&action=edit
blacklist patch

Proposed patch to add a warning if blacklisted. Effect:

$ stap -e 'probe kernel.function("do_symlink") { next }'
WARNING: function do_symlink is in blacklisted section: keyword at <input>:1:1
 source: probe kernel.function("do_symlink") { next }
         ^
semantic error: while resolving probe point: identifier 'kernel' at :1:7
        source: probe kernel.function("do_symlink") { next }
                      ^

semantic error: no match (similar functions: do_symlink, add_symlink,
del_symlink, do_setlink, SyS_symlink)
Pass 2: analysis failed.  [man error::pass2]

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

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

* [Bug translator/16955] blacklisting requires better feedback
  2014-05-16 20:47 [Bug translator/16955] New: blacklisting requires better feedback jlebon at redhat dot com
  2014-05-16 21:32 ` [Bug translator/16955] " jlebon at redhat dot com
@ 2014-05-20 15:21 ` jlebon at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jlebon at redhat dot com @ 2014-05-20 15:21 UTC (permalink / raw)
  To: systemtap

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

Jonathan Lebon <jlebon at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jonathan Lebon <jlebon at redhat dot com> ---
Merged in master, commit 2f18e69.

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

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

end of thread, other threads:[~2014-05-20 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-16 20:47 [Bug translator/16955] New: blacklisting requires better feedback jlebon at redhat dot com
2014-05-16 21:32 ` [Bug translator/16955] " jlebon at redhat dot com
2014-05-20 15:21 ` jlebon 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).