High watermark memory usage feature

This commit is contained in:
Ben Gras
2005-10-18 17:21:11 +00:00
parent 2bf8bfe126
commit 4bae163d37
6 changed files with 34 additions and 17 deletions

View File

@@ -13,4 +13,4 @@ install::
cpdir . $(INC)
@chown -R bin $(INC)
@rm -f $(INC)/Makefile
if [ -f $(MKHEADERS) ] ; then sh $(MKHEADERS) ; fi
# if [ -f $(MKHEADERS) ] ; then sh $(MKHEADERS) ; fi

View File

@@ -54,6 +54,12 @@ struct hole {
phys_clicks h_len; /* how big is the hole? */
};
/* Memory info from PM. */
struct pm_mem_info {
struct hole pmi_holes[_NR_HOLES];/* memory (un)allocations */
u32_t pmi_hi_watermark; /* highest ever-used click + 1 */
};
#define phys_cp_req vir_cp_req
struct vir_cp_req {
struct vir_addr src;