[Top] [All Lists]

Re: [PATCH] Avoid gettimeofday when not needed

To: Andi Kleen <ak@xxxxxx>
Subject: Re: [PATCH] Avoid gettimeofday when not needed
From: P@xxxxxxxxxxxxxx
Date: Wed, 31 Mar 2004 13:22:14 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <200403311201.i2VC13D19579@xxxxxxxxxxx>
References: <200403311201.i2VC13D19579@xxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124
Andi Kleen wrote:
This patch implements an optimization I proposed a long time ago. gettimeofday can be quite costly and it currently is on the fast path of every packet. Normally the packet time stamp
is not needed (e.g. TCP doesn't use it), except for tcpdump
and a few applications.

Will this work for apps that don't use a seperate syscall
to get the timestamp. Like CONFIG_PACKET_MMAP for e.g?


<Prev in Thread] Current Thread [Next in Thread>