1

perf test: Make watchpoint data 32-bits on i386

i386 only supports watchpoints up to size 4, 8 bytes causes extra
counts and test failures.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Chaitanya S Prakash <chaitanyas.prakash@arm.com>
Cc: Colin Ian King <colin.i.king@gmail.com>
Cc: David Ahern <dsa@cumulusnetworks.com>
Cc: Dominique Martinet <asmadeus@codewreck.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Junhao He <hejunhao3@huawei.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yang Jihong <yangjihong@bytedance.com>
Link: https://lore.kernel.org/r/20240831070415.506194-7-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Ian Rogers 2024-08-31 00:04:15 -07:00 committed by Arnaldo Carvalho de Melo
parent 91235380e5
commit 18f41f1ba5

View File

@ -20,7 +20,12 @@ do { \
TEST_ASSERT_VAL(text, count == val); \ TEST_ASSERT_VAL(text, count == val); \
} while (0) } while (0)
#ifdef __i386__
/* Only breakpoint length less-than 8 has hardware support on i386. */
volatile u32 data1;
#else
volatile u64 data1; volatile u64 data1;
#endif
volatile u8 data2[3]; volatile u8 data2[3];
#ifndef __s390x__ #ifndef __s390x__