Re: [PATCH] perf tools: using O_LARGEFILE to open perf data file - fix

From: Xiao Guangrong
Date: Wed Feb 03 2010 - 21:33:44 EST




Ingo Molnar wrote:
> * Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx> wrote:
>
>> Setting _FILE_OFFSET_BITS and using O_LARGEFILE, lseek64, etc, is
>> redundant. Thanks H. Peter Anvin for point out
>>
>> Signed-off-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>
>> ---
>> tools/perf/builtin-record.c | 3 +--
>> tools/perf/util/header.c | 21 ++++++++++-----------
>> tools/perf/util/session.c | 3 +--
>> tools/perf/util/trace-event-read.c | 14 +++++++-------
>> 4 files changed, 19 insertions(+), 22 deletions(-)
>
> i already applied the v1 patch - mind sending a delta patch that removes the
> redundant definitions?
>

Hi Ingo,

This patch is the delta patch, i used the _FILE_OFFSET_BITS defining and removed
O_LARGEFILE/lseek64 to keep code clean.

I'll integrate Peter's comments and send the new version.

Thanks,
Xiao
--
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/