lkml.org 
[lkml]   [2008]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86: Implement prctl PR_GET_TSC and PR_SET_TSC


On Mon, 14 Apr 2008, Michael Kerrisk wrote:

> Erik,
>
> Could you CC me please on kernel-userland API changes.
>
> Also it would be helpful if you could provide a short paragraph
> (plaintext is fine) that describes the new commands and would be
> suitable for inclusion in the prctl.2 (
> http://www.kernel.org/doc/man-pages/online/pages/man2/prctl.2.html )
> man page -- would that be possible?
>
> Cheers,
>
> Michael
>

.TP
.B PR_SET_TSC
(Since Linux 2.6.??, only on x86)
Set the state of the flag determining whether the timestamp counter
can be read by the process. Pass
\fBPR_TSC_ENABLE\fP to \fIarg2\fP to allow it to be read, or
\fBPR_TSC_SIGSEGV\fP to generate a \fBSIGSEGV\fP when the process tries
to read the timestamp counter.
.TP
.B PR_GET_TSC
(Since Linux 2.6.??, only on x86)
Get the state of the flag determining whether the timestamp counter
can be read from \fIarg2\fP.

This is what I would say. I hope it's clear.

Erik


\
 
 \ /
  Last update: 2008-04-14 14:03    [W:0.156 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site