]> git.openfabrics.org - ~ardavis/dapl.git/commit
commom: add cm, link, and diag event counters in IB extended builds
authorArlin Davis <arlin.r.davis@intel.com>
Fri, 20 Apr 2012 00:15:22 +0000 (17:15 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Fri, 20 Apr 2012 00:15:22 +0000 (17:15 -0700)
commit50ed4fcc7a998877dcb17af7cde2ee8896295b7f
treed48b6d337b2f864a468d6c7a83be60a65112903e
parent0fc4298cad74f47b10c59b1808c8077910fc7c9d
commom: add cm, link, and diag event counters in IB extended builds

Add additional event monitoring capabilities during runtime to help
isolate issues during scaling in lieu of logging/printing warning
messages. Counters have been added to provider CM services and counters
have been added and mapped to sysfs ib_cm, device port and device
diag counters. ibdev_path is used for device sysfs counters.

uDAPL CM events are tracked on a per IA instance via internal
provider counters. The ib_cm, link, and diag events are tracked on a
per platform basis via sysfs. For these running counters a start
and stop function is provided for sampling and mapping to DAPL
64 bit counters. All counters, along with new start and stop functions,
are provided via dat_ib_extensions.h. New IB extension version is 2.0.7

New DCNT_IA_xx counters include 40 cm, 9 link, and 9 diag types.

To enable new counters (default build is disabled):
./configure --enable-counters

New bitmappings have been added to DAPL_DBG_TYPE environment
variable to automatically start/stop counters and log
errors if counters are enabled. The following will control
CM, LINK, and DIAG respectively:

   DAPL_DBG_TYPE_CM_ERRS = 0x080000,
   DAPL_DBG_TYPE_LINK_ERRS = 0x100000,
   DAPL_DBG_TYPE_DIAG_ERRS = 0x400000,

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
Makefile.am
configure.in
dapl/common/dapl_debug.c
dapl/common/dapl_ia_open.c
dapl/common/dapl_ia_util.c
dapl/include/dapl_debug.h
dapl/openib_common/dapl_ib_common.h
dapl/openib_common/ib_extensions.c
dapl/udapl/linux/dapl_osd.h
dat/include/dat2/dat_ib_extensions.h