summaryrefslogtreecommitdiffstats
path: root/tests/deleted.c
Commit message (Collapse)AuthorAgeFilesLines
* Skip deleted test if fork(2) is unavailableUlf Hermann2017-05-081-0/+14
| | | | | Change-Id: Ib52e92c34c5bd387b1e6310bb42d9102a639f262 Reviewed-by: Christian Kandeler <[email protected]>
* Reduce scope of some includesPino Toscano2015-06-271-0/+2
| | | | | | | | Use some includes only according to the #ifdef block of the respective code, or matching the fact they are Linux-only. This way, includes potentially unportable are not unconditionally used. Signed-off-by: Pino Toscano <[email protected]>
* tests: Make deleted and vdsosyms testcases work with "restricted ptrace".Mark Wielaard2015-01-161-0/+6
| | | | | | | | | | | Some systems might have "restricted ptrace" that doesn't allow process inspection of arbitrary processes. Change the deleted testcase to explicitly allow any other process to inspect it using the PR_SET_PTRACER prctl set to PR_SET_PTRACER_ANY. Change the vdsosyms testcase to inspect the process itself which should always be allowed. Reported-by: Anatol Pomozov <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Fix resolving ELF symbols for live PIDs with deleted filesJan Kratochvil2014-08-291-0/+50
For deleted shared library files the offsets to the symbol table were calculated wrongly from the phdrs because the main_bias wasn't taken into account. Formerly shared libraries did not get resolved properly: #2 0x00007fc4d86c56d6 #3 0x0000000000400938 main Fixed elfutils produce: #2 0x00007f61094876d6 libfunc #3 0x0000000000400938 main Signed-off-by: Jan Kratochvil <[email protected]>