7cb02901 |
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 | >Why an event driven trace reader ?</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 Developer Guide" |
11 | HREF="index.html"><LINK |
12 | REL="UP" |
13 | TITLE="How to use the Linux Trace Toolkit Viewer's Reading Context" |
14 | HREF="c40.html"><LINK |
15 | REL="PREVIOUS" |
16 | TITLE="How to use the Linux Trace Toolkit Viewer's Reading Context" |
17 | HREF="c40.html"><LINK |
18 | REL="NEXT" |
19 | TITLE="Using the reading context" |
20 | HREF="x50.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 Developer Guide</TH |
41 | ></TR |
42 | ><TR |
43 | ><TD |
44 | WIDTH="10%" |
45 | ALIGN="left" |
46 | VALIGN="bottom" |
47 | ><A |
48 | HREF="c40.html" |
49 | ACCESSKEY="P" |
50 | >Prev</A |
51 | ></TD |
52 | ><TD |
53 | WIDTH="80%" |
54 | ALIGN="center" |
55 | VALIGN="bottom" |
56 | >Chapter 2. How to use the Linux Trace Toolkit Viewer's Reading Context</TD |
57 | ><TD |
58 | WIDTH="10%" |
59 | ALIGN="right" |
60 | VALIGN="bottom" |
61 | ><A |
62 | HREF="x50.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="AEN46" |
77 | >2.2. Why an event driven trace reader ?</A |
78 | ></H1 |
79 | ><P |
80 | > The complexity of synchronizing the tracesets is then hidden to the viewer. Some |
81 | future plans involve to be able to put many traces together in a trace set. |
82 | Before this becomes possible, the time of each trace must be synchronized in |
83 | some way. Some work is actually done to create a module that uses the network |
84 | traffic shared by different computers to synchronize the time of different |
85 | traces. |
86 | </P |
87 | ><P |
88 | > In order to make each module integrate well with each other, we made the trace |
89 | reader a simple hook caller. For each event it reads, it just calls the hook |
90 | lists for this event. For each event, it calls the by_id specific hooks |
91 | registered for this event and also the "main" hooks, registered for all events. |
92 | Note that the two hook lists are merged when called so the priority of the |
93 | hooks of each list is respected. For example, a hook of higher priority (20) in |
94 | the main list will be called before a hook of lower priority (40) from the |
95 | by_id specific list. |
96 | </P |
97 | ></DIV |
98 | ><DIV |
99 | CLASS="NAVFOOTER" |
100 | ><HR |
101 | ALIGN="LEFT" |
102 | WIDTH="100%"><TABLE |
103 | SUMMARY="Footer navigation table" |
104 | WIDTH="100%" |
105 | BORDER="0" |
106 | CELLPADDING="0" |
107 | CELLSPACING="0" |
108 | ><TR |
109 | ><TD |
110 | WIDTH="33%" |
111 | ALIGN="left" |
112 | VALIGN="top" |
113 | ><A |
114 | HREF="c40.html" |
115 | ACCESSKEY="P" |
116 | >Prev</A |
117 | ></TD |
118 | ><TD |
119 | WIDTH="34%" |
120 | ALIGN="center" |
121 | VALIGN="top" |
122 | ><A |
123 | HREF="index.html" |
124 | ACCESSKEY="H" |
125 | >Home</A |
126 | ></TD |
127 | ><TD |
128 | WIDTH="33%" |
129 | ALIGN="right" |
130 | VALIGN="top" |
131 | ><A |
132 | HREF="x50.html" |
133 | ACCESSKEY="N" |
134 | >Next</A |
135 | ></TD |
136 | ></TR |
137 | ><TR |
138 | ><TD |
139 | WIDTH="33%" |
140 | ALIGN="left" |
141 | VALIGN="top" |
142 | >How to use the Linux Trace Toolkit Viewer's Reading Context</TD |
143 | ><TD |
144 | WIDTH="34%" |
145 | ALIGN="center" |
146 | VALIGN="top" |
147 | ><A |
148 | HREF="c40.html" |
149 | ACCESSKEY="U" |
150 | >Up</A |
151 | ></TD |
152 | ><TD |
153 | WIDTH="33%" |
154 | ALIGN="right" |
155 | VALIGN="top" |
156 | >Using the reading context</TD |
157 | ></TR |
158 | ></TABLE |
159 | ></DIV |
160 | ></BODY |
161 | ></HTML |
162 | > |