Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3515563imu; Mon, 7 Jan 2019 04:56:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XE9HjdkoWK68TypEwC+wvhuh29OZYeJpte3k+afq7k0mggl4pMY2xZqTzxO1yzaHC4bXgG X-Received: by 2002:a62:4bcf:: with SMTP id d76mr65632025pfj.170.1546865814416; Mon, 07 Jan 2019 04:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546865814; cv=none; d=google.com; s=arc-20160816; b=rTyITvwxiCnrw3nmbizh3DHhHWtU6p8Cj8iROIXpkl7TaqjASuS8OuqzfXvpzuADoc iaLFG2jWDtFieiC8CHdeHEiCileNOGOyCK7rki0dVFo+sBjTQxa4vM0Mj/aNYSws22JX fSPfbQEHDkrK6+MdC1WZYP5TOWx1tRplq6z+JfvfpW8QHSOsMqgWMmRjZXsVr3tzqy0X YGMP1tHeVJmT18dc/cqFA8nrHZYfkx0EnCRMH7bLViR++NaOoMZ17cxxTOy3kN1F7yL5 aS0hf7eZsVJLYFfq+u3REJYqBxS4Htd9NcECEsqGvkj+4W0i4mbpetgl9yXzK95j9p/x R4jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kXXUHdeb7T3WCDvMcfNny3WFepQkWgL+NfwrQkxhKt4=; b=woi9nt9e6mBCRZ5UnJRp1IHPVfKRdeG4zRn1zTUn6PUvuIRbfnCg4UHipVylW92JN6 XKJZ6coSIWsQBPgU87OTCcruznuDMO2IVlgMKzw64a9x7SJJSB+eStaU5FuRQvKYRrvF Egeftov394pG2LnfG5Dg8BU3pThpw38gjQXsdlMyR0bgnrOqRmDSHfD6SyxC8/lkuLH/ 7qHYaiylTNH4o7IlQQFQ4OF0DP/GRJ6o/ar69HFaJ5rkXcHEoJXJdWIQ0+OJaINTQrzx biHS83ELIpMMVVqLuX2wyAmRFY4uGyyuPr6WLNF+iCvOKqRSXLUoPC9Jf6kR58UcdPbp cGdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zbIBcmoF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si63863191ple.281.2019.01.07.04.56.39; Mon, 07 Jan 2019 04:56:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zbIBcmoF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729675AbfAGMyF (ORCPT + 99 others); Mon, 7 Jan 2019 07:54:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:43114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbfAGMyE (ORCPT ); Mon, 7 Jan 2019 07:54:04 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 791B420665; Mon, 7 Jan 2019 12:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865643; bh=VcGRO69DTcXTXeDpgRygJi87rFm2r1YlP4RemevTHp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zbIBcmoFpQ9ZKf4FLc51o7K2+MMnP62BI2D6W8OqQP88ntSvwbYoErXD3zHdyd6n7 Cflv/MoJ9emBXpoHP1nx9y+cg2hqGUFc/+PRn1nofV6yJECqA3u0im0WWFt4mgSsTL Tp1t007DfHQGtGFN+7a0SIiBBQ2UHpasVjn1jHaE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Andi Kleen , "David S. Miller" , Jiri Olsa , Leo Yan , Mathieu Poirier , Arnaldo Carvalho de Melo Subject: [PATCH 4.19 101/170] perf tools: Use fallback for sample_addr_correlates_sym() cases Date: Mon, 7 Jan 2019 13:32:08 +0100 Message-Id: <20190107104504.931906677@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104452.953560660@linuxfoundation.org> References: <20190107104452.953560660@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Adrian Hunter commit 225f99e0c811e23836c4911a2ff147e167dd1fe8 upstream. thread__resolve() is used in the sample_addr_correlates_sym() cases where 'addr' is a destination of a branch which does not necessarily have the same cpumode as the 'ip'. Use the fallback function in that case. This patch depends on patch "perf tools: Add fallback functions for cases where cpumode is insufficient". Signed-off-by: Adrian Hunter Cc: Andi Kleen Cc: David S. Miller Cc: Jiri Olsa Cc: Leo Yan Cc: Mathieu Poirier Cc: stable@vger.kernel.org # 4.19 Link: http://lkml.kernel.org/r/20181106210712.12098-3-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c @@ -1705,7 +1705,7 @@ bool sample_addr_correlates_sym(struct p void thread__resolve(struct thread *thread, struct addr_location *al, struct perf_sample *sample) { - thread__find_map(thread, sample->cpumode, sample->addr, al); + thread__find_map_fb(thread, sample->cpumode, sample->addr, al); al->cpu = sample->cpu; al->sym = NULL;