add details to low-level and high-level trace reading API
authorpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 13 Aug 2008 16:35:41 +0000 (16:35 +0000)
committerpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 13 Aug 2008 16:35:41 +0000 (16:35 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@3011 04897980-b3bd-0310-b5e0-8ef037075253

trunk/masters-pmf/3rd_gen_viewer/3rd_gen_viewer_arch.lyx

index 9285cc72a6a6d2fc0d1c480fa6ab7ef930797484..75de302da10fdc6dd59deb2bcd234ef4e6f45415 100644 (file)
@@ -310,18 +310,42 @@ Close the trace and unallocate all resources associated to this struct trace
  After this call, tr is invalid and its memory is freed.
 \end_layout
 
+\begin_layout Standard
+Arguments:
+\end_layout
+
+\begin_layout Itemize
+tr: the trace
+\end_layout
+
+\begin_layout Standard
+Return value: none
+\end_layout
+
 \end_deeper
 \begin_layout Itemize
-struct event *current_event(struct trace *, struct cursor *cur)
+struct event *current_event(struct trace *tr, struct cursor *cur)
 \end_layout
 
 \begin_deeper
 \begin_layout Standard
-Arguments: none
+Return the event pointed by the cursor cur.
 \end_layout
 
 \begin_layout Standard
-Return:
+Arguments:
+\end_layout
+
+\begin_layout Itemize
+tr: the trace
+\end_layout
+
+\begin_layout Itemize
+cur: the cursor indicating the position of the wanted event
+\end_layout
+
+\begin_layout Standard
+Return value:
 \end_layout
 
 \begin_layout Itemize
@@ -386,6 +410,10 @@ int seek_time(struct trace *tr, struct trace_cursor *cur, struct trace_time
 \end_layout
 
 \begin_deeper
+\begin_layout Standard
+Place a cursor at a particular time index in a trace.
+\end_layout
+
 \begin_layout Standard
 Arguments:
 \end_layout
@@ -426,6 +454,22 @@ Return a new cursor associated to the trace.
  advance() must be called before reading the first event.
 \end_layout
 
+\begin_layout Standard
+Arguments:
+\end_layout
+
+\begin_layout Itemize
+tr: the trace
+\end_layout
+
+\begin_layout Standard
+Return value:
+\end_layout
+
+\begin_layout Itemize
+the new cursor
+\end_layout
+
 \end_deeper
 \begin_layout Itemize
 struct trace_cursor *trace_cursor_copy(struct trace_cursor *cur)
@@ -471,6 +515,10 @@ Arguments:
 cur: the cursor to destroy
 \end_layout
 
+\begin_layout Standard
+Return value: none
+\end_layout
+
 \end_deeper
 \begin_layout Itemize
 struct trace_time get_time_start(struct trace *tr)
@@ -486,7 +534,7 @@ tr: the trace
 \end_layout
 
 \begin_layout Standard
-Return:
+Return value:
 \end_layout
 
 \begin_layout Itemize
@@ -514,7 +562,7 @@ the timestamp of the last event in the trace
 \end_deeper
 \begin_layout Itemize
 register_callback_new_event(struct trace *tr, struct trace_time after, void
- (*cb)(struct trace *))
+ (*cb)(struct trace *, void *priv), void *private)
 \end_layout
 
 \begin_deeper
@@ -567,7 +615,7 @@ When reading/analyzing/viewing several traces of heterogenous types, these
  traces are read by translator modules, which export the Low Level Trace
  Reading API.
  The traceset service then uses this API to read each of these traces individual
-ly, then merge them.
+ly, merging them along the way.
  It may apply timestamp offsetting or other synchronization techniques.
  To allow views and analyses to access events, it in turn exports the High
  Level Trace Reading API.
@@ -586,12 +634,12 @@ Methods of the high-level trace reading API
 \begin_layout Itemize
 struct request_handle *traceset_new_event_request(struct traceset *tr, struct
  trace_time t1, struct trace_time t2, struct event_filter *filter, void
- (*cb)(void *data, ), void *data)
+ (*cb)(void *priv, ), void *private)
 \end_layout
 
 \begin_deeper
 \begin_layout Standard
-Request a range of events
+Request a range of events from a traceset
 \end_layout
 
 \begin_layout Standard
@@ -615,11 +663,11 @@ filter: filter with complex expressions
 \end_layout
 
 \begin_layout Itemize
-data: private pointer to be passed to the callback
+private: private pointer to be passed to the callback
 \end_layout
 
 \begin_layout Standard
-Return:
+Return value:
 \end_layout
 
 \begin_layout Itemize
This page took 0.025541 seconds and 4 git commands to generate.