aboutsummaryrefslogtreecommitdiff
path: root/lib/libproc
Commit message (Collapse)AuthorAgeFilesLines
* - Compute the correct size to reallocate when doubling the size of theJohn Baldwin2013-01-281-1/+2
| | | | | | | | | | | | array of loaded objects to avoid a buffer overrun. - Use reallocf() to avoid leaking memory if the realloc() fails. PR: kern/175648 Submitted by: yuri@rawbw.com (1) MFC after: 1 week Notes: svn path=/head/; revision=246035
* Fix libproc test case to work with clang premature optimizationSergey Kandaurov2012-12-261-1/+1
| | | | | | | | | | | | | observed with -O2 (used by default). Avoid function inlining for t1_bkpt_t on which we set a breakpoint. Otherwise the address of the function is never called thus the breakpoint never triggers. Reported by: zont Reviewed by: rpaulo Notes: svn path=/head/; revision=244692
* Implement DTrace for PowerPC. This includes both 32-bit and 64-bit.Justin Hibbits2012-11-072-0/+11
| | | | | | | | | | | | | | There is one known issue: Some probes will display an error message along the lines of: "Invalid address (0)" I tested this with both a simple dtrace probe and dtruss on a few different binaries on 32-bit. I only compiled 64-bit, did not run it, but I don't expect problems without the modules loaded. Volunteers are welcome. MFC after: 1 month Notes: svn path=/head/; revision=242723
* When calling the C++ demangler, make sure to free the returned buffer,Rui Paulo2012-09-071-6/+24
| | | | | | | | | which might have been reallocated. Pointed out by: stefanf Notes: svn path=/head/; revision=240182
* Add support for demangling C++ symbols. This requires linking libproc withRui Paulo2012-09-062-2/+22
| | | | | | | | | libc++rt/libsupc++. Discussed with: theraven Notes: svn path=/head/; revision=240156
* Fix test cases to work with the latest version of the API.Rui Paulo2012-09-062-3/+4
| | | | Notes: svn path=/head/; revision=240154
* Make sure we visit both symbol sections even if one of them doesn'tRui Paulo2012-09-021-24/+21
| | | | | | | exist. This makes it possible to dtrace some C++ programs like devd. Notes: svn path=/head/; revision=240040
* Make libproc compilable for MIPSOleksandr Tymoshenko2012-03-232-0/+11
| | | | Notes: svn path=/head/; revision=233402
* fix a serious bug in libproc's proc_attachAndriy Gapon2011-08-031-2/+1
| | | | | | | | | | | | | proc_attach always frees any struct proc_handle data that it allocates, but that is supposed to be done only in error conditions. PR: bin/158431 Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224632
* Fix a memory leak on the error conditionKevin Lo2010-12-141-1/+1
| | | | | | | Reviewed by: rpaulo Notes: svn path=/head/; revision=216432
* Ignore EINTR when calling waitpid.Rui Paulo2010-09-181-1/+2
| | | | Notes: svn path=/head/; revision=212831
* Several fixes for libproc:Rui Paulo2010-08-115-9/+25
| | | | | | | | | | | o return the correct status in proc_wstatus() o proc_read takes a void * o correctly allocate the objs structure array Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=211184
* Revert SHLIB_MAJOR to 2.Rui Paulo2010-07-311-1/+1
| | | | | | | | As discussed with kan@, since DTrace is the only consumer of libproc right now, there's no need for a major shlib bump. Notes: svn path=/head/; revision=210694
* Bump the shared library major version due to ABI conflicts.Rui Paulo2010-07-311-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210689
* New version of libproc. Changes are:Rui Paulo2010-07-3116-76/+1316
| | | | | | | | | | | | | | * breakpoint setup support * register query * symbol to address mapping and vice-versa * more misc utility functions based on their Solaris counterpart Also, I've written some test cases. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210688
* Removed redundant -I. from CFLAGS and "yes" from WITHOUT_MAN.Ruslan Ermilov2010-02-251-2/+2
| | | | Notes: svn path=/head/; revision=204338
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* Merge latest DTrace changes from Perforce.Craig Rodrigues2008-11-052-3/+10
| | | | | | | | | Update libproc API to reflect new changes. Approved by: jb Notes: svn path=/head/; revision=184697
* Add the Makefile for the process library which was missed in the previousJohn Birrell2008-05-221-0/+20
| | | | | | | commit. Notes: svn path=/head/; revision=179186
* Add a process library with some stubs that the DTrace client needs.John Birrell2008-05-225-0/+473
These will be fleshed out as part of the DTrace userland tracing development. For now, the kernel tracing part of DTrace requires minimal functionality for this library. The API for this library is deliberately different from the libproc in OpenSolaris due to licensing restrictions. Notes: svn path=/head/; revision=179185