LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] for help

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] for help
From: Dongsheng Song <dongsheng.song@xxxxxxxxx>
Date: Tue, 22 Nov 2011 20:36:02 +0800
> time(&lasttime);

You CAN NOT use user-space time functions in the kernel module !!!

# cat  System.map-3.1.0-1-amd64  | grep "T ktime"
ffffffff81060ffc T ktime_add_safe
ffffffff810657b8 T ktime_get_boottime
ffffffff810657f5 T ktime_get_ts
ffffffff81065879 T ktime_get
ffffffff8106597a T ktime_get_real
ffffffff81066463 T ktime_get_monotonic_offset

I suggest you use ktime_get_ts.

Regards,
Cauchy

On Tue, Nov 22, 2011 at 18:12, Graeme Fowler <graeme@xxxxxxxxxxx> wrote:
> On Tue, 2011-11-22 at 16:30 +0800, 张松涛 wrote:
>> 我编写了一个sr(最短响应时间)负载均衡器调度算法,编译后出现如下错误
>>     错误:隐式声明函数 ‘time’
>> 请求帮助,谢谢!
>> 代码如下:
>
> Translated (by Google), that said:
>
>> I wrote a sr (the shortest response time) load balancer scheduling
>> algorithm, compiled the following error
>>      Error: implicit declaration of function 'time'
>> Ask for help, thank you!
>> Code is as follows:
>
> Graeme
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>