[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:
parent
7465f3c2f0
commit
4a7a4f256a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user