diff options
| author | Masami Hiramatsu <[email protected]> | 2009-01-06 14:41:52 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-01-06 15:59:21 -0800 |
| commit | e8386a0cb22f4a2d439384212c494ad0bda848fe (patch) | |
| tree | 84c462bccddead49c0e2c0dcfcc0f70cd9cf60f7 /tools/perf/scripts/python | |
| parent | 017c39bdb1b3ac1da6db339474a77b528043c05a (diff) | |
kprobes: support probing module __exit function
Allows kprobes to probe __exit routine. This adds flags member to struct
kprobe. When module is freed(kprobes hooks module_notifier to get this
event), kprobes which probe the functions in that module are set to "Gone"
flag to the flags member. These "Gone" probes are never be enabled.
Users can check the GONE flag through debugfs.
This also removes mod_refcounted, because we couldn't free a module if
kprobe incremented the refcount of that module.
[[email protected]: document some locking]
[[email protected]: bugfix: pass aggr_kprobe to arch_remove_kprobe]
[[email protected]: bugfix: release old_p's insn_slot before error return]
Signed-off-by: Masami Hiramatsu <[email protected]>
Acked-by: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anil S Keshavamurthy <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions