155 lines
3.7 KiB
HTML
155 lines
3.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of S390_RUNTIME_INSTR</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>S390_RUNTIME_INSTR</H1>
|
|
Section: System Calls (2)<BR>Updated: 2019-03-06<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
s390_runtime_instr - enable/disable s390 CPU run-time instrumentation
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<PRE>
|
|
<B>#include <<A HREF="file:///usr/include/asm/runtime_instr.h">asm/runtime_instr.h</A>></B>
|
|
|
|
<B>int s390_runtime_instr(int </B><I>command</I><B>, int </B><I>signum</I><B>);</B>
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>s390_runtime_instr</B>()
|
|
|
|
system call starts or stops CPU run-time instrumentation for the
|
|
calling thread.
|
|
<P>
|
|
|
|
The
|
|
<I>command</I>
|
|
|
|
argument controls whether run-time instrumentation is started
|
|
(<B>S390_RUNTIME_INSTR_START</B>,
|
|
|
|
1) or stopped
|
|
(<B>S390_RUNTIME_INSTR_STOP</B>,
|
|
|
|
2) for the calling thread.
|
|
<P>
|
|
|
|
The
|
|
<I>signum</I>
|
|
|
|
argument specifies the number of a real-time signal.
|
|
The real-time signal is sent to the thread if the run-time instrumentation
|
|
buffer is full or if the run-time-instrumentation-halted interrupt
|
|
occurred.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
On success,
|
|
<B>s390_runtime_instr</B>()
|
|
|
|
returns 0 and enables the thread for
|
|
run-time instrumentation by assigning the thread a default run-time
|
|
instrumentation control block.
|
|
The caller can then read and modify the control block and start the run-time
|
|
instrumentation.
|
|
On error, -1 is returned and
|
|
<I>errno</I>
|
|
|
|
is set to one of the error codes listed below.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ERRORS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>EINVAL</B>
|
|
|
|
<DD>
|
|
The value specified in
|
|
<I>command</I>
|
|
|
|
is not a valid command or the value specified in
|
|
<I>signum</I>
|
|
|
|
is not a real-time signal number.
|
|
<DT id="2"><B>ENOMEM</B>
|
|
|
|
<DD>
|
|
Allocating memory for the run-time instrumentation control block failed.
|
|
<DT id="3"><B>EOPNOTSUPP</B>
|
|
|
|
<DD>
|
|
The run-time instrumentation facility is not available.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>VERSIONS</H2>
|
|
|
|
This system call is available since Linux 3.7.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
This Linux-specific system call is available only on the s390 architecture.
|
|
The run-time instrumentation facility is available beginning with System z EC12.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
Glibc does not provide a wrapper for this system call, use
|
|
<B><A HREF="/cgi-bin/man/man2html?2+syscall">syscall</A></B>(2)
|
|
|
|
to call it.
|
|
<P>
|
|
|
|
The
|
|
<I>asm/runtime_instr.h</I>
|
|
|
|
header file is available
|
|
|
|
since Linux 4.16.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?2+syscall">syscall</A></B>(2),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></B>(7)
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="7"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="8"><A HREF="#lbAF">ERRORS</A><DD>
|
|
<DT id="9"><A HREF="#lbAG">VERSIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAH">CONFORMING TO</A><DD>
|
|
<DT id="11"><A HREF="#lbAI">NOTES</A><DD>
|
|
<DT id="12"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="13"><A HREF="#lbAK">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:34 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|