|
@@ -167,4 +167,13 @@ int fill_callchain_info(struct addr_location *al, struct callchain_cursor_node *
|
|
|
|
|
|
extern const char record_callchain_help[];
|
|
extern const char record_callchain_help[];
|
|
int parse_callchain_report_opt(const char *arg);
|
|
int parse_callchain_report_opt(const char *arg);
|
|
|
|
+
|
|
|
|
+static inline void callchain_cursor_snapshot(struct callchain_cursor *dest,
|
|
|
|
+ struct callchain_cursor *src)
|
|
|
|
+{
|
|
|
|
+ *dest = *src;
|
|
|
|
+
|
|
|
|
+ dest->first = src->curr;
|
|
|
|
+ dest->nr -= src->pos;
|
|
|
|
+}
|
|
#endif /* __PERF_CALLCHAIN_H */
|
|
#endif /* __PERF_CALLCHAIN_H */
|