Tracing with utrace, some questions

2010-10-10 Thread Ali Polatel
Hi, I'm trying to write a simple module that will abort socket() calls for the attached process. It's nothing serious, just for learning purposes. What I have so far is largely based on crash-suspend.c so I didn't feel the need to share any source code. I can, however, if need be. I have a few

Re: Tracing with utrace, some questions

2010-10-10 Thread Roland McGrath
1. From what I've read in the DocBook pages I've figured out that I have to have two report entries. One for syscall_entry and one for syscall_exit. On syscall_entry I should use syscall_get_nr() and check if this number is equal to __NR_socket and return UTRACE_SYSCALL_ABORT in that case and