modify prototype of ttrace_extension_write()