Messages in this thread | | | Subject | Re: Bug: Tracing recursive system calls | Date | Tue, 8 Jun 1999 00:27:39 +0100 (BST) | From | Alan Cox <> |
| |
> You can reproduce the problem by stracing a system call which, for > instance, tries to load a module. i.e. open() of a device whose module > is not loaded.
Chuckle.
> I don't think user-space debuggers should need to know about the > internals of the kernel, and so there is no reason to keep this. >
Yep
> arch/i386/kernel/ptrace.c:syscall_trace (and similarly for other arches) > to see if the syscall was made from kernel mode. If so, the parent > should not be notified.
Thats the fast path though. I think you just need to clear the ptrace flags in kernel_thread()
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |