projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for facility mismatch
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
facility.c
diff --git
a/ltt/branches/poly/ltt/facility.c
b/ltt/branches/poly/ltt/facility.c
index 9d342123dcb13f3d3e5e7ad9ca5d6104abd48b19..e6573c9dd616f03518b4791f66c0fecc5a4d2a43 100644
(file)
--- a/
ltt/branches/poly/ltt/facility.c
+++ b/
ltt/branches/poly/ltt/facility.c
@@
-138,11
+138,13
@@
int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname)
checkNamedTypesImplemented(&fac->named_types);
generateChecksum(fac->name, &checksum, &fac->events);
checkNamedTypesImplemented(&fac->named_types);
generateChecksum(fac->name, &checksum, &fac->events);
-
- if(checksum == f->checksum) {
+ // FIXME if(checksum == f->checksum) {
generateFacility(f, fac, checksum);
generated = TRUE;
generateFacility(f, fac, checksum);
generated = TRUE;
- }
+ //}
+ if (checksum != f->checksum)
+ g_warning("Facility checksum mismatch for facility %s : kernel 0x%X vs "
+ "XML 0x%X\n", fac->name, f->checksum, checksum);
g_free(fac->name);
free(fac->capname);
g_free(fac->name);
free(fac->capname);
@@
-195,7
+197,7
@@
void generateFacility(LttFacility *f, facility_t *fac, guint32 checksum)
table_t *named_types = &fac->named_types;
g_assert(f->name == g_quark_from_string(facilityName));
table_t *named_types = &fac->named_types;
g_assert(f->name == g_quark_from_string(facilityName));
- g_assert(f->checksum == checksum);
+
//
g_assert(f->checksum == checksum);
//f->event_number = events->position;
//f->event_number = events->position;
@@
-250,6
+252,8
@@
void generateFacility(LttFacility *f, facility_t *fac, guint32 checksum)
event_type->index = i;
event_type->facility = f;
event_type->index = i;
event_type->facility = f;
+ event_type->has_compact_data = parser_event->compact_data;
+
event_type->fields = g_array_sized_new(FALSE, TRUE,
sizeof(LttField), parser_event->fields.position);
event_type->fields =
event_type->fields = g_array_sized_new(FALSE, TRUE,
sizeof(LttField), parser_event->fields.position);
event_type->fields =
This page took
0.022946 seconds
and
4
git commands to generate.