summaryrefslogtreecommitdiffstats
path: root/src/config-bison.y
diff options
context:
space:
mode:
authorJiri Olsa <Jiri Olsa jolsa@redhat.com>2012-01-11 23:45:18 +0100
committerJiri Olsa <Jiri Olsa jolsa@redhat.com>2012-01-11 23:45:18 +0100
commit50694d55abfdd0807e1617f84c905df330ed97a7 (patch)
treea736dab4985fcc98437a8249df251ff25a41a14d /src/config-bison.y
parentdaafe68255b0fbae2d7c1d4c696538327037b067 (diff)
downloadlatrace-error_simulation5.tar.gz
latrace-error_simulation5.tar.xz
latrace-error_simulation5.zip
Diffstat (limited to 'src/config-bison.y')
-rw-r--r--src/config-bison.y32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/config-bison.y b/src/config-bison.y
index 9d22b0b..cdd94be 100644
--- a/src/config-bison.y
+++ b/src/config-bison.y
@@ -73,9 +73,10 @@ static struct lt_list_head ln_names;
%token OPT_ARGS_STRING_POINTER_LENGTH
%token ERROR
%token ERR_DO ERR_DIR ERR_RUN ERR_GO ERR_RETURN ERR_N
-%token ERR_PROG ERR_ARGS ERR_FILTER ERR_SEQ ERR_START
+%token ERR_PROG ERR_ARGS ERR_FILTER ERR_SEQ
%token ERR_SIGSEGV ERR_AUTO ERR_REPLAY ERR_KEEP
%token ERR_TYPE
+%token ERR_START ERR_AFTER ERR_ENTRIES ERR_EXITS ERR_OF
%union
{
@@ -86,6 +87,7 @@ static struct lt_list_head ln_names;
%type <s> NAME
%type <s> BOOL
%type <l> VALUE
+%type <s> start_after_sym
%%
entry:
@@ -394,11 +396,6 @@ error_run_def ERR_RETURN list_names_comma
ABORT("failed to add run");
}
|
-error_run_def ERR_START ERR_N '=' VALUE
-{
- error_app_run->start.n = $5;
-}
-|
error_run_def ERR_TYPE ERR_SEQ
{
if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_SEQ))
@@ -417,6 +414,29 @@ error_run_def ERR_TYPE ERR_REPLAY
ABORT("failed to add run");
}
|
+error_run_def ERR_START ERR_AFTER VALUE ERR_ENTRIES start_after_sym
+{
+ if (lt_error_run_start_after(scfg, &error_app_run,
+ 1, $4, $6))
+ ABORT("failed to add run");
+}
+|
+error_run_def ERR_START ERR_AFTER VALUE ERR_EXITS start_after_sym
+{
+ if (lt_error_run_start_after(scfg, &error_app_run,
+ 0, $4, $6))
+ ABORT("failed to add run");
+}
+|
+
+start_after_sym: ERR_OF NAME
+{
+ $$ = $2;
+}
+|
+{
+ $$ = NULL;
+}
error_go:
ERR_GO NAME list_names_comma