Re: [PATCH -tip v5 06/10] kprobes/x86: Cleanup save/restore registers

From: Frank Ch. Eigler
Date: Tue Nov 24 2009 - 10:41:19 EST


Frederic Weisbecker <fweisbec@xxxxxxxxx> writes:

> [...]
>> +#define SAVE_REGS_STRING \
>> +#define RESTORE_REGS_STRING \
>
> BTW, do you really need to push/pop every registers
> before/after calling a probe handler?

It's part of the definition of a kprobe, that a populated
pt_regs* value is passed. Clients can rely on that in order
to access registers etc.

- FChE
--
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/