stub proc_mem fault metrics

This commit is contained in:
Doug MacEachern 2005-11-23 18:00:02 +00:00
parent 612c5ca97e
commit 0d38b8332d
4 changed files with 17 additions and 0 deletions

View File

@ -807,6 +807,9 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
procmem->share = shared;
procmem->vsize = vsize;
procmem->resident = resident;
procmem->page_faults = SIGAR_FIELD_NOTIMPL;
procmem->minor_faults = SIGAR_FIELD_NOTIMPL;
procmem->major_faults = SIGAR_FIELD_NOTIMPL;
return SIGAR_OK;
#else
@ -825,6 +828,10 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
procmem->share = SIGAR_FIELD_NOTIMPL;
procmem->page_faults = SIGAR_FIELD_NOTIMPL;
procmem->minor_faults = SIGAR_FIELD_NOTIMPL;
procmem->major_faults = SIGAR_FIELD_NOTIMPL;
return SIGAR_OK;
#endif
}

View File

@ -179,6 +179,9 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
procmem->share = -1;
procmem->rss = -1;
procmem->resident = -1;
procmem->page_faults = -1;
procmem->minor_faults = -1;
procmem->major_faults = -1;
return SIGAR_OK;
}

View File

@ -228,6 +228,10 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
/*XXX*/
procmem->size = 1; /* 1 == let ant test pass for now */
procmem->page_faults = SIGAR_FIELD_NOTIMPL;
procmem->minor_faults = SIGAR_FIELD_NOTIMPL;
procmem->major_faults = SIGAR_FIELD_NOTIMPL;
return SIGAR_OK;
}

View File

@ -101,6 +101,9 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
procmem->share = -1;
procmem->rss = -1;
procmem->resident = -1;
procmem->page_faults = -1;
procmem->minor_faults = -1;
procmem->major_faults = -1;
return SIGAR_OK;
}