Fix of browser instrumentation problem (#363)
authorNikita Kalyazin <n.kalyazin@samsung.com>
Tue, 3 Jul 2012 16:12:21 +0000 (20:12 +0400)
committerNikita Kalyazin <n.kalyazin@samsung.com>
Tue, 3 Jul 2012 16:16:44 +0000 (20:16 +0400)
commita3af07a302b64b720794f9a7294bd7ceb2b83777
treeeaa58a2e026b559cc3cb857bea32d0589387f607
parentd69a4a875b3a99d2c5aaf8dbaa4ba35ef25d83f6
Fix of browser instrumentation problem (#363)

The fix is raw and needs for some cleanup.
 - Added do_fork handler (separate from do_exit's one);
 - Added arch_disarm_uprobe() call when deferred uprobe unregistering
   (this matters when a process forks while another one is inside the
   insrumented function).
TODO:
 - Consider all the auxiliary handlers (do_exec, do_exit, do_fork);
 - Consider deferred probes management (disarming).
driver/probes_manager.c
driver/us_proc_inst.c
driver/us_proc_inst.h
kprobe/dbi_uprobes.c