public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Skipped Probes for userspace constructors, Why?
@ 2008-11-10 19:58 Hassan Radwan
  2008-11-23 17:07 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Hassan Radwan @ 2008-11-10 19:58 UTC (permalink / raw)
  To: systemtap

Hello,

I have a simple script written to try and understand when the
constructor is called for the classes in an application. I generated the
probes from a list of known classes I already have (70 classes total)
and the script looks like this:

probe process("a.out").function("FooConstructor")
{
	printf ("%s\n", " FooConstructor ")
}

probe process("a.out").function("FooerConstructor ")
{
	printf ("%s\n", " FooerConstructor ")
}

Etc ....

I'm trying to do something a little smarter than just printing out
method names, but this is the simplest script that gives me the same
error I'm coming up against. Whenever I try to run stap I get the
following:

$ sudo stap foo.stp -c a.out
WARNING: Number of errors: 0, skipped probes: 195

And only 2 of the probes are actually printed to the console, the rest
are skipped. Why? From the reading I've done I understand that this
happens if probes try to use a common global and they're running in
different threads (which was my original problem). But in this case all
I'm doing is outputting the method name. So I don't understand what's
happening.

I also tried running the probes individually and not as a set, and some
of them probe fine, others show me a "skipped probes" warning and don't
output the print statement.

So I need to better understand why probes can be skipped. Is there a
reason why constructor probes in the userspace would be skipped? Can I
find out which probes were skipped and why?

Thanks!
Hassan

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

* Re: Skipped Probes for userspace constructors, Why?
  2008-11-10 19:58 Skipped Probes for userspace constructors, Why? Hassan Radwan
@ 2008-11-23 17:07 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2008-11-23 17:07 UTC (permalink / raw)
  To: Hassan Radwan; +Cc: systemtap

"Hassan Radwan" <HassanR@avi.com> writes:

> [...]
> I have a simple script written to try and understand when the
> constructor is called for the classes in an application. [...]
> probe process("a.out").function("FooConstructor") [...]
> [...]
> $ sudo stap foo.stp -c a.out
> WARNING: Number of errors: 0, skipped probes: 195

If able, build yourself a new copy of systemtap out of the git tree,
and run your test with the "-t" (timing) flag.  You should get more
detailed counts about what skipped.  I believe there was also a bug
fixed related to the new MAXUPROBES configurable, which may have 
enabled a much smaller number of uprobes than intended.


- FChE

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

end of thread, other threads:[~2008-11-23 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-10 19:58 Skipped Probes for userspace constructors, Why? Hassan Radwan
2008-11-23 17:07 ` Frank Ch. Eigler

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