[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151007201030.GA3249@codeblueprint.co.uk>
Date: Wed, 7 Oct 2015 21:10:30 +0100
From: Matt Fleming <matt@...eblueprint.co.uk>
To: Michael Petlan <mpetlan@...hat.com>
Cc: Jiri Olsa <jolsa@...hat.com>, Vinson Lee <vlee@...pensource.com>,
rostedt@...dmis.org, Jiri Olsa <jolsa@...nel.org>,
raphael.beamonte@...il.com, "H. Peter Anvin" <hpa@...or.com>,
LKML <linux-kernel@...r.kernel.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
David Ahern <dsahern@...il.com>,
Ingo Molnar <mingo@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Namhyung Kim <namhyung@...nel.org>,
linux-tip-commits@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: Re: [tip:perf/core] tools lib api fs: Remove debugfs, tracefs and
findfs objects
On Thu, 24 Sep, at 05:05:57PM, Michael Petlan wrote:
>
> Hi!
>
> Yes, we have some tests, but they really need some refactoring and then
> extending.
>
> There are many "regression" tests that cover some extreme situations
> that failed with some kernel/perf version on some hardware. They are
> probably not very useful for the purpose mentioned here.
If they look anything like this,
https://git.kernel.org/cgit/linux/kernel/git/acme/linux.git/commit/?h=perf/core&id=035827e9f2bd71a280f4eb58c65811d377ab2217
i.e. the tests trigger kernel bugs, then I think they would be useful.
If the tests are more along the lines of "you need a huge machine to
trigger the issue caught by the test", maybe not.
> Then there are some tests that should cover basic functionality and
> check for the correctness of perf's behaviour. Since it became being
> pretty messy, I have got an idea to rewrite that in a more structured
> and robust way and make it public.
These tests sounds incredibly useful. I would certainly feel better if
I could just hack on random pieces of tools/perf and have the safety
net of regression tests to catch mistakes.
> So I started with some skeleton and tests for perf stat builtin sub
> command [1]. My idea is to port there all the meaningful tests that
> we have at Red Hat. Then I will be happy if someone else is interested
> in contributing some more coverage, ideas or whatever...
My immediate reaction is: please put these tests into tools/perf, do
not create a separate repository.
Now, you've probably got a good reason for wanting to do that, but
definitely let's discuss it first before you go ahead and invest time
and energy in porting things.
You can see my current line of thinking for perf testing with the
perf arch tests series,
https://lkml.kernel.org/r/1444056021-25721-1-git-send-email-matt@codeblueprint.co.uk
I think tools/perf as a concenpt (include the userland tool in the
same repo as the kernel) has been very successful because you
frequently get the same developer writing both the userspace and
kernel code. Extending that so the same developer writes the
regression tests too (at the time they introduce their new code!) is
crucial.
--
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists