From acab78da7226a41c8d5ac675f34634be394259fa Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 28 Jan 2018 22:16:59 -0800 Subject: [PATCH] callgraph: use sp_symbol_resolver_resolve_with_context() We want to ensure that we give the resolve the address context so that it can filter whether or not the address range applies. --- lib/callgraph/sp-callgraph-profile.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/callgraph/sp-callgraph-profile.c b/lib/callgraph/sp-callgraph-profile.c index 9d6e8c95..9ff538aa 100644 --- a/lib/callgraph/sp-callgraph-profile.c +++ b/lib/callgraph/sp-callgraph-profile.c @@ -363,11 +363,12 @@ sp_callgraph_profile_generate_worker (GTask *task, GQuark tag = 0; gchar *str; - str = sp_symbol_resolver_resolve (resolver, - sample->frame.time, - sample->frame.pid, - address, - &tag); + str = sp_symbol_resolver_resolve_with_context (resolver, + sample->frame.time, + sample->frame.pid, + context, + address, + &tag); if (str != NULL) {