public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11089] New: process.mark() probes with same name trigger wrongly
@ 2009-12-14 12:31 mjw at redhat dot com
  2009-12-14 13:59 ` [Bug translator/11089] " mjw at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mjw at redhat dot com @ 2009-12-14 12:31 UTC (permalink / raw)
  To: systemtap

When a process.mark() probe is in the .probes section multiple times with
different addresses it looks like only one address is being triggered for a
probe on the mark() for that name (and it is triggered multiple times for that
one address).

One example is the cxxclass.exp test on i386:

> $ stap ./systemtap.base/cxxclass.stp cxxclass.exe -c ./cxxclass.exe
> main_enter
> call: 64
> cons call: 64
> cons call: 64
> meth call: 64 24
> meth call: 64 24
> dest call: 42
> dest call: 42
> call2: 24
> main_exit
> 
> Seems there is double call on process.mark.

The issue seems to be that some of the static probe points get
duplicated in the code. This shouldn't be a problem, and the .probes
section does contain both places with different addresses. You can also
see (with enough -vvvvv) that stap finds both locations while resolving
the mark("cons") probe. But, only the first is registered twice, as can
be seen in the generated code:

  { .address=(unsigned
long)0x8048476ULL,
.pp="process(\"/home/mark/src/systemtap/testsuite/cxxclass.exe\").statement(134513782)",
.ph=&probe_1895, },
  { .address=(unsigned
long)0x8048476ULL,
.pp="process(\"/home/mark/src/systemtap/testsuite/cxxclass.exe\").statement(134513782)",
.ph=&probe_1895, },

This means the first call of the constructor is triggered as probe twice
(as is the method, and destructor call) but the second call isn't
triggered as probe at all.

It looks like this is a problem in how sdt_query::convert_location() is
called (it seems to do duplication detection based on probe name, but
not address. I haven't looked very deeply into it yet though.

-- 
           Summary: process.mark() probes with same name trigger wrongly
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

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

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

* [Bug translator/11089] process.mark() probes with same name trigger wrongly
  2009-12-14 12:31 [Bug translator/11089] New: process.mark() probes with same name trigger wrongly mjw at redhat dot com
@ 2009-12-14 13:59 ` mjw at redhat dot com
  2009-12-14 16:59 ` fche at redhat dot com
  2009-12-14 19:51 ` scox at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mjw at redhat dot com @ 2009-12-14 13:59 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-12-14 13:59 -------
Seeing the same issue on x86_64 btw, so it isn't i386 specific.
GCC: 4.4.2 [gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)]

-- 


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

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

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

* [Bug translator/11089] process.mark() probes with same name trigger wrongly
  2009-12-14 12:31 [Bug translator/11089] New: process.mark() probes with same name trigger wrongly mjw at redhat dot com
  2009-12-14 13:59 ` [Bug translator/11089] " mjw at redhat dot com
@ 2009-12-14 16:59 ` fche at redhat dot com
  2009-12-14 19:51 ` scox at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2009-12-14 16:59 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |10907
              nThis|                            |


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

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

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

* [Bug translator/11089] process.mark() probes with same name trigger wrongly
  2009-12-14 12:31 [Bug translator/11089] New: process.mark() probes with same name trigger wrongly mjw at redhat dot com
  2009-12-14 13:59 ` [Bug translator/11089] " mjw at redhat dot com
  2009-12-14 16:59 ` fche at redhat dot com
@ 2009-12-14 19:51 ` scox at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: scox at redhat dot com @ 2009-12-14 19:51 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |scox at redhat dot com
                   |redhat dot com              |
             Status|NEW                         |ASSIGNED


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

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

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

end of thread, other threads:[~2009-12-14 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-14 12:31 [Bug translator/11089] New: process.mark() probes with same name trigger wrongly mjw at redhat dot com
2009-12-14 13:59 ` [Bug translator/11089] " mjw at redhat dot com
2009-12-14 16:59 ` fche at redhat dot com
2009-12-14 19:51 ` scox 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).