From: Adrian Hunter <adrian.hunter@intel.com>
To: stable@vger.kernel.org
Cc: Andy Lutomirski <luto@kernel.org>,
Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: [PATCH 4.14 5/5] perf test code-reading: Fix perf_env setup for PTI entry trampolines
Date: Wed, 21 Nov 2018 15:52:47 +0200 [thread overview]
Message-ID: <20181121135247.23304-6-adrian.hunter@intel.com> (raw)
In-Reply-To: <20181121135247.23304-1-adrian.hunter@intel.com>
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 <adrian.hunter@intel.com>
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
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 <acme@redhat.com>
---
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
next prev parent reply other threads:[~2018-11-22 0:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-21 13:52 [PATCH 4.14 0/5] perf machine: Workaround missing maps for x86 PTI entry trampolines Adrian Hunter
2018-11-21 13:52 ` [PATCH 4.14 1/5] perf machine: Add machine__is() to identify machine arch Adrian Hunter
2018-11-21 13:52 ` [PATCH 4.14 2/5] perf tools: Fix kernel_start for PTI on x86 Adrian Hunter
2018-11-21 13:52 ` [PATCH 4.14 3/5] perf machine: Add nr_cpus_avail() Adrian Hunter
2018-11-21 13:52 ` [PATCH 4.14 4/5] perf machine: Workaround missing maps for x86 PTI entry trampolines Adrian Hunter
2018-11-21 13:52 ` Adrian Hunter [this message]
2018-11-23 19:47 ` [PATCH 4.14 0/5] " Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181121135247.23304-6-adrian.hunter@intel.com \
--to=adrian.hunter@intel.com \
--cc=acme@kernel.org \
--cc=luto@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox