btrace: Replace struct btrace_function::up.

This used to hold a function segment pointer.  Change it to hold an index into
the vector of function segments instead.
This commit is contained in:
Tim Wiederhake
2017-05-30 12:47:37 +02:00
parent b54b03bd87
commit 42bfe59e3a
5 changed files with 130 additions and 64 deletions

View File

@ -154,8 +154,10 @@ struct btrace_function
/* The previous and next function in control flow order. */
struct btrace_func_link flow;
/* The directly preceding function segment in a (fake) call stack. */
struct btrace_function *up;
/* The function segment number of the directly preceding function segment in
a (fake) call stack. Will be zero if there is no such function segment in
the record. */
unsigned int up;
/* The instructions in this function segment.
The instruction vector will be empty if the function segment