VMS/VMS_Projects/VMS_Projects__MC_shared/VSs/VSs__Hello_World__MC_shared__LangDev

changeset 8:2c06eac6bae9 jpeg

counter instrumentation done
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Fri, 31 Aug 2012 18:30:47 +0200
parents 68016752f596
children 1a3e711318de
files .hgsubstate src/VMS_Implementations/VMS_defs__turn_on_and_off.h
diffstat 2 files changed, 82 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/.hgsubstate	Tue Aug 21 17:44:51 2012 +0200
     1.2 +++ b/.hgsubstate	Fri Aug 31 18:30:47 2012 +0200
     1.3 @@ -2,8 +2,8 @@
     1.4  7adf81960d1058509287d02f2df2d9c158b2b2d4 src/C_Libraries/DynArray
     1.5  b398837ef4aaeba34d26f6c425e5fefabdad88c8 src/C_Libraries/Hash_impl
     1.6  0d2f5b1db610c18efafcbddb06bebe4ca27013ee src/C_Libraries/Histogram
     1.7 -5df9392eca1a7795f2dd0addd2c89fd423bf15ed src/C_Libraries/ListOfArrays
     1.8 +abf2117d753533e6787b0487e0f10f43de27f514 src/C_Libraries/ListOfArrays
     1.9  253da493308e4bbf85c6a1b8ef9599734a67841a src/C_Libraries/ParamHelper
    1.10  b9cb01d8ce569a10a031cf37d2aec59b7b12c621 src/C_Libraries/Queue_impl
    1.11 -7a2039d9fa7d16a5da864a4262891c42dedceb2a src/VMS_Implementations/VMS_impl
    1.12 -2bf83f932705354366c6496ca8733d2df31b45dc src/VMS_Implementations/VSs_impl
    1.13 +e7d2f8fad13da337c8d424923d01a9ccdad8a8a7 src/VMS_Implementations/VMS_impl
    1.14 +f83fff8bd4b2c0331e775c3df4ac8b44fac0a87c src/VMS_Implementations/VSs_impl
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/VMS_Implementations/VMS_defs__turn_on_and_off.h	Fri Aug 31 18:30:47 2012 +0200
     2.3 @@ -0,0 +1,79 @@
     2.4 +/*
     2.5 + *  Copyright 2009 OpenSourceStewardshipFoundation.org
     2.6 + *  Licensed under GNU General Public License version 2
     2.7 + *
     2.8 + * Author: seanhalle@yahoo.com
     2.9 + * 
    2.10 + */
    2.11 +
    2.12 +#ifndef _VMS_DEFS_TURN_ON_AND_OFF_H
    2.13 +#define _VMS_DEFS_TURN_ON_AND_OFF_H
    2.14 +#define _GNU_SOURCE
    2.15 +
    2.16 +//======================  Turn Debug things on and off  =====================
    2.17 +/*When DEBUG__TURN_ON_SEQUENTIAL_MODE is defined, VMS does sequential exe in the main thread
    2.18 + * It still does co-routines and all the mechanisms are the same, it just
    2.19 + * has only a single thread and animates Slvs one at a time
    2.20 + */
    2.21 +//#define DEBUG__TURN_ON_SEQUENTIAL_MODE
    2.22 +
    2.23 +
    2.24 +/*turns on the probe-instrumentation in the application -- when not
    2.25 + * defined, the calls to the probe functions turn into comments
    2.26 + */
    2.27 +//#define DEBUG__TURN_ON_DEBUG_PRINT
    2.28 +
    2.29 +/*These defines turn types of bug messages on and off
    2.30 + */
    2.31 +#define dbgAppFlow   TRUE /* Top level flow of application code -- general*/
    2.32 +#define dbgProbes    FALSE /* for issues inside probes themselves*/
    2.33 +#define dbgB2BMaster FALSE /* in coreloop, back to back master Slvs*/
    2.34 +#define dbgRqstHdlr  TRUE /* in request handler code*/
    2.35 +#define dbgSS        TRUE /* in request handler code*/
    2.36 +
    2.37 +//#define DEBUG__TURN_ON_ERROR_MSGS
    2.38 +
    2.39 +//==================  Turn Probe Things on and off ====================
    2.40 +/*Probes are used in the application as a cheap, convenient, and fast way
    2.41 + * to collect statistics.  Define this to enable them, else the probe
    2.42 + * statements in the application code all turn into empty whitespace
    2.43 + * in the pre-processor
    2.44 + */
    2.45 +//#define PROBES__TURN_ON_STATS_PROBES
    2.46 +
    2.47 +/*When PROBES__TURN_ON_STATS_PROBES is defined, turn on one of these to choose
    2.48 + * what kind of measurement the probes store
    2.49 + */
    2.50 +//#define PROBES__USE_TSC_PROBES
    2.51 +#define PROBES__USE_TIME_OF_DAY_PROBES
    2.52 +//#define PROBES__USE_PERF_CTR_PROBES
    2.53 +
    2.54 +
    2.55 +//==============  Turn Internal Measurement Things on and off ===============
    2.56 +
    2.57 +//#define MEAS__TURN_ON_SUSP_MEAS
    2.58 +//#define MEAS__TURN_ON_MASTER_MEAS
    2.59 +//#define MEAS__TURN_ON_MASTER_LOCK_MEAS
    2.60 +//#define MEAS__TURN_ON_MALLOC_MEAS
    2.61 +//#define MEAS__TURN_ON_PLUGIN_MEAS
    2.62 +//#define MEAS__TURN_ON_SYSTEM_MEAS
    2.63 +
    2.64 +   /*turn on/off subtraction of create measurements from plugin meas*/
    2.65 +//#define MEAS__TURN_ON_EXCLUDE_CREATION_TIME 
    2.66 +
    2.67 +#define HOLISTIC__TURN_ON_PERF_COUNTERS
    2.68 +#define HOLISTIC__TURN_ON_OBSERVE_UCC
    2.69 +//#define DETECT_LOOP_GRAPH
    2.70 +
    2.71 +//===================  Turn on or off system options  =======================
    2.72 +//
    2.73 +/*Defining SYS__TURN_ON_WORK_STEALING causes the core controller behavior
    2.74 + * to change.  When it detects too many back-to-back masters, then it 
    2.75 + * searches the other core controllers, looking for work it can steal from
    2.76 + * them.
    2.77 + */
    2.78 +//#define SYS__TURN_ON_WORK_STEALING
    2.79 +
    2.80 +//===========================================================================
    2.81 +#endif	/*  */
    2.82 +