lkml.org 
[lkml]   [2002]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Intel P6 vs P7 system call performance
Terje Eggestad wrote:
> what about:
>
> int (*_vsyscall) (int, ...);
> _vsyscall = mmap(NULL, getpagesize(), PROT_READ|PROT_EXEC,
> MAP_VSYSCALL, , );
>
> or if you're afraid of running out of MAP_* flags:
>
> fd = open("/dev/vsyscall", );
> _vsyscall = mmap(NULL, getpagesize(), PROT_READ|PROT_EXEC, MAP_SHARED,
> fd, 0);
>
> Then you can leisurely map it in just after the programs text segment.
>

Very ugly -- then the application has to do indirect calls.

-hpa


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.164 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site