lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/6] trace: trace syscall in its handler not from ptrace handler
On 03/29/2012 03:44 PM, David Sharp wrote:
>>
>> ANY increase to the fastpath is unacceptable, period.
>
> I think the last 4 ns would probably be eliminated if we could figure
> out how to call the inline function trace_sys_enter directly instead
> of through the out-of-line wrapper we had to add to work around the
> preprocessor magic.

I already told you how to do it... override the system call table entry.
There is a nice, juicy FUNCTION POINTER that we indirect through.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.



\
 
 \ /
  Last update: 2012-03-30 00:51    [W:0.082 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site