Re: [PATCH] FRV: Wire up new syscalls

From: Ingo Molnar
Date: Wed Jul 01 2009 - 07:54:44 EST



* David Howells <dhowells@xxxxxxxxxx> wrote:

> Ingo Molnar <mingo@xxxxxxx> wrote:
>
> > It would make sense to wire it up for real as it's really easy:
> > just set HAVE_PERF_COUNTERS in arch/frv/Kconfig, add an empty
> > arch/frv/include/asm/perf_counter.h file. (Optional: double
> > check that tools/perf/ builds and works fine on FRV ;-)
>
> Are these for hardware performance counters?

No. PMU support is not necessary in the first step, you'll still get
plenty of features from enabling perfcounters on FRV:

- hrtimer driven recording/profiling

- various software counters

- working perf top / perf stat / perf record / perf report

The tools will all work out of box and there's a transparent
fall-back path in the tools if the hardware counters are not
available.

It's much easier to add than basic Oprofile support, and you'll get
a lot more features in exchange as well ;)

[ There might be unanticipated problems of course - please report to
us any problems (tools/perf/ does not build cleanly, features dont
work as expected, etc.). ]

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/