Summary: | STAP probe map_failed is no longer generated. | ||
---|---|---|---|
Product: | glibc | Reporter: | Andrew Burgess <aburgess> |
Component: | dynamic-link | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | WAITING --- | ||
Severity: | normal | CC: | adhemerval.zanella, fche, lsix, pedro, simon.marchi |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | Remove the map_failed probe. |
Description
Andrew Burgess
2022-11-22 12:29:59 UTC
Patch looks ok, thanks. It also needs to remove the map_failed entry from elf/rtld-debugger-interface.txt, since it is not used anymore. Could you send the patch on libc-alpha please? IWBN if glibc had some kind of test that ensured that all the meant-to-be-exported probes are really exported, to catch such a problem from happening again. Interesting! To Pedro's question, enumerating probes in a compiled libc is a matter of a perf or readelf or stap command, not a problem. Such a thing could be a test case that matches the manual/probes.texi list against what turns out to be compiled. Consumers such as gdb should not assume/assert the existence of any particular probe, if at all possible. (In reply to Frank Ch. Eigler from comment #3) > Interesting! > > To Pedro's question, enumerating probes in a compiled libc is a matter of a > perf or readelf or stap command, not a problem. Such a thing could be a > test case that matches the manual/probes.texi list against what turns out to > be compiled. > > Consumers such as gdb should not assume/assert the existence of any > particular probe, if at all possible. We have a internal script (scripts/glibcelf.py) which has ELF parse support to check against the elf/elf.h header definition, it should be feasible to extend it support stapsdt notes and compare against the ones described in manual/probes.texi (which could be obtained with another script). |