Lines Matching full:cursor
138 * A callchain cursor is a single linked list that
147 /* Indicate valid cursor node for LBR stitch */
160 struct callchain_cursor_node cursor; member
195 struct callchain_cursor *cursor,
198 int callchain_merge(struct callchain_cursor *cursor,
201 void callchain_cursor_reset(struct callchain_cursor *cursor);
203 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip,
209 /* Close a cursor writing session. Initialize for the reader */
210 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() argument
212 if (cursor == NULL) in callchain_cursor_commit()
214 cursor->curr = cursor->first; in callchain_cursor_commit()
215 cursor->pos = 0; in callchain_cursor_commit()
218 /* Cursor reading iteration helpers */
220 callchain_cursor_current(struct callchain_cursor *cursor) in callchain_cursor_current() argument
222 if (cursor == NULL || cursor->pos == cursor->nr) in callchain_cursor_current()
225 return cursor->curr; in callchain_cursor_current()
228 static inline void callchain_cursor_advance(struct callchain_cursor *cursor) in callchain_cursor_advance() argument
230 cursor->curr = cursor->curr->next; in callchain_cursor_advance()
231 cursor->pos++; in callchain_cursor_advance()
252 struct callchain_cursor *cursor, struct symbol **parent,