1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Command-line operation</title>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF">
<TABLE WIDTH="100%" BORDER="0" BGCOLOR="#000000" CELLPADDING="1" CELLSPACING="0">
<TR>
<TH COLSPAN="4" ALIGN="center">
<FONT COLOR="#FFFFFF" SIZE="5">Linux Trace Toolkit Reference Manual</FONT>
</TH>
</TR>
<TR>
<TD WIDTH="25%" BGCOLOR="#C00000" ALIGN="left">
<A HREF="ltt-colorwindow.html">
<FONT COLOR="#FFFFFF" SIZE="3">
<B><<< Previous Page</B>
</FONT>
</A>
</TD>
<TD WIDTH="25%" BGCOLOR="#0000C0" ALIGN="center">
<A HREF="index.html">
<FONT COLOR="#FFFFFF" SIZE="3">
<B>Home</B>
</FONT>
</A>
</TD>
<TD WIDTH="25%" BGCOLOR="#00C000" ALIGN="center">
<A HREF="index.html">
<FONT COLOR="#FFFFFF" SIZE="3">
<B>Up</B>
</FONT>
</A>
</TD>
<TD WIDTH="25%" BGCOLOR="#C00000" ALIGN="right">
<FONT COLOR="#FFFFFF" SIZE="3">
</FONT>
</TD>
</TR>
</TABLE>
<br>
<font size=6>
<u><b>7. Command scripts</b></u>
</font>
<br>
<br>
Most of the time, the different components are used using similar options
over and over again. Since the components need rather long command lines,
it is desirable to speed-up the common cases. The following scripts help
in this regard.
<p><i><font size=4>7.1 Trace for a certain period of time </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> trace - running the trace daemon
<p><b>SYNOPSIS</b>
<p> trace
<u>Seconds</u> <u>OutFile</u>
<p><b>DESCRIPTION</b>
<p> This will run tracedaemon for the given number of seconds
and will set the output files to be <u>OutFile</u>.trace and <u>OutFile</u>.proc.
It uses /dev/tracer as the device where input should come from.
</ul>
<p><i><font size=4>7.2 Trace core events for a certain period of time </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> tracecore - running the trace daemon while recording core events
<p><b>SYNOPSIS</b>
<p> tracecore
<u>Seconds</u> <u>OutFile</u>
<p><b>DESCRIPTION</b>
<p> This will run tracedaemon for the given number of seconds
and will set the output files to be <u>OutFile</u>.trace and <u>OutFile</u>.proc.
It uses /dev/tracer as the device where input should come from. Contrary to the
previous command, it will only record core events.
</ul>
<p><i><font size=4>7.3 Trace for a certain period of time while recording the CPUID</font></i>
<br>
<ul>
<p><b>NAME</b>
<p> tracecpuid - running the trace daemon while recording the CPUID
<p><b>SYNOPSIS</b>
<p> tracecpuid
<u>Seconds</u> <u>OutFile</u>
<p><b>DESCRIPTION</b>
<p> This will run tracedaemon for the given number of seconds
and will set the output files to be <u>OutFile</u>.trace and <u>OutFile</u>.proc.
It uses /dev/tracer as the device where input should come from. Moreover, it will
set the -c option of tracedaemon.
</ul>
<p><i><font size=4>7.4 Trace for an unlimited period of time </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> traceu - running the trace daemon
<p><b>SYNOPSIS</b>
<p> traceu
<u>OutFile</u>
<p><b>DESCRIPTION</b>
<p> This will run tracedaemon for the given number of seconds
and will set the output files to be <u>OutFile</u>.trace and <u>OutFile</u>.proc.
It uses /dev/tracer as the device where input should come from.
</ul>
<p><i><font size=4>7.5 Dump the trace in a human-readable format </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> tracedump - running the trace decoder
<p><b>SYNOPSIS</b>
<p> tracedump
<u>File</u>
<p><b>DESCRIPTION</b>
<p> This will run tracevisualizer using <u>File</u>.trace and <u>File</u>.proc
as input and <u>File</u>.data as output.
</ul>
<p><i><font size=4>7.6 Dump the core events of the trace in a human-readable format </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> tracedcore - running the trace decoder
<p><b>SYNOPSIS</b>
<p> tracedcore
<u>File</u>
<p><b>DESCRIPTION</b>
<p> This will run tracevisualizer using <u>File</u>.trace and <u>File</u>.proc
as input and <u>File</u>.data as output while only outputting the core kernel events.
</ul>
<p><i><font size=4>7.7 Analyze a trace </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> traceanalyze - running the trace decoder while analyzing it
<p><b>SYNOPSIS</b>
<p> traceanalyze
<u>File</u>
<p><b>DESCRIPTION</b>
<p> This will run tracevisualizer using <u>File</u>.trace and <u>File</u>.proc
as input and <u>File</u>.data as output. Moreover, it uses the -a option of
tracevisualizer to analyze the content of the trace and uses -s to summarize the analysis.
</ul>
<p><i><font size=4>7.8 View trace graphically </font></i>
<br>
<ul>
<p><b>NAME</b>
<p> traceview - running the decoder in graphical mode
<p><b>SYNOPSIS</b>
<p> traceview
<u>File</u>
<p><b>DESCRIPTION</b>
<p> This will run tracevisualizer using <u>File</u>.trace and <u>File</u>.proc
as input. Moreover, it uses the -g option of tracevisualizer to set the tracevisualizer to
run in graphic mode.
</ul>
<hr WIDTH="100%">
<TABLE WIDTH="100%" BORDER="0" BGCOLOR="#000000" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD WIDTH="25%" BGCOLOR="#C00000" ALIGN="left">
<A HREF="ltt-colorwindow.html">
<FONT COLOR="#FFFFFF" SIZE="3">
<B><<< Previous Page</B>
</FONT>
</A>
</TD>
<TD WIDTH="25%" BGCOLOR="#0000C0" ALIGN="center">
<A HREF="index.html">
<FONT COLOR="#FFFFFF" SIZE="3">
<B>Home</B>
</FONT>
</A>
</TD>
<TD WIDTH="25%" BGCOLOR="#00C000" ALIGN="center">
<A HREF="index.html">
<FONT COLOR="#FFFFFF" SIZE="3">
<B>Up</B>
</FONT>
</A>
</TD>
<TD WIDTH="25%" BGCOLOR="#C00000" ALIGN="right">
<FONT COLOR="#FFFFFF" SIZE="3">
</FONT>
</TD>
</TR>
<TR>
<TD COLSPAN="2" ALIGN="left">
<FONT COLOR="#FFFFFF" SIZE="3">
<B>Linux trace toolkit</B>
</FONT>
</TD>
<TD COLSPAN="2" ALIGN="right">
<FONT COLOR="#FFFFFF" SIZE="3">
<B>Command scripts</B>
</FONT>
</TD>
</TR>
</TABLE>
</body>
</html>
|