Re: [PATCH] [RFC] perf: robustify proc and debugfs file recording

From: Sonny Rao
Date: Tue Jul 12 2011 - 17:19:37 EST


On Tue, Jul 12, 2011 at 2:15 PM, Sonny Rao <sonnyrao@xxxxxxxxxxxx> wrote:
> While attempting to create a timechart of boot up I found
> perf didn't tolerate modules being loaded/unloaded.  This patch
> fixes this by reading the file once and then writing the size
> read at the correct point in the file.  It also simplifies the
> code somewhat.
>
> Signed-off-by: Sonny Rao <sonnyrao@xxxxxxxxxxxx>
> ---

Anton or Paul, I cc'ed you hoping you could give this a try on a
big-endian box. There's some IMO less than pleasant code to
make sure it handles big-endian correctly, that I wasn't able to test.

Thanks
Sonny
--
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/