Bug 13429 - sdt-v3 x86-64, Can't parse SDT_V3 operand '%fs:40(%rbx)
Summary: sdt-v3 x86-64, Can't parse SDT_V3 operand '%fs:40(%rbx)
Status: NEW
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 16:04 UTC by Frank Ch. Eigler
Modified: 2020-05-13 01:08 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
libgomp.so containing the SDT_V3 errors (99.53 KB, application/octet-stream)
2011-11-22 18:50 UTC, Chris Meek
Details
libgomp.so containing the SDT_V3 errors (99.54 KB, application/octet-stream)
2011-11-22 21:37 UTC, Chris Meek
Details
i686 libgomp.so containing the SDT_V3 errors (101.09 KB, application/octet-stream)
2011-11-22 21:44 UTC, Chris Meek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2011-11-22 16:04:38 UTC
It looks like we need some x86 segmentation-based addressing too.
Comment 1 Chris Meek 2011-11-22 18:50:53 UTC
Created attachment 6071 [details]
libgomp.so containing the SDT_V3 errors

I've attached the libgomp.so I hand-built, that has the SDT_V3 errors in it.
Comment 2 Chris Meek 2011-11-22 21:37:15 UTC
Created attachment 6072 [details]
libgomp.so containing the SDT_V3 errors
Comment 3 Chris Meek 2011-11-22 21:44:57 UTC
Created attachment 6073 [details]
i686 libgomp.so containing the SDT_V3 errors
Comment 4 Stan Cox 2011-12-13 20:31:37 UTC
In an internal context, %fs:0 contains the linear base address of the tls segment.  In an external context, the base address is available via ptrace:

    i386: PTRACE_GET_THREAD_AREA
  x86_64: PTRACE_ARCH_PRCTL
Comment 5 Frank Ch. Eigler 2020-05-13 01:08:48 UTC
For the dwarf register numbers, figure 3.36 in:
https://refspecs.linuxbase.org/elf/x86_64-abi-0.99.pdf

Segment Register ES 50 %es
Segment Register CS 51 %cs
Segment Register SS 52 %ss
Segment Register DS 53 %ds
Segment Register FS 54 %fs
Segment Register GS 55 %gs