Re: Converting from jiffies to ticks

2010-08-20 Thread Jesse Smith
-Original Message- From: Jeremy Chadwick To: Jesse Smith Cc: freebsd-ports Subject: Re: Converting from jiffies to ticks Date: Thu, 19 Aug 2010 12:26:45 -0700 On Thu, Aug 19, 2010 at 04:15:39PM -0300, Jesse Smith wrote: > I am currently trying to port a program from Linux to Free

Re: Converting from jiffies to ticks

2010-08-19 Thread Chuck Swiger
Hi-- On Aug 19, 2010, at 12:15 PM, Jesse Smith wrote: > This raises two questions for me: > 1. Where can I find the equivalent information on FreeBSD? I assume > there's a function call. Maybe in the kvm_* family? I need to be able to > get the number of ticks a given PID is using. Does process a

Re: Converting from jiffies to ticks

2010-08-19 Thread Jeremy Chadwick
On Thu, Aug 19, 2010 at 04:15:39PM -0300, 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 i

Converting from jiffies to ticks

2010-08-19 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