Re: Converting from jiffies to ticks

2010-08-21 Thread Jesse Smith
-Original Message- From: Boris Kochergin To: Jesse Smith Cc: freebsd-hackers@freebsd.org Subject: Re: Converting from jiffies to ticks Date: Fri, 20 Aug 2010 09:46:26 -0400 Jesse Smith wrote: > I am currently trying to port a program from Linux to FreeBSD which > detects ho

Re: Converting from jiffies to ticks

2010-08-20 Thread John Baldwin
On Friday, August 20, 2010 9:14:23 am Jesse Smith wrote: > I am currently trying to port a program from Linux to FreeBSD which > detects how much processor time a process is using. The native Linux > code does this (in part) by reading the number of "jiffies" a given > process uses. This info is pu

Re: Converting from jiffies to ticks

2010-08-20 Thread Boris Kochergin
Jesse Smith wrote: I am currently trying to port a program from Linux to FreeBSD which detects how much processor time a process is using. The native Linux code does this (in part) by reading the number of "jiffies" a given process uses. This info is pulled from the /proc/PID/stat file. One func

Converting from jiffies to ticks

2010-08-20 Thread Jesse Smith
I am currently trying to port a program from Linux to FreeBSD which detects how much processor time a process is using. The native Linux code does this (in part) by reading the number of "jiffies" a given process uses. This info is pulled from the /proc/PID/stat file. One function is failing on Fr