[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200924151815.22930-1-leo.yan@linaro.org>
Date: Thu, 24 Sep 2020 23:18:13 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Will Deacon <will@...nel.org>, Ingo Molnar <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Ian Rogers <irogers@...gle.com>,
Nick Gasson <nick.gasson@....com>,
John Garry <john.garry@...wei.com>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Stephane Eranian <eranian@...gle.com>,
Remi Bernon <rbernon@...eweavers.com>,
Andi Kleen <ak@...ux.intel.com>, linux-kernel@...r.kernel.org,
clang-built-linux@...glegroups.com
Cc: Leo Yan <leo.yan@...aro.org>
Subject: [PATCH v5 0/2] perf: Make tsc testing as a common testing case
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
Powered by blists - more mailing lists