Re: [PATCH 15/16] perf record: Add clockid parameter

From: Arnaldo Carvalho de Melo
Date: Tue Apr 07 2015 - 16:20:51 EST


Em Tue, Apr 07, 2015 at 01:06:31PM -0600, David Ahern escreveu:
> fails to compile on RHEL6/CentOS6/OL6 ...

> On 4/7/15 10:41 AM, Arnaldo Carvalho de Melo wrote:
> >+/*
> >+ * Doesn't appear to have made it into userspace so define here if missing.
> >+ */
> >+#ifndef CLOCK_TAI
> >+#define CLOCK_TAI 11
> >+#endif
> >+
> >+static const struct clockid_map clockids[] = {
> >+ /* available for all events, NMI safe */
> >+ CLOCKID_MAP("monotonic", CLOCK_MONOTONIC),
> >+ CLOCKID_MAP("monotonic_raw", CLOCK_MONOTONIC_RAW),
> >+
> >+ /* available for some events */
> >+ CLOCKID_MAP("realtime", CLOCK_REALTIME),
> >+ CLOCKID_MAP("boottime", CLOCK_BOOTTIME),
> >+ CLOCKID_MAP("tai", CLOCK_TAI),
> >+
> >+ /* available for the lazy */
> >+ CLOCKID_MAP("mono", CLOCK_MONOTONIC),
> >+ CLOCKID_MAP("raw", CLOCK_MONOTONIC_RAW),
> >+ CLOCKID_MAP("real", CLOCK_REALTIME),
> >+ CLOCKID_MAP("boot", CLOCK_BOOTTIME),
> >+

> builtin-record.c:738: error: âCLOCK_BOOTTIMEâ undeclared here (not in a
> function)
> make[2]: *** [/tmp/perf/builtin-record.o] Error 1
> make[1]: *** [/tmp/perf/perf-in.o] Error 2
> make: *** [all] Error 2
>
> Need this similar to CLOCK_TAI:

Fixed on perf-core-for-mingo-2 tag, Ingo, up to you.

- Arnaldo
--
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/