mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
callgraph: fix loading of stacks coming from backtrace()
This commit is contained in:
@ -382,6 +382,13 @@ sysprof_callgraph_profile_generate_worker (GTask *task,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* In case we get plain backtraces that aren't coming from perf,
|
||||||
|
* we might never get a context switch into user-space. This ensures
|
||||||
|
* that we still get traces for things from backtrace().
|
||||||
|
*/
|
||||||
|
if (last_context == SYSPROF_ADDRESS_CONTEXT_NONE)
|
||||||
|
last_context = SYSPROF_ADDRESS_CONTEXT_USER;
|
||||||
|
|
||||||
for (guint j = 0; j < resolvers->len; j++)
|
for (guint j = 0; j < resolvers->len; j++)
|
||||||
{
|
{
|
||||||
SysprofSymbolResolver *resolver = g_ptr_array_index (resolvers, j);
|
SysprofSymbolResolver *resolver = g_ptr_array_index (resolvers, j);
|
||||||
|
|||||||
Reference in New Issue
Block a user