Re: Q: UTRACE_SYSCALL_RESUMED logic

2009-11-23 Thread Roland McGrath
> On 11/18, Roland McGrath wrote: > > > > > In any case, what is the rationality? > > > > The rationale is that if you see utrace_resume_action(action)==UTRACE_STOP > > in your callback, then you know another engine asked for stop > > Yes, but engine can't know if the next one is going to return >

Re: Q: UTRACE_SYSCALL_RESUMED logic

2009-11-23 Thread Oleg Nesterov
On 11/18, Roland McGrath wrote: > > > In any case, what is the rationality? > > The rationale is that if you see utrace_resume_action(action)==UTRACE_STOP > in your callback, then you know another engine asked for stop Yes, but engine can't know if the next one is going to return UTRACE_STOP. > a

Re: Q: UTRACE_SYSCALL_RESUMED logic

2009-11-18 Thread Roland McGrath
> Just can't understand UTRACE_SYSCALL_RESUMED code. You understand too well! :-) > To the pointed, I tried to read the docs: > > * When %UTRACE_STOP is used in @report_syscall_entry, then @task > * stops before attempting the system call. In this case, another > * @report_sys

Q: UTRACE_SYSCALL_RESUMED logic

2009-11-18 Thread Oleg Nesterov
Just can't understand UTRACE_SYSCALL_RESUMED code. To the pointed, I tried to read the docs: * When %UTRACE_STOP is used in @report_syscall_entry, then @task * stops before attempting the system call. In this case, another * @report_syscall_entry callback follows after @t