[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100131083234.GA12637@elte.hu>
Date: Sun, 31 Jan 2010 09:32:34 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Xiao Guangrong <xiaoguangrong@...fujitsu.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Paul Mackerras <paulus@...ba.org>,
Frederic Weisbecker <fweisbec@...il.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] perf tools: fix write_event()
* Xiao Guangrong <xiaoguangrong@...fujitsu.com> wrote:
> We parse the event while it's read from mmap buffer in
> write_event(), but sometimes the event will straddles the
> mmap boundary, we should handle this case
>
> And if we record events(such as perf kmem/sched) for long
> times, Ctrl + C can't interrupt it just for this reason
>
> Signed-off-by: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
> ---
> tools/perf/builtin-record.c | 62 +++++++++++++++++++++++++++++++++---------
Note, i've reverted the original instead, via:
a8e6f73: Revert "perf record: Intercept all events"
As Peter said it, it is fundamentally wrong for perf record to touch the data
stream in the common case. Arnaldo, cannot we use some other method for perf
archive's needs? Worst-case we can do an optional parsing of the data stream
although we should first try hard to find a generic method ...
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists