Subject: Re: mach traps display in kdump
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 11/14/2002 04:29:48
In article <1flm8o6.1rs48kc1ooy4pjM@[10.0.12.137]>,
Emmanuel Dreyfus <manu@netbsd.org> wrote:
>Hi all
>
>I'd like to have mach traps correctly displayed in kdump, but to do this
>I need to correctly record them in the kernel.
>
>Mach traps are negative syscall numbers, and we make them positive at
>the beginning of the system call handler. I need the original negative
>syscall number to be stored in the trace.
>
>The simplier way, as far as I see, would be to add a realcode argument
>to trace_enter, ktrsyscall, trace_exit and ktrsysret. In code we would
>have the positive syscall number, and in realcode the original syscall
>number, possibly negative.
>
>Comment? Any idea why it would be a bad idea?

Why don't we just put the real number there, and have kdump deal with it?

christos