Sync with 5.2.0
[deliverable/titan.core.git] / mctr2 / cli / config_read.y
index f70b1606b8a01b6405d53f558c01a45682a12c44..496d4f3994ff8b7c949d82ec3f58e2af4899b305 100644 (file)
@@ -69,12 +69,14 @@ static void yyprint(FILE *file, int type, const YYSTYPE& value);
        char *str_val;
        BIGNUM *int_val;
        double float_val;
+  boolean bool_val;
   cf_timestamp_format ts_val;
        execute_list_item       execute_item_val;
 }
 
 %token ModuleParametersKeyword
 %token LoggingKeyword
+%token ProfilerKeyword
 %token TestportParametersKeyword
 %token ExecuteKeyword
 %token ExternalCommandsKeyword
@@ -163,6 +165,13 @@ static void yyprint(FILE *file, int type, const YYSTYPE& value);
 %token Re_try /* Retry clashes with an enum in Qt */
 %token Delete
 
+%token DisableProfilerKeyword   "DisableProfiler"
+%token DisableCoverageKeyword   "DisableCoverage"
+%token DatabaseFileKeyword      "DatabaseFile"
+%token AggregateDataKeyword     "AggregateData"
+%token StatisticsFileKeyword    "StatisticsFile"
+%token DisableStatisticsKeyword "DisableStatistics"
+
 %type <int_val> IntegerValue
 %type <float_val> FloatValue KillTimerValue
 %type <str_val> HostName StringValue LogFileName
@@ -219,6 +228,7 @@ ConfigFile:
 Section:
        ModuleParametersSection
        | LoggingSection
+  | ProfilerSection
        | TestportParametersSection
        | ExecuteSection
        | ExternalCommandsSection
@@ -678,6 +688,50 @@ MatchVerbosityValue:
        | Detailed
 ;
 
+/*********************** [PROFILER] ********************************/
+
+ProfilerSection:
+  ProfilerKeyword ProfilerSettings
+;
+
+ProfilerSettings:
+  /* empty */
+| ProfilerSettings ProfilerSetting optSemiColon
+;
+
+ProfilerSetting:
+  DisableProfilerSetting
+| DisableCoverageSetting
+| DatabaseFileSetting
+| AggregateDataSetting
+| StatisticsFileSetting
+| DisableStatisticsSetting
+;
+
+DisableProfilerSetting:
+  DisableProfilerKeyword AssignmentChar BooleanValue
+;
+
+DisableCoverageSetting:
+  DisableCoverageKeyword AssignmentChar BooleanValue
+;
+
+DatabaseFileSetting:
+  DatabaseFileKeyword AssignmentChar StringValue { Free($3); }
+;
+
+AggregateDataSetting:
+  AggregateDataKeyword AssignmentChar BooleanValue
+;
+
+StatisticsFileSetting:
+  StatisticsFileKeyword AssignmentChar StringValue { Free($3); }
+;
+
+DisableStatisticsSetting:
+  DisableStatisticsKeyword AssignmentChar BooleanValue
+;
+
 /******************* [TESTPORT_PARAMETERS] section *******************/
 
 TestportParametersSection:
This page took 0.024547 seconds and 5 git commands to generate.