Re: Questions about complete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 6, 2011 at 12:23 PM, loody <miloody@xxxxxxxxx> wrote:
> hi:
>
> 2011/1/6 Pavan Savoy <pavan_savoy@xxxxxxxx>:
>> On Thu, Jan 6, 2011 at 11:48 AM, loody <miloody@xxxxxxxxx> wrote:
>>>
>>> Dear all:
>>> I know complete will wake up the process who call wait_complete.
>>> Is there any methods I can use to measure how long from calling
>>> complete to the process that detect done=1?
>>> Regards,
>>> miloody
>>
>> returned value of wait_for_completion_timeout ?
> No.
> I want to measure the duration of complete to the time of wake up
> process who is pending on wait.

Ah, Ok, Got it...
I would do a copy of jiffies before the complete and do a diff for
jiffies after the
wait_for_ ...

I suppose there would be much more better/optimized way ....

> thank you.
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux