liblockdep: Support using LD_PRELOAD
authorSasha Levin <sasha.levin@oracle.com>
Thu, 13 Jun 2013 22:41:22 +0000 (18:41 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 Nov 2013 10:55:24 +0000 (11:55 +0100)
commit231941eec8aeee4f0ac210a28e484200b20f74d8
tree233f03185b68f97f7963e4686b4cad65001c24d0
parentdbe941827eab53194eda5cd350a4e1414f192658
liblockdep: Support using LD_PRELOAD

This allows lockdep to be used without being compiled in the
original program.

Usage is quite simple:

LD_PRELOAD=/path/to/liblockdep.so /path/to/my/program

And magically, you'll have lockdep checking in your program!

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: torvalds@linux-foundation.org
Link: http://lkml.kernel.org/r/1371163284-6346-8-git-send-email-sasha.levin@oracle.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/lib/lockdep/preload.c [new file with mode: 0644]