Re: [PATCH 1/5] perf events: add support for realtime clockattribute

From: Thomas Gleixner
Date: Sun Mar 20 2011 - 15:08:47 EST


On Sun, 20 Mar 2011, David Ahern wrote:
> +
> + if (sample_type & PERF_SAMPLE_REALTIME)
> + data->realtime = ktime_to_ns(ktime_get_real());

That's going to live lock on any sample which happens to hit in a
xtime_lock write locked section. I knew why I suggested adding
tracepoints to the timekeeping code :)

Thanks,

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