PERFORCE change 198895 for review
Christian S.J. Peron
csjp at FreeBSD.org
Tue Sep 13 13:40:40 UTC 2011
http://p4web.freebsd.org/@@198895?ac=10
Change 198895 by csjp at hvm02 on 2011/09/13 13:39:37
Add support for "any" event type.
Submitted by: Ilias Marinos (slightly modified)
Affected files ...
.. //depot/projects/trustedbsd/bsmtrace/bsm.c#6 edit
.. //depot/projects/trustedbsd/bsmtrace/deuce.h#8 edit
.. //depot/projects/trustedbsd/bsmtrace/grammar.y#3 edit
Differences ...
==== //depot/projects/trustedbsd/bsmtrace/bsm.c#6 (text+ko) ====
@@ -73,6 +73,8 @@
match = 1;
}
}
+ if ((bm->bm_event_flags & BSM_STATE_EVENT_ANY) != 0)
+ match = 1;
if (a->a_negated != 0)
match = !match;
if (!match)
==== //depot/projects/trustedbsd/bsmtrace/deuce.h#8 (text+ko) ====
@@ -105,6 +105,8 @@
int bm_status;
int bm_multiplier;
int bm_event_type;
+#define BSM_STATE_EVENT_ANY 0x00000001U
+ u_int bm_event_flags;
char bm_trig[8192];
TAILQ_ENTRY(bsm_state) bm_glue;
caddr_t bm_raw;
==== //depot/projects/trustedbsd/bsmtrace/grammar.y#3 (text+ko) ====
@@ -408,6 +408,12 @@
bzero(&array_state, sizeof(struct array));
dst->a_negated = $2;
}
+ | EVENT ANY SEMICOLON
+ {
+ bm_state->bm_event_type = SET_TYPE_AUEVENT;
+ bm_state->bm_event_flags |= BSM_STATE_EVENT_ANY;
+ bzero(&array_state, sizeof(struct array));
+ }
;
object_spec:
More information about the p4-projects
mailing list