lkml.org 
[lkml]   [2015]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 14/17] x86/asm/entry/64: Migrate error and interrupt exit work to C
On Thu, Jul 02, 2015 at 09:09:23AM -0700, Andy Lutomirski wrote:
> You mean link-time asm optimizations? Turning off frame pointers in
> leaf functions as long as rbp is still preserved might not be so
> terrible either.

Is there a gcc switch for that?

> I'm torn on this one. In principle, you're right, or we could have a
> macro CALL_ENTER_FROM_USER_MODE that does nothing if context tracking
> is off. OTOH, that's also kind of messy.

Yeah, I'm torn too.

If you have something better, cool. Otherwise it is a judgement call for
tip people.

> If we move even more of this stuff into C, then this problem goes
> away. "call enter_from_user_mode" turns into "enter_from_user_mode()"
> or similar.

... and that should be optimized away, I'd guess, if the body's empty.
Something like empty body removal or whatever...

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--


\
 
 \ /
  Last update: 2015-07-02 18:41    [W:0.116 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site