sysdep_FREEBSD.c File Reference

System dependent resource gathering code for FreeBSD. More...

Go to the source code of this file.

Defines

#define pagetok(size)   ((size) << pageshift)
#define tv2sec(tv)   (((u_int64_t) tv.tv_sec * 1000000) + (u_int64_t) tv.tv_usec)
#define LOG1024   10

Functions

int init_process_info_sysdep (void)
int get_process_info_sysdep (ProcInfo_T p)


Detailed Description

System dependent resource gathering code for FreeBSD.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com> , Christian Hopp <chopp@iei.tu-clausthal.de> , Rory Toma <rory@digeo.com>
Version:
$Id: sysdep_FREEBSD.c,v 1.2 2003/02/11 21:27:40 martinp Exp $

Definition in file sysdep_FREEBSD.c.


Define Documentation

#define LOG1024   10
 

Definition at line 94 of file sysdep_FREEBSD.c.

Referenced by init_process_info_sysdep().

#define pagetok size       ((size) << pageshift)
 

Definition at line 87 of file sysdep_FREEBSD.c.

#define tv2sec tv       (((u_int64_t) tv.tv_sec * 1000000) + (u_int64_t) tv.tv_usec)
 

Definition at line 88 of file sysdep_FREEBSD.c.


Function Documentation

int get_process_info_sysdep ProcInfo_T    p
 

Definition at line 222 of file sysdep_FREEBSD.c.

References myprocinfo::cputime, myprocinfo::cputime_prev, myprocinfo::mem_kbyte, myprocinfo::mem_percent, pagetok, myprocinfo::pid, PROCESS_ZOMBIE, myprocinfo::status_flag, myprocinfo::time_prev, and tv2sec.

int init_process_info_sysdep void   
 

Definition at line 151 of file sysdep_FREEBSD.c.

References len, and LOG1024.