summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/rule/prdrCompile.y
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2016-04-08 10:33:15 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-05-02 12:00:12 -0400
commit7057ace0dd090782177982d9dcda3532286e33ab (patch)
treedc02b69d733a12eb37802661d2a758fce307b01f /src/usr/diag/prdf/common/rule/prdrCompile.y
parentbd81810ed1cb2a9559fd14ae8babb63415b596e7 (diff)
downloadtalos-hostboot-7057ace0dd090782177982d9dcda3532286e33ab.tar.gz
talos-hostboot-7057ace0dd090782177982d9dcda3532286e33ab.zip
PRD: added support for new HOST_ATTN attention type
Change-Id: I9c351931dab0bc1759ef9b609a997ad8a8194c3a RTC: 151229 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23049 Tested-by: Jenkins Server Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Squashed: Iae8d7fe98a5b5b6d4577a82806be71aaff931c6f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23807 Tested-by: FSP CI Jenkins
Diffstat (limited to 'src/usr/diag/prdf/common/rule/prdrCompile.y')
-rw-r--r--src/usr/diag/prdf/common/rule/prdrCompile.y24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/usr/diag/prdf/common/rule/prdrCompile.y b/src/usr/diag/prdf/common/rule/prdrCompile.y
index a76df8e13..0553e8c5a 100644
--- a/src/usr/diag/prdf/common/rule/prdrCompile.y
+++ b/src/usr/diag/prdf/common/rule/prdrCompile.y
@@ -684,7 +684,7 @@ rule: PRDR_RULE PRDR_ID '{' ruleexpr ';' '}' ';'
| PRDR_RULE PRDR_ID '{' PRDR_ID ':' ruleexpr ';' '}' ';'
{
g_rules[*$2] = new ExprOp1(Prdr::RULE,
- new ExprAttnLink($4, $6, NULL, NULL, NULL, NULL, NULL, NULL));
+ new ExprAttnLink($4, $6, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL));
delete $2;
delete $4;
}
@@ -693,7 +693,7 @@ rule: PRDR_RULE PRDR_ID '{' ruleexpr ';' '}' ';'
'}' ';'
{
g_rules[*$2] = new ExprOp1(Prdr::RULE,
- new ExprAttnLink($4, $6, $8, $10, NULL, NULL, NULL, NULL));
+ new ExprAttnLink($4, $6, $8, $10, NULL, NULL, NULL, NULL, NULL, NULL));
delete $2;
delete $4;
delete $8;
@@ -704,7 +704,7 @@ rule: PRDR_RULE PRDR_ID '{' ruleexpr ';' '}' ';'
'}' ';'
{
g_rules[*$2] = new ExprOp1(Prdr::RULE,
- new ExprAttnLink($4, $6, $8, $10, $12, $14, NULL, NULL));
+ new ExprAttnLink($4, $6, $8, $10, $12, $14, NULL, NULL, NULL, NULL));
delete $2;
delete $4;
delete $8;
@@ -717,13 +717,29 @@ rule: PRDR_RULE PRDR_ID '{' ruleexpr ';' '}' ';'
'}' ';'
{
g_rules[*$2] = new ExprOp1(Prdr::RULE,
- new ExprAttnLink($4, $6, $8, $10, $12, $14, $16, $18));
+ new ExprAttnLink($4, $6, $8, $10, $12, $14, $16, $18, NULL, NULL));
delete $2;
delete $4;
delete $8;
delete $12;
delete $16;
}
+ | PRDR_RULE PRDR_ID '{' PRDR_ID ':' ruleexpr ';'
+ PRDR_ID ':' ruleexpr ';'
+ PRDR_ID ':' ruleexpr ';'
+ PRDR_ID ':' ruleexpr ';'
+ PRDR_ID ':' ruleexpr ';'
+ '}' ';'
+ {
+ g_rules[*$2] = new ExprOp1(Prdr::RULE,
+ new ExprAttnLink($4, $6, $8, $10, $12, $14, $16, $18, $20, $22));
+ delete $2;
+ delete $4;
+ delete $8;
+ delete $12;
+ delete $16;
+ delete $20;
+ }
;
ruleexpr: ruleexpr_small { $$ = $1; }
OpenPOWER on IntegriCloud