]> git.openfabrics.org - ~ardavis/dapl.git/commit
common: 2 new debug logging levels for low system memory and package info
authorArlin Davis <arlin.r.davis@intel.com>
Mon, 29 Oct 2012 18:54:46 +0000 (11:54 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Mon, 29 Oct 2012 18:54:46 +0000 (11:54 -0700)
commitf0bf59e9bf295ede582bdb3a74450f7b73de0926
tree8a960591ed1b83d9f901ebed07fa37dd1758e28d
parenteb7b0db973bb35a9f15e4e41cf699b9e05dbcfcd
common: 2 new debug logging levels for low system memory and package info

DAPL_DBG_TYPE_SYS_WARN = 0x800000
DAPL_DBG_TYPE_VER = 0x1000000

export DAPL_DBG_SYS_MEM = 5 will set the checking for memory less than 5%
when DAPL_DBG_TYPE is set with bit DAPL_DBG_TYPE_SYS_WARN.

The package must be built with --enable-counters for memory checking to
be enabled.

In addition, if DAPL_DBG_TYPE -s set with bit DAPL_DBG_TYPE_VER than
the package rev and build date will be sent to stdout during library
init.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
Makefile.am
dapl/common/dapl_debug.c
dapl/include/dapl_debug.h
dapl/openib_common/dapl_ib_dto.h
dapl/openib_ucm/dapl_ib_util.h
dapl/udapl/dapl_init.c
dapl/udapl/dapl_lmr_create.c
dapl/udapl/linux/dapl_osd.h