From: John K. <jk...@ca...> - 2005-04-07 19:22:20
|
case CMD_SOFTTRACE_OFF: in function pi_trace_ioctl was doing pi_timer_hook(DHOOKS_REGISTER) instead of pi_timer_hook(DHOOKS_UNREGISTER) I fixed this: with the following patch. (already checked in) RCS file: /cvsroot/perfinsp/beta_03/Dpiperf/driver/pi_ioctl.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -p -r1.5 -r1.6 --- pi_ioctl.c 5 Apr 2005 21:13:31 -0000 1.5 +++ pi_ioctl.c 7 Apr 2005 19:13:55 -0000 1.6 @@ -654,7 +654,7 @@ int pitrace_ioctl(struct inode *inode, s mec_table[17]=0; mec_table[25]=0; - pi_timer_hook(DHOOKS_REGISTER); + pi_timer_hook(DHOOKS_UNREGISTER); pi_kprobes(DHOOKS_UNREGISTER); pi_sys_hooks(DHOOKS_UNREGISTER); break; Luckily, the reference counts in the pi_timer_hook function prevented the extra calls to register the hook from causing any damage. |