From: Leo Yan <leo.yan@linaro.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Will Deacon <will@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Nathan Chancellor <natechancellor@gmail.com>,
Nick Desaulniers <ndesaulniers@google.com>,
Ian Rogers <irogers@google.com>,
Nick Gasson <nick.gasson@arm.com>,
John Garry <john.garry@huawei.com>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Stephane Eranian <eranian@google.com>,
Remi Bernon <rbernon@codeweavers.com>,
Andi Kleen <ak@linux.intel.com>,
linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com
Cc: Leo Yan <leo.yan@linaro.org>
Subject: [PATCH v5 0/2] perf: Make tsc testing as a common testing case
Date: Thu, 24 Sep 2020 23:18:13 +0800 [thread overview]
Message-ID: <20200924151815.22930-1-leo.yan@linaro.org> (raw)
This patch set is to follow up the building failure which was found by
Arnaldo:
CC /tmp/build/perf/tests/llvm-src-prologue.o
CC /tmp/build/perf/tests/llvm-src-relocation.o
tests/perf-time-to-tsc.c:24:10: fatal error: arch-tests.h: No such
file or directory
24 | #include "arch-tests.h"
| ^~~~~~~~~~~~~~
compilation terminated.
Patch 01 has removed the header "arch-tests.h" from the testing code, so
that this can fix the reported building failure.
These two patches have been tested on x86_64 and Arm64. Though I don't
test them on archs MIPS, PowerPC, etc, I tried to search every header so
ensure included headers are supported for all archs.
These two patches have been rebased on the perf/core branch with its
latest commit 69f48c7040d3 ("perf script: Add min, max to
futex-contention output, in addition to avg").
Leo Yan (2):
perf tests tsc: Make tsc testing as a common testing
perf tests tsc: Add checking helper is_supported()
tools/perf/arch/x86/include/arch-tests.h | 1 -
tools/perf/arch/x86/tests/Build | 1 -
tools/perf/arch/x86/tests/arch-tests.c | 4 ----
tools/perf/tests/Build | 1 +
tools/perf/tests/builtin-test.c | 5 +++++
.../{arch/x86 => }/tests/perf-time-to-tsc.c | 19 +++++++++++++++----
tools/perf/tests/tests.h | 2 ++
7 files changed, 23 insertions(+), 10 deletions(-)
rename tools/perf/{arch/x86 => }/tests/perf-time-to-tsc.c (92%)
--
2.17.1
next reply other threads:[~2020-09-24 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 15:18 Leo Yan [this message]
2020-09-24 15:18 ` [PATCH v5 1/2] perf tests tsc: Make tsc testing as a common testing Leo Yan
2020-09-24 15:18 ` [PATCH v5 2/2] perf tests tsc: Add checking helper is_supported() Leo Yan
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=20200924151815.22930-1-leo.yan@linaro.org \
--to=leo.yan@linaro.org \
--cc=acme@kernel.org \
--cc=ak@linux.intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=eranian@google.com \
--cc=irogers@google.com \
--cc=john.garry@huawei.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mathieu.poirier@linaro.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=natechancellor@gmail.com \
--cc=ndesaulniers@google.com \
--cc=nick.gasson@arm.com \
--cc=peterz@infradead.org \
--cc=rbernon@codeweavers.com \
--cc=will@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;
as well as URLs for NNTP newsgroup(s).