Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Probst <mark.probst@gmail.com>2012-11-01 17:03:35 +0400
committerMark Probst <mark.probst@gmail.com>2012-12-09 18:02:44 +0400
commit0cf5e18538dc24d4745b2fb2f1091e7b98a7ae19 (patch)
treeb89806ae9ab19a8492347b39f15a13bc4ed2a9cc /tools
parent905f5ebd3e83ad9fcf7691234d83269f5943abcf (diff)
[sgen] Separate binary protocol entries for collection begin and end.
Diffstat (limited to 'tools')
-rw-r--r--tools/sgen/sgen-grep-binprot.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/sgen/sgen-grep-binprot.c b/tools/sgen/sgen-grep-binprot.c
index 2195f4ff3fb..66d307e2f9d 100644
--- a/tools/sgen/sgen-grep-binprot.c
+++ b/tools/sgen/sgen-grep-binprot.c
@@ -19,7 +19,8 @@ read_entry (FILE *in, void **data)
if (fread (&type, 1, 1, in) != 1)
return SGEN_PROTOCOL_EOF;
switch (type) {
- case SGEN_PROTOCOL_COLLECTION: size = sizeof (SGenProtocolCollection); break;
+ case SGEN_PROTOCOL_COLLECTION_BEGIN: size = sizeof (SGenProtocolCollection); break;
+ case SGEN_PROTOCOL_COLLECTION_END: size = sizeof (SGenProtocolCollection); break;
case SGEN_PROTOCOL_ALLOC: size = sizeof (SGenProtocolAlloc); break;
case SGEN_PROTOCOL_ALLOC_PINNED: size = sizeof (SGenProtocolAlloc); break;
case SGEN_PROTOCOL_ALLOC_DEGRADED: size = sizeof (SGenProtocolAlloc); break;
@@ -50,9 +51,14 @@ static void
print_entry (int type, void *data)
{
switch (type) {
- case SGEN_PROTOCOL_COLLECTION: {
+ case SGEN_PROTOCOL_COLLECTION_BEGIN: {
SGenProtocolCollection *entry = data;
- printf ("collection %d generation %d\n", entry->index, entry->generation);
+ printf ("collection begin %d generation %d\n", entry->index, entry->generation);
+ break;
+ }
+ case SGEN_PROTOCOL_COLLECTION_END: {
+ SGenProtocolCollection *entry = data;
+ printf ("collection end %d generation %d\n", entry->index, entry->generation);
break;
}
case SGEN_PROTOCOL_ALLOC: {
@@ -152,7 +158,8 @@ static gboolean
is_match (gpointer ptr, int type, void *data)
{
switch (type) {
- case SGEN_PROTOCOL_COLLECTION:
+ case SGEN_PROTOCOL_COLLECTION_BEGIN:
+ case SGEN_PROTOCOL_COLLECTION_END:
case SGEN_PROTOCOL_THREAD_SUSPEND:
case SGEN_PROTOCOL_THREAD_RESTART:
case SGEN_PROTOCOL_THREAD_REGISTER: