summaryrefslogtreecommitdiffstats
path: root/lib/libproc
Commit message (Collapse)AuthorAgeFilesLines
* Enable libproc symbol_lookup tests on arm64emaste2015-08-311-9/+0
| | | | | | | | This reverts part of r286863, as the kernel support required by these tests was added in r287105. PR: 202305 Sponsored by: The FreeBSD Foundation
* Fix libproc on architectures that don't need the program counter to beandrew2015-08-241-1/+10
| | | | | | | | | | adjusted. This seems to be the case on all non-x86 architectures libproc supports. Reviewed by: kib Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3465
* On arm64 disable three tests that hang or panicemaste2015-08-171-0/+9
| | | | | | | | | | Each issue has a PR open to track. This workaround allows us to run the tests to investigate the failures and avoid any new regressions. PR: 202304, 202305, 202307 Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3378
* Make libproc compilable on AArch64.br2015-07-012-12/+26
|
* Add META_MODE support.sjg2015-06-132-0/+26
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-276-17/+89
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-1912-363/+608
| |\
| * \ Merge head from 7/28sjg2014-08-192-18/+21
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+1
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge from headsjg2014-05-088-44/+94
| |\ \ \
| * | | | New/updated dependenciessjg2014-05-051-0/+1
| | | | |
| * | | | Merge headsjg2014-04-2710-55/+117
| |\ \ \ \
| * \ \ \ \ Merge from headsjg2013-09-051-0/+1
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | |
| * | | | | | Updated dependenciessjg2013-02-161-3/+0
| | | | | | |
| * | | | | | Sync with HEAD.obrien2013-02-084-2/+14
| |\ \ \ \ \ \
| * | | | | | | Avoid circular dependency with librtld_dbsjg2012-11-081-0/+2
| | | | | | | |
| * | | | | | | Updated/new Makefile.dependsjg2012-11-081-0/+8
| | | | | | | |
| | | | | | | |
| | \ \ \ \ \ \
| *-. \ \ \ \ \ \ Sync from headsjg2012-11-044-29/+65
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+14
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | Fix underlinkingbapt2015-05-191-0/+2
| | | | | | | | |
* | | | | | | | | Fix debug symbols loading in libproc: 0 is a valid file descriptor.stas2015-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Chris Torek <chris.torek@gmail.com>
* | | | | | | | | Teach libproc how to find debugging symbols in /usr/lib/debug.rpaulo2015-02-131-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week
* | | | | | | | | Initial version of DTrace on ARM32.gnn2015-02-102-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Howard Su based on work by Oleksandr Tymoshenko Reviewed by: ian, andrew, rpaulo, markj
* | | | | | | | | Stop iterating and return if the caller-supplied callback function returnsmarkj2015-01-311-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a non-zero value. MFC after: 1 week
* | | | | | | | | Ensure that we don't try to demangle a symbol name if we failed to lookmarkj2015-01-252-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | up the symbol. Add a test to exercise this code path. Reviewed by: adrian
* | | | | | | | | Fix a memory leak that occured when looking up CTF info for a symbol.markj2014-12-231-1/+4
| | | | | | | | |
* | | | | | | | | Convert libraries to use LIBADDbapt2014-11-251-6/+3
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | While here reduce a bit overlinking
* | | | | | | | Remove an incorrect and useless debug print.markj2014-10-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | X-MFC-With: r272488
* | | | | | | | Hook up support for userland CTF support in DTrace. This required somemarkj2014-10-034-12/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modifications to libproc to support fetching the CTF info for a given file. With this change, dtrace(1) is able to resolve type info for function and USDT probe arguments, and function return values. In particular, the args[n] syntax should now work for referencing arguments of userland probes, provided that the requisite CTF info is available. The uctf tests pass if the test programs are compiled with CTF info. The current infrastructure around the DTrace test suite doesn't support this yet. Differential Revision: https://reviews.freebsd.org/D891 MFC after: 1 month Relnotes: yes Sponsored by: EMC / Isilon Storage Division
* | | | | | | | Factor out some of the duplicated code in the symbol lookup functions, inmarkj2014-09-251-146/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | preparation for adding userland CTF support to DTrace. MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
* | | | | | | | Add some ATF tests for libproc.markj2014-09-2110-201/+423
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: D710 Reviewed by: jmmv, ngie, rpaulo
* | | | | | | | Fix a bug in r265255: only return NULL if the requested map wasn't found.markj2014-08-241-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Luke Chang-Hsien Tsai <luke.tw@gmail.com> MFC after: 1 week
* | | | | | | | In r268463, I misplaced a return in demangle(), causing the function todim2014-08-091-8/+2
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erroneously skip symbols that were not mangled at all. Fix this by moving the return into the preceding if block. While here, simplify the code by letting __cxa_demangle() allocate the needed space for the demangled symbol. This also fixes a memory leak, which would occur whenever __cxa_demangle() failed. Reported by: pgj MFC after: 3 days
* | | | | | | In libproc, avoid calling __cxa_demangle(), and thus depending on eitherdim2014-07-092-18/+21
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libcxxrt or libsupc++, if WITHOUT_CXX is defined. Noticed by: sbruno MFC after: 1 week
* | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | from the latter.
* | | | | | If the traced process stops because it received a signal, libproc needsmarkj2014-05-043-24/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to ensure that the signal is forwarded when proc_continue() is called. MFC after: 3 weeks
* | | | | | Allow "a.out" as an alias for the executable if no other matching entriesmarkj2014-05-034-19/+63
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | are found. This improves compatibility with Solaris' libproc and fixes a number of failing DTrace tests that rely on this feature. MFC after: 3 weeks
* | | | | Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain themarkj2014-04-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | first address after the end of the map entry and should therefore be excluded. MFC after: 2 weeks
* | | | | NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-134-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* | | | | The proper way to request no man pages currently is NO_MAN=xxx. Use itimp2014-04-054-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | in preference to the user WITHOUT_MAN knob, which should never be set in normal src Makefiles.
* | | | | Consistently add the relocation offset only when the ELF type is notmarkj2013-11-111-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ET_EXEC. This fixes several problems with the DTrace pid provider not being able to match probes. Reviewed by: rpaulo MFC after: 2 weeks
* | | | | Modify the libproc breakpoint add/remove functions to stop the targetmarkj2013-11-051-7/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | process if it has not already been stopped, since this is required for ptrace(2) to work. libdtrace does not seem to stop target processes before trying to remove their breakpoints, so we were previously failing to remove the breakpoint on r_debug_state() in rtld. This was causing processes to die with SIGTRAP if they called dlopen(3) after dtrace(1) had detached. Reported by: symbolics@gmx.com Reviewed by: rpaulo MFC after: 1 month
* | | | | Fix an off-by-one error when checking whether a given address is withinmarkj2013-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the extent of a symbol. Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in> Reviewed by: rpaulo MFC after: 1 week
* | | | | Revert r257248 and fix the problem in a way that doesn't violate style(9).markj2013-10-292-4/+3
| | | | | | | | | | | | | | | | | | | | Suggested by: jmg
* | | | | Fix the build with gcc.markj2013-10-281-1/+2
| | | | |
* | | | | Remove an incorrect debug printf.markj2013-10-281-1/+0
| | | | |
* | | | | Clean up the debug printing in libproc a bit. In particular:markj2013-10-276-33/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't print any error messages to stderr unless DEBUG is defined. * Add a DPRINTFX macro for use when errno isn't set. * Print the error string from libelf when appropriate.
OpenPOWER on IntegriCloud