This was really useful in tracking down the PIE*FLAGS issue in QA (which
in the end turned out to have nothing to do with a locking regression,
oh well) ... I think this change can safely go into 3.6.5 as it is not
compiled into the shipped version of the library.
Changes committed to git://oss.sgi.com/kenj/pcp.git dev
configure | 23 +++++++++++++++++++++++
configure.in | 2 ++
src/include/pcp/platform_header.h.in | 2 ++
src/libpcp/src/lock.c | 24 ++++++++++++++++++++++++
4 files changed, 51 insertions(+)
commit e44c3772ddb3b7cfa4a47f01123699547de185c6
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon Jul 30 21:19:03 2012 +1000
Add call backtrace for lock debug instrumentation
This is only used in QA, but needs to be in the mainline code base.
This change allows us to report the procedure call traceback at each
lock and unlock operation, which is most useful for lock recursion
and lock hierarchy inversion bugs should they arise.
None of this is compiled into the shipped versions of libpcp.
|