b1053af5 |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> |
2 | <HTML |
3 | ><HEAD |
4 | ><TITLE |
5 | >Conversion from LTT to LTTV trace format</TITLE |
6 | ><META |
7 | NAME="GENERATOR" |
8 | CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK |
9 | REL="HOME" |
10 | TITLE="Linux Trace Toolkit Viewer User Guide" |
11 | HREF="index.html"><LINK |
12 | REL="UP" |
13 | TITLE="Getting started" |
14 | HREF="c25.html"><LINK |
15 | REL="PREVIOUS" |
16 | TITLE="Installing LTT trace recording daemon" |
17 | HREF="x54.html"><LINK |
18 | REL="NEXT" |
19 | TITLE="Running the executable with basic libraries" |
20 | HREF="x78.html"></HEAD |
21 | ><BODY |
22 | CLASS="sect1" |
23 | BGCOLOR="#FFFFFF" |
24 | TEXT="#000000" |
25 | LINK="#0000FF" |
26 | VLINK="#840084" |
27 | ALINK="#0000FF" |
28 | ><DIV |
29 | CLASS="NAVHEADER" |
30 | ><TABLE |
31 | SUMMARY="Header navigation table" |
32 | WIDTH="100%" |
33 | BORDER="0" |
34 | CELLPADDING="0" |
35 | CELLSPACING="0" |
36 | ><TR |
37 | ><TH |
38 | COLSPAN="3" |
39 | ALIGN="center" |
40 | >Linux Trace Toolkit Viewer User Guide</TH |
41 | ></TR |
42 | ><TR |
43 | ><TD |
44 | WIDTH="10%" |
45 | ALIGN="left" |
46 | VALIGN="bottom" |
47 | ><A |
48 | HREF="x54.html" |
49 | ACCESSKEY="P" |
50 | >Prev</A |
51 | ></TD |
52 | ><TD |
53 | WIDTH="80%" |
54 | ALIGN="center" |
55 | VALIGN="bottom" |
56 | >Chapter 2. Getting started</TD |
57 | ><TD |
58 | WIDTH="10%" |
59 | ALIGN="right" |
60 | VALIGN="bottom" |
61 | ><A |
62 | HREF="x78.html" |
63 | ACCESSKEY="N" |
64 | >Next</A |
65 | ></TD |
66 | ></TR |
67 | ></TABLE |
68 | ><HR |
69 | ALIGN="LEFT" |
70 | WIDTH="100%"></DIV |
71 | ><DIV |
72 | CLASS="sect1" |
73 | ><H1 |
74 | CLASS="sect1" |
75 | ><A |
76 | NAME="convert" |
77 | >2.4. Conversion from LTT to LTTV trace format</A |
78 | ></H1 |
79 | ><P |
80 | > If you used the default directory for installation, you should find the |
81 | conversion tool in /usr/local/bin/convert. Before using it, some other files are |
82 | necessary. You will find them in |
83 | /usr/local/share/LinuxTraceToolkitViewer/convert/. Those are sysInfo and |
84 | core.xml. |
85 | </P |
86 | ><P |
87 | > sysInfo is a script that get informations about the traced computer. It should |
88 | be invoked like this : |
89 | </P |
90 | ><PRE |
91 | CLASS="screen" |
92 | > <SAMP |
93 | CLASS="prompt" |
94 | >$</SAMP |
95 | > <KBD |
96 | CLASS="userinput" |
97 | >sh /usr/local/LinuxTraceToolkitViewer/convert/sysInfo</KBD |
98 | > |
99 | </PRE |
100 | ><P |
101 | > It created a file named sysInfo.out. This file has to be present in the current |
102 | directory where the convert tool will be executed. I suggest that you choose a |
103 | destination directory for converted traces right now, put sysInfo.out in it, at |
104 | use it as current directory for running the convert tool. |
105 | </P |
106 | ><P |
107 | > Once the sysInfo.out file is ready and you have a trace ready for conversion, |
108 | you should invoke convert like the following example. This is for a uniprocessor |
109 | computer. If you whish to get detailed explanation on the parameters, simply |
110 | execute the convert tool without any. You may also wish to see the |
111 | /usr/local/LinuxTraceToolkitViewer/convert/README file. |
112 | </P |
113 | ><PRE |
114 | CLASS="screen" |
115 | > <SAMP |
116 | CLASS="prompt" |
117 | >$</SAMP |
118 | > <KBD |
119 | CLASS="userinput" |
120 | >/usr/local/bin/convert sample.proc 1 sample.trace sample.converted</KBD |
121 | > |
122 | </PRE |
123 | ><P |
124 | > You must then copy the core event definition file to the converted trace directory : |
125 | </P |
126 | ><PRE |
127 | CLASS="screen" |
128 | > <SAMP |
129 | CLASS="prompt" |
130 | >$</SAMP |
131 | > <KBD |
132 | CLASS="userinput" |
133 | >cp /usr/local/share/LinuxTraceToolkitViewer/convert/core.xml sample.converted/</KBD |
134 | > |
135 | </PRE |
136 | ><P |
137 | > You now have a converted trace ready for visualization in LTTV. Congratulations! |
138 | </P |
139 | ></DIV |
140 | ><DIV |
141 | CLASS="NAVFOOTER" |
142 | ><HR |
143 | ALIGN="LEFT" |
144 | WIDTH="100%"><TABLE |
145 | SUMMARY="Footer navigation table" |
146 | WIDTH="100%" |
147 | BORDER="0" |
148 | CELLPADDING="0" |
149 | CELLSPACING="0" |
150 | ><TR |
151 | ><TD |
152 | WIDTH="33%" |
153 | ALIGN="left" |
154 | VALIGN="top" |
155 | ><A |
156 | HREF="x54.html" |
157 | ACCESSKEY="P" |
158 | >Prev</A |
159 | ></TD |
160 | ><TD |
161 | WIDTH="34%" |
162 | ALIGN="center" |
163 | VALIGN="top" |
164 | ><A |
165 | HREF="index.html" |
166 | ACCESSKEY="H" |
167 | >Home</A |
168 | ></TD |
169 | ><TD |
170 | WIDTH="33%" |
171 | ALIGN="right" |
172 | VALIGN="top" |
173 | ><A |
174 | HREF="x78.html" |
175 | ACCESSKEY="N" |
176 | >Next</A |
177 | ></TD |
178 | ></TR |
179 | ><TR |
180 | ><TD |
181 | WIDTH="33%" |
182 | ALIGN="left" |
183 | VALIGN="top" |
184 | >Installing LTT trace recording daemon</TD |
185 | ><TD |
186 | WIDTH="34%" |
187 | ALIGN="center" |
188 | VALIGN="top" |
189 | ><A |
190 | HREF="c25.html" |
191 | ACCESSKEY="U" |
192 | >Up</A |
193 | ></TD |
194 | ><TD |
195 | WIDTH="33%" |
196 | ALIGN="right" |
197 | VALIGN="top" |
198 | >Running the executable with basic libraries</TD |
199 | ></TR |
200 | ></TABLE |
201 | ></DIV |
202 | ></BODY |
203 | ></HTML |
204 | > |