Re: [PATCH] kprobes for 2.5.30

Linus Torvalds (torvalds@transmeta.com)
Tue, 6 Aug 2002 09:35:17 -0700 (PDT)


On Tue, 6 Aug 2002, Rusty Russell wrote:
>
> > You mean _exception_ handlers. It's definitely not unnecessary. Exceptions
> > can very much be preempted.
>
> The patch changes traps 1 and 3 (debug & int3) to interrupt gates
> though.

Yes, but then it enables interrupts at one point.

And I'm not saying that is wrong - I'm saying that the warning is really
because you didn't tell the kernel that it was _not_ wrong. The warning is
a "I got called with interrupts disabled, not nobody actually told me that
I shouldn't reschedule. I will refuse to reschedule (exactly because
interrupts weren't enabled), but I don't like the fact that somebody
apparently did things behind my back".

Think of the kernel as a grumpy girlfriend that you just stood up, and
bring flowers next time.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/