[CTRACER]: At module exit check if we missed any probe

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-27 09:09:04 -02:00
parent 7465f3c2f0
commit 4a7a4f256a
1 changed files with 8 additions and 0 deletions

View File

@ -432,7 +432,15 @@ static void emit_module_exit(void)
"{\n"
" int i = 0;\n"
" while (jprobes[i] != (void *)0) {\n"
" if (jprobes[i]->kp.nmissed)\n"
" printk(\"ctracer: entry: missed %%d %%s\\n\",\n"
" jprobes[i]->kp.nmissed,\n"
" jprobes[i]->kp.symbol_name);\n"
" unregister_jprobe(jprobes[i]);\n"
" if (kretprobes[i]->nmissed)\n"
" printk(\"ctracer: exit: missed %%d %%s\\n\",\n"
" kretprobes[i]->nmissed,\n"
" kretprobes[i]->kp.symbol_name);\n"
" unregister_kretprobe(kretprobes[i]);\n"
" ++i;\n"
" if ((i % 5) == 0)\n"