]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: fixes for tracepoint cleanup
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 22 May 2013 23:25:48 +0000 (19:25 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:41:44 +0000 (22:41 +0100)
commitccc041248568286cdb55afb4ceac7e8d35f76246
tree8d1d3c3be71b6cac7d57d8ffebddf758a80f24bf
parentdbe57287d25670b971ff14395326908dbb804344
dtrace: fixes for tracepoint cleanup

Various fixes to handle tracepoint cleanup.  It is important to note that it is
most common that USDT providers will be cleaned up (asynchronously) when the
process/task they relate to is already gone.  We therefore cannot use a (pid,
addr) pair to identify the tracepoint for removal.  The new implementation
stores the (inode, offset) pair calculated right before registering the uprobe,
so that we can use that same pair again when unregistering.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
include/linux/dtrace_os.h
kernel/dtrace/dtrace_os.c