From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033239AbeBOO1P (ORCPT ); Thu, 15 Feb 2018 09:27:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:33330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033052AbeBOO1O (ORCPT ); Thu, 15 Feb 2018 09:27:14 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01BF620C51 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Date: Thu, 15 Feb 2018 11:27:11 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Peter Zijlstra , "Naveen N. Rao" Subject: Re: [PATCH 9/9] perf tests: Use arch__compare_symbol_names to compare symbols Message-ID: <20180215142711.GH22818@kernel.org> References: <20180215122635.24029-1-jolsa@kernel.org> <20180215122635.24029-10-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180215122635.24029-10-jolsa@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Feb 15, 2018 at 01:26:35PM +0100, Jiri Olsa escreveu: > The symbol search called by machine__find_kernel_symbol_by_name > is using internally arch__compare_symbol_names function to compare > 2 symbol names, because different archs have different ways of > comparing symbols. Mostly for skipping '.' prefixes and similar. > > In test 1 when we try to find matching symbols in kallsyms and > vmlinux, by address and by symbol name. When either is found > we compare the pair symbol names by simple strcmp, which is not > good enough for reasons explained in previous paragraph. > > On powerpc this can cause lockup, because even thought we found > the pair, the compared names are different and don't match > simple strcmp. Following code path is executed, that leads > to lockup: Added a: Fixes: 031b84c407c3 ("perf probe ppc: Enable matching against dot symbols automatically") And CCed Naveen, the author of that patch, so that gets notified of this fix. Thanks, - Arnaldo