Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5616659imu; Mon, 26 Nov 2018 03:03:57 -0800 (PST) X-Google-Smtp-Source: AJdET5c+xr4OkKvc8Rrz2HBZnUP6vdtQxevT7MIlmTY3tP/q9HnhUdnK9dVXbTcq0E+hzuda8qV3 X-Received: by 2002:a62:4549:: with SMTP id s70mr27027454pfa.233.1543230237056; Mon, 26 Nov 2018 03:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543230237; cv=none; d=google.com; s=arc-20160816; b=yBxus1uTDxH/W7IDNUD4MIAz5fVOHArX5gxql3UQIKGS3EKbHq/pGmZNSlfHDqTBB4 g912QVMvTTtSZmbPAMFJurqwtgLAX3bbYtD7urluB4MVFm2s603F9ahDtU7kMPYhGzk3 gNd9yDY6gAqpqDFBXSo6GWgWGb4EuKgtK0XH/4etqpiRxMKZkAhJXRzogf8da8GdfFyB 7bfL5EtxKX+KJPrmodh54OyBzgjF3veIdG/oIwkekufCAkW9Xvnk0x61vNwM8+8EiX+2 +QQpLAV0JCGGqFvh3IyQ1UTtCpDqZTiONcYOzDWmxiA7wf5EDfh1j0149r1Z40kHyUQV +9Qw== 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=t0+XgouWfyDU+KJ7KH7PmUvd1Uygh5aPc6FZusl6kCI=; b=Yl5sENTTH5BvqDRPG7dRfAzC/SkqpKQducPTAcmoAqH7wRpKh7Z0PuxR8rUOWi3YiT jXdoqwCAZwL155V64IcGdPGDK80uBhL+qLdEMcOX19dZCVQPl7dkAJJWBMjgkHX5fpF7 //wH4Mivd5C8sAILnFRS+13xEKzvaqpc5GqzGKDJTq+Sjy/5tKDG3ngom7g420zJ4M+G hPyMqly+NFOqNmsIgT+88bTf9MYM/nwitQUIGf5ZvVf38mh6kbCvYloSftxiEZYmIXik +k2DJ0HQ/R3nExmzMaawNEnRVTdwvDqTFH8+tlWUr6H4xlY3VHwkL2nVEwswDbmGSn/f 1U4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CNuyTkNW; 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 j7si29413595plb.91.2018.11.26.03.03.40; Mon, 26 Nov 2018 03:03:57 -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=CNuyTkNW; 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 S1729887AbeKZVyW (ORCPT + 99 others); Mon, 26 Nov 2018 16:54:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:36428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729119AbeKZVyV (ORCPT ); Mon, 26 Nov 2018 16:54:21 -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 AD0D92089F; Mon, 26 Nov 2018 11:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543230036; bh=/5YxxoWXBroGeOD9LBhEmVCdRp2kpT0JV0CU+JGJ05g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CNuyTkNWgwzOjhQcCuB9Zyan71fbIGteaeiKUBqih/dfLhq9XTpKQfoWQJVR8jUez obf9VkhjGLuQkigVyUTrM8ZBTJzjooDyrlY8fHQlNCg/hVhSCzPfJES6SUY4j3UVQJ 1LVAwNZiyPx+zm842U/e3g6eblp0kCA206sJylrc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Arnaldo Carvalho de Melo , Jiri Olsa , Sasha Levin Subject: [PATCH 4.14 47/62] perf test code-reading: Fix perf_env setup for PTI entry trampolines Date: Mon, 26 Nov 2018 11:51:28 +0100 Message-Id: <20181126105054.323501538@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105050.592727680@linuxfoundation.org> References: <20181126105050.592727680@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ commit f6c66d73bb8192d357bb5fb8cd5826920f811d8c upstream. 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 Signed-off-by: Sasha Levin --- 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 fcc8984bc329..acad8ba06d77 100644 --- a/tools/perf/tests/code-reading.c +++ b/tools/perf/tests/code-reading.c @@ -527,6 +527,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.17.1