-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
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
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
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