Re: [ia64][patch] Refuse inserting kprobe on slot 1
From: Keshavamurthy Anil S
Date: Thu Jun 23 2005 - 18:51:37 EST
On Wed, Jun 22, 2005 at 07:32:42PM -0700, Rusty Lynch wrote:
>
> +
> + if (slot == 1) {
Rusty, this is wrong. You should fail only
if (slot == 1) && (bundle_encoding[template][1] != L) {
This is because for MLX template we will actually be patching
the instruction on slot = 2 and not on slot 1.
> + printk(KERN_WARNING "Inserting kprobes on slot #1 "
> + "is not supported\n");
> + return -EINVAL;
> + }
> +
> return 0;
> }
>
-Anil
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/