Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1224566imm; Tue, 5 Jun 2018 10:58:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKH6dP+PWFiY/b9tCmIiAKNUEwFoYM/YwmqA4mWnb+Qhj5XhUEa3fUvWAG0aXb9+U961+uA X-Received: by 2002:a62:303:: with SMTP id 3-v6mr26618244pfd.255.1528221503547; Tue, 05 Jun 2018 10:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528221503; cv=none; d=google.com; s=arc-20160816; b=tMqog3KM+xE0Lt9gStUGVrzW4Kt/Nur/tTw3C4oVRaDRVQkM1dKUjR+l4GHY7FPbjg aCiaXjrBO7OCBbSnrpUjRoZntnTOewAxreZHPXupSNAooL/rtxDBFfHL4AWutjM+SqUO rq2nQYoywjb/98GDHqiOw4U/zx9cPhLCwyGLuQqNqSKXmf4GGqQE7oeXYMfpn3E/zevS d/SaD526fwaapAe2qQ8DqrTpyCEFIl6UsAZH+WKgosptlwTvMpXN999dlbOdJoHhLtzt NN+uI5L0w0P3k0+DKzJ9RrK7+SSLA2xhOgU4EykavTBSAmrwXZ5PYeZXeUtr6VMdbMPq QFaA== 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=1lOmdMweWmWLopSaj0+7OtrE2r/aTbJILkfWebjyD2U=; b=kkSbSrc23Htaw382D+Pvol9Zj2G1RGYUnp3aU9b31mKAOGYqu9RcdD2oZ1/23PSgOO FHbvrdcIX36uoj0yXHJ5xaP8dLaJ1GNtGMfCblLS+guy7bE+GPXhlGFhbpJ/14/2GrTj uNPq11fH/6AcSMA3n+W9JXI9yIv+i1pIDfGvttSaZG27mM0+UKwb0EXu/+wCUz1qb8MC n+5rcHgzYN7ejtHIO0FgWKHFXjKmmorO56hJF1CJB3lOmgooI/V37HnQC0QsYMAtYuOT vGyvX8GM4/ETkiBlpphR/bXqgHcFDjrwxIzB/gp3hiEQ0Jqp+8M8mq4pXWPNd//SzEru n6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VLVBA0V9; 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 j187-v6si6631994pgc.552.2018.06.05.10.58.09; Tue, 05 Jun 2018 10:58: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=VLVBA0V9; 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 S1753017AbeFERwk (ORCPT + 99 others); Tue, 5 Jun 2018 13:52:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:46622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950AbeFERwg (ORCPT ); Tue, 5 Jun 2018 13:52:36 -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 E47D22083C; Tue, 5 Jun 2018 17:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528221155; bh=D5wWe/xdesewkst9Rl909ncptPzqVixaAlGTyEqtnlg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VLVBA0V9s14RhX4b8ageL3jwnw7+1Nom8JFXGGh8ip0ZE6/6NkaoHItommCAamHNp YaCA2KBwPApWQjyQwzazeB97f9C6WZM5vVssC2kquuL0nJzYa/7rRosKoNHAThDHQd x4/78DUs7xqjlulGqy27b/PLbWeLSopkuFAr/Oi8= 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 , Arnaldo Carvalho de Melo Subject: [PATCH 39/46] perf test code-reading: Fix perf_env setup for PTI entry trampolines Date: Tue, 5 Jun 2018 14:50:23 -0300 Message-Id: <20180605175030.32549-40-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 The "Object code reading" test will not create maps for the PTI entry trampolines unless the machine environment exists to show that the arch is x86_64. Signed-off-by: Adrian Hunter Reported-by: Arnaldo Carvalho de Melo Tested-by: Arnaldo Carvalho de Melo Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1528183800-21577-1-git-send-email-adrian.hunter@intel.com [ split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/code-reading.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c index afa4ce21ba7c..4892bd2dc33e 100644 --- a/tools/perf/tests/code-reading.c +++ b/tools/perf/tests/code-reading.c @@ -560,6 +560,7 @@ static int do_test_code_reading(bool try_kcore) pid = getpid(); machine = machine__new_host(); + machine->env = &perf_env; ret = machine__create_kernel_maps(machine); if (ret < 0) { -- 2.14.3