Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1225490imm; Tue, 5 Jun 2018 10:59:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKvdkndN3ugd2E+r27gT59bCdSGH2VL+3MH5IkRRDCLY1nvfQdDuBQPRbgyoFqYDKeQwdzD X-Received: by 2002:a17:902:9048:: with SMTP id w8-v6mr27223053plz.34.1528221563646; Tue, 05 Jun 2018 10:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528221563; cv=none; d=google.com; s=arc-20160816; b=eGA60jfyZTz0PB8ICedl9YGAupExRWQ5leY4jbYqpB1uIR4g7lKmMFDQxtvLcmNpkx KcC95f7OrfPtmJGqQgd5ts5xr5y18QkKBpWbkG2Z1XzH6VQum4OAAxEQjliSNYdQcd+o iEHqp9NH3UCMzU5i3c1alwPTCrzo+ZG5u/Ow60Lvso47T4Tdmeh5Itq/boJAK9F3UjQI 2DSygE8NxD+lFRDDkdyP9QPgi4KHCFtmelG3jRNK0wLsHF4fvbtzX1e/9hfopq89YCy3 n0ICaUQR8tqmOoDGKSu1ROCRoqxyeiY71XXcwAD2QqzUDHzz4A6E1IxOiqVFeMABIgcE /Z7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=aa6rU4hRTje85wT3PUw1ahZg61+MFT7TfCzY6ZLDAGI=; b=v386aY4sdlTB1ORa6NLHBpvfHwLkgENM+Hn4YvuOFQbSxOG1vAEF4db8MqQvKGYi6s b6Nh/pjsBN8+0OPgzw+0aac/VBbp5G3Lz3e3Wc+GOWojPTSxVhmdHHCE2p+slpsovlQy FMYKx6psiWjSPxoDYS9y+6QrOk8Eg5pY5asC60CVJAm5WgvoTriQXqYnW0caWgm5kWrf hd4K9HeSlG56fkErzbp1zc8YP51JUoPX0hZn7xWYPaGBpWpBmFhAWoeGgOHZHngl9qFU KJXWeSoZi7ZnEca11bbLR8IxbKefx3OsM45f6onNmivXTewkh3zCo7ahNzFkWyHx+rwS GSig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pwuic51R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12-v6si48572124plt.233.2018.06.05.10.59.09; Tue, 05 Jun 2018 10:59:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Pwuic51R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbeFERw1 (ORCPT + 99 others); Tue, 5 Jun 2018 13:52:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:46504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752769AbeFERwZ (ORCPT ); Tue, 5 Jun 2018 13:52:25 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 6A2472075B; Tue, 5 Jun 2018 17:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528221144; bh=3L8Y2Rl9luycYa2UmQ44AMj7HQPa7S0hdH9UX3eYW1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pwuic51RXa4EQQ3ZVXxkNz4J8dyPERBEEYg6WA6s+GZnvo5SPOM29/Y97Zr8TCZLo S1oQQK4IicXAx875aDl7ic3GjpIdz9gCxT+8LvO/aqJnLbnf4Y7IRqCPhChZjAS5Mp 0RXp4nOwNgQ4oDdupDQ+0l5CY2WFrlsdyL8i6ejo= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , Jiri Olsa , Wang Nan , stable@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 35/46] perf tools: Fix symbol and object code resolution for vdso32 and vdsox32 Date: Tue, 5 Jun 2018 14:50:19 -0300 Message-Id: <20180605175030.32549-36-acme@kernel.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180605175030.32549-1-acme@kernel.org> References: <20180605175030.32549-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter 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 --- tools/perf/util/dso.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index cdfc2e5f55f5..51cf82cf1882 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c @@ -354,6 +354,8 @@ int __kmod_path__parse(struct kmod_path *m, const char *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; -- 2.14.3