Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2996638imm; Sun, 1 Jul 2018 09:59:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKLUBUFrAbY4GeTgGP/aMZoEK4IWDJRAply0c92+eENRBpWCgWW/yek2bAgWuMq9AopBmSG X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr22801661plb.208.1530464365210; Sun, 01 Jul 2018 09:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464365; cv=none; d=google.com; s=arc-20160816; b=I6/iavVoS93pDRmk0rIBB3c3JBIh2RKKVIF7VWeAc0X2rkSME/LcxY0v5dcz4kmL4A N53paH6v2CQKMl/Gndk9kBh8viJSeij1O9oXJBN+jbWghvwaXGKVJuRuZmBIy2h6dy5j hBiHZTP+argQ9si7LPCeRVXjZq53XGlQvf78eTDJt8/KZWDKrVj6Iw0NVIwi8wVWuR1Q c6W1okz/2SEJLF+t3CPCO7V9OFvQGsQ+HXMvaq3vO8mGFmQcuQTvBHYQzQiqz274tSXE sw5p+Np3IKy0jg6k7wjzMqPkIoFQxEGHykGpCK82f2equfiOlv2MfUDr7q7NZBLY257u yhxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=X8Mq4zbWAdorGL54Rf3/Gma0Hlymp6sSO39Coo0IRec=; b=K188MkMrDgskOMx0Tr2+lorsdsFgvhMEIHipY0krbVzujGyiTktETwgMReltOprxKe WkV1BCVdAxp823biJVQIOSIs0C1L9RtCHuCZrEgInLzFiDIYTQPE3BDSiKLDvSQK1Wh2 TnXHtcI8rV08SqyCREL/18FQd7yuDdVX/XSzq9lEoQapJuqD1bLEjhkaChenxf7MM/iC z77P8YjQ/4rBf4yGRlIPs5NTMbo5xjl0xos4Z8HPm6VxogiYbS0PXm75JvGVOPqek9sL NpoaW7OD3i9new8nGT7BAh6JjA2hu7iRvaDET8gIo37p5FJwGEGZShJ31ODxB+8v2sKw tVvw== ARC-Authentication-Results: i=1; mx.google.com; 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 c17-v6si8867498pgu.583.2018.07.01.09.59.10; Sun, 01 Jul 2018 09:59:25 -0700 (PDT) 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; 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 S1032478AbeGAQoX (ORCPT + 99 others); Sun, 1 Jul 2018 12:44:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38002 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032052AbeGAQoO (ORCPT ); Sun, 1 Jul 2018 12:44:14 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7FAF192B; Sun, 1 Jul 2018 16:44:13 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Jiri Olsa , Wang Nan , Arnaldo Carvalho de Melo Subject: [PATCH 4.17 167/220] perf tools: Fix symbol and object code resolution for vdso32 and vdsox32 Date: Sun, 1 Jul 2018 18:23:11 +0200 Message-Id: <20180701160915.241726443@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Adrian Hunter commit aef4feace285f27c8ed35830a5d575bec7f3e90a upstream. Fix __kmod_path__parse() so that perf tools does not treat vdso32 and vdsox32 as kernel modules and fail to find the object. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Wang Nan Cc: stable@vger.kernel.org Fixes: 1f121b03d058 ("perf tools: Deal with kernel module names in '[]' correctly") Link: http://lkml.kernel.org/r/1528117014-30032-3-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/dso.c | 2 ++ 1 file changed, 2 insertions(+) --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c @@ -354,6 +354,8 @@ int __kmod_path__parse(struct kmod_path if ((strncmp(name, "[kernel.kallsyms]", 17) == 0) || (strncmp(name, "[guest.kernel.kallsyms", 22) == 0) || (strncmp(name, "[vdso]", 6) == 0) || + (strncmp(name, "[vdso32]", 8) == 0) || + (strncmp(name, "[vdsox32]", 9) == 0) || (strncmp(name, "[vsyscall]", 10) == 0)) { m->kmod = false;