Re: perf object code reading test crashes

From: Arnaldo Carvalho de Melo
Date: Thu Feb 18 2016 - 09:36:15 EST


Em Thu, Feb 18, 2016 at 11:27:27AM -0300, Arnaldo Carvalho de Melo escreveu:
> Oops, guess this is the problem, and I also think we don't need more than 1 hz
> in this test if even that :-\
>
> So, try the patch at the end of this message, with it and with I get:

Ok, so this test actually process samples, so please just replace that
with a lower freq, say 10.

> diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
> index 313a48c6b2bc..a984accdaa74 100644
> --- a/tools/perf/tests/code-reading.c
> +++ b/tools/perf/tests/code-reading.c
> @@ -439,7 +439,6 @@ static int do_test_code_reading(bool try_kcore)
> .mmap_pages = UINT_MAX,
> .user_freq = UINT_MAX,
> .user_interval = ULLONG_MAX,
> - .freq = 4000,
> .target = {
> .uses_mmap = true,
> },