Lines Matching refs:cursor
183 struct callchain_cursor *cursor,
186 int callchain_merge(struct callchain_cursor *cursor,
193 static inline void callchain_cursor_reset(struct callchain_cursor *cursor) in callchain_cursor_reset() argument
197 cursor->nr = 0; in callchain_cursor_reset()
198 cursor->last = &cursor->first; in callchain_cursor_reset()
200 for (node = cursor->first; node != NULL; node = node->next) in callchain_cursor_reset()
204 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip,
210 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() argument
212 cursor->curr = cursor->first; in callchain_cursor_commit()
213 cursor->pos = 0; in callchain_cursor_commit()
218 callchain_cursor_current(struct callchain_cursor *cursor) in callchain_cursor_current() argument
220 if (cursor->pos == cursor->nr) in callchain_cursor_current()
223 return cursor->curr; in callchain_cursor_current()
226 static inline void callchain_cursor_advance(struct callchain_cursor *cursor) in callchain_cursor_advance() argument
228 cursor->curr = cursor->curr->next; in callchain_cursor_advance()
229 cursor->pos++; in callchain_cursor_advance()
248 struct callchain_cursor *cursor, struct symbol **parent,