Re: [PATCH 3/4] x86: open-code register save/restore in trace_hardirqs thunks

From: Linus Torvalds
Date: Sat Jan 10 2015 - 17:07:29 EST


On Sat, Jan 10, 2015 at 2:00 PM, Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:
> + pushq_cfi %rdi
> + CFI_REL_OFFSET rdi, 0
> + pushq_cfi %rsi
> + CFI_REL_OFFSET rsi, 0
> + pushq_cfi %rdx
> + CFI_REL_OFFSET rdx, 0
..
Ugh.

This is too ugly, it needs to die.

Why doesn't pushq_cfi do that CFI_REL_OFFSET thing?

And if there is some good reason why, then please let's just make sure
that there is a sane way to write pushes and pops, without having that
insane CFI crap for every single damn case.

Because this is unreadable.

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