Re: [RFC][PATCH 2/7] Adding general performance benchmarkingsubsystem to perf.

From: Ingo Molnar
Date: Tue Nov 03 2009 - 02:48:19 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * Hitoshi Mitake <mitake@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >
> > Adding general performance benchmarking subsystem to perf.
> > This patch add new file: bench-suite.h
> >
> > bench-suite.h contains prototypes of benchmark suite functions.
> >
> > Signed-off-by: Hitoshi Mitake <mitake@xxxxxxxxxxxxxxxxxxxxx>
> > Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
> > Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> > Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> > Cc: Mike Galbraith <efault@xxxxxx>
> > ---
> > tools/perf/bench-suite.h | 7 +++++++
> > 1 files changed, 7 insertions(+), 0 deletions(-)
> > create mode 100644 tools/perf/bench-suite.h
> >
> > diff --git a/tools/perf/bench-suite.h b/tools/perf/bench-suite.h
> > new file mode 100644
> > index 0000000..65f6f55
> > --- /dev/null
> > +++ b/tools/perf/bench-suite.h
> > @@ -0,0 +1,7 @@
> > +#ifndef BENCH_SUITE_H
> > +#define BENCH_SUITE_H
> > +
> > +extern int bench_sched_messaging(int argc, const char **argv, const char *prefix);
> > +extern int bench_sched_pipe(int argc, const char **argv, const char *prefix);
> > +
> > +#endif
>
> Please put new headers into tools/*.h.
>
> Also, could we name it bench.h? It's a bit shorter :)

As per my later mail, maybe the better place for this header would be
tools/perf/bench/bench.h. That makes the addition of new benchmark
modules rather self-sufficient.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/