* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
@ 2011-10-14 12:29 ` rrakus at fedoraproject dot org
2011-10-14 12:36 ` fche at redhat dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rrakus at fedoraproject dot org @ 2011-10-14 12:29 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=13296
Roman Rakus <rrakus at fedoraproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rrakus at fedoraproject dot
| |org
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
2011-10-14 12:29 ` [Bug translator/13296] " rrakus at fedoraproject dot org
@ 2011-10-14 12:36 ` fche at redhat dot com
2011-10-14 13:56 ` sergiodj at redhat dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fche at redhat dot com @ 2011-10-14 12:36 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=13296
--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> 2011-10-14 12:35:34 UTC ---
readelf -x .note.stapsdt bash-prev
Hex dump of section '.note.stapsdt':
0x00000000 08000000 53000000 03000000 73746170 ....S.......stap
0x00000010 73647400 791e4300 00000000 6af74b00 sdt.y.C.....j.K.
0x00000020 00000000 70fc6d00 00000000 62617368 ....p.m.....bash
0x00000030 00626173 685f6675 6e637469 6f6e5f63 .bash_function_c
0x00000040 616c6c00 2d34406c 696e655f 6e756d62 all.-4@line_numb
0x00000050 65722825 72697029 20384025 72736920 er(%rip) 8@%rsi
0x00000060 38402572 62700000 8@%rbp..
nm bash-prev| grep line_number
000000000042df70 T executing_line_number
00000000006e12e0 b function_line_number
00000000006dfdb4 B line_number
00000000006dfdb0 B line_number_base
00000000006e12d8 b line_number_for_err_trap
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
2011-10-14 12:29 ` [Bug translator/13296] " rrakus at fedoraproject dot org
2011-10-14 12:36 ` fche at redhat dot com
@ 2011-10-14 13:56 ` sergiodj at redhat dot com
2011-10-18 13:18 ` mjw at redhat dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sergiodj at redhat dot com @ 2011-10-14 13:56 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=13296
Sergio Durigan Junior <sergiodj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sergiodj at redhat dot com
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
` (2 preceding siblings ...)
2011-10-14 13:56 ` sergiodj at redhat dot com
@ 2011-10-18 13:18 ` mjw at redhat dot com
2011-12-01 2:51 ` fche at redhat dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mjw at redhat dot com @ 2011-10-18 13:18 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=13296
Mark Wielaard <mjw at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjw at redhat dot com
--- Comment #2 from Mark Wielaard <mjw at redhat dot com> 2011-10-18 13:17:52 UTC ---
(In reply to comment #0)
> However, we should at least attempt to resolve globals in the symbol
> table, within sdt_uprobe_var_expanding_visitor::visit_target_symbol_arg.
Note we already have dwflpp::vardie_from_symtable() to do that.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
` (3 preceding siblings ...)
2011-10-18 13:18 ` mjw at redhat dot com
@ 2011-12-01 2:51 ` fche at redhat dot com
2014-02-08 8:40 ` kalvdans at gmail dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fche at redhat dot com @ 2011-12-01 2:51 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=13296
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |scox at redhat dot com
--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> 2011-12-01 02:50:24 UTC ---
*** Bug 12690 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
` (4 preceding siblings ...)
2011-12-01 2:51 ` fche at redhat dot com
@ 2014-02-08 8:40 ` kalvdans at gmail dot com
2014-05-05 20:24 ` jlebon at redhat dot com
2014-05-09 20:39 ` jlebon at redhat dot com
7 siblings, 0 replies; 9+ messages in thread
From: kalvdans at gmail dot com @ 2014-02-08 8:40 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=13296
chn <kalvdans at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kalvdans at gmail dot com
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
` (5 preceding siblings ...)
2014-02-08 8:40 ` kalvdans at gmail dot com
@ 2014-05-05 20:24 ` jlebon at redhat dot com
2014-05-09 20:39 ` jlebon at redhat dot com
7 siblings, 0 replies; 9+ messages in thread
From: jlebon at redhat dot com @ 2014-05-05 20:24 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=13296
Jonathan Lebon <jlebon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jlebon at redhat dot com
--- Comment #4 from Jonathan Lebon <jlebon at redhat dot com> ---
The branch jlebon/pr13296 contains patches to support this now. More precisely,
we also pick up STT_OBJECT symbols from the symbol table, which we then try to
use if we meet such an operand.
Example:
$ cat prog.c
#include "sys/sdt.h"
int globalvar = 3;
int main(int argc, char **argv)
{
globalvar += argc;
STAP_PROBE1(test, mymark, globalvar);
return 0;
}
$ gcc prog.c -o prog -I../install/include -DSTAP_SDT_ARG_CONSTRAINT=m
$ readelf --notes prog | tail -n 7
Notes at offset 0x00001088 with length 0x0000004c:
Owner Data size Description
stapsdt 0x00000037 NT_STAPSDT (SystemTap probe
descriptors)
Provider: test
Name: mymark
Location: 0x000000000040050c, Base: 0x00000000004005b0, Semaphore:
0x0000000000000000
Arguments: -4@globalvar(%rip)
$ stap -e 'probe process.mark("mymark") { printf("globalvar is %d\n", $arg1) }'
-c ./prog
globalvar is 4
$
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug translator/13296] inaccessible sdt.h operands of the form symbol(%reg)
2011-10-14 12:15 [Bug translator/13296] New: inaccessible sdt.h operands of the form symbol(%reg) fche at redhat dot com
` (6 preceding siblings ...)
2014-05-05 20:24 ` jlebon at redhat dot com
@ 2014-05-09 20:39 ` jlebon at redhat dot com
7 siblings, 0 replies; 9+ messages in thread
From: jlebon at redhat dot com @ 2014-05-09 20:39 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=13296
Jonathan Lebon <jlebon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Jonathan Lebon <jlebon at redhat dot com> ---
Merged into master under commit b8688ee.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread