projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debug ltt
[lttv.git]
/
genevent
/
parser.c
diff --git
a/genevent/parser.c
b/genevent/parser.c
index 0b725ecc700f42700276e3c541a971c3a557555a..7ac11e7ec8492fb683169fd5004c4cbd0fb2df18 100644
(file)
--- a/
genevent/parser.c
+++ b/
genevent/parser.c
@@
-1,3
+1,6
@@
+
+
+
/*
parser.c: Generate helper declarations and functions to trace events
/*
parser.c: Generate helper declarations and functions to trace events
@@
-215,6
+218,7
@@
void getTypeAttributes(parse_file_t *in, type_descriptor_t *t,
if(!strcmp("format",token)) {
getEqual(in);
t->fmt = allocAndCopy(getQuotedString(in));
if(!strcmp("format",token)) {
getEqual(in);
t->fmt = allocAndCopy(getQuotedString(in));
+ // printf("%s - ",t->fmt);
//} else if(!strcmp("name",token)) {
// getEqual(in);
// car = seekNextChar(in);
//} else if(!strcmp("name",token)) {
// getEqual(in);
// car = seekNextChar(in);
@@
-1474,7
+1478,9
@@
unsigned long getTypeChecksum(unsigned long aCrc, type_descriptor_t * type)
crc = partial_crc32(str,crc);
if(flag) free(str);
crc = partial_crc32(str,crc);
if(flag) free(str);
- if(type->fmt) crc = partial_crc32(type->fmt,crc);
+ //the format string is not included in the crc calculation
+
+ //if(type->fmt) crc = partial_crc32(type->fmt,crc);
if(type->type == ARRAY){
crc = getTypeChecksum(crc,((field_t*)type->fields.array[0])->type);
if(type->type == ARRAY){
crc = getTypeChecksum(crc,((field_t*)type->fields.array[0])->type);
This page took
0.023047 seconds
and
4
git commands to generate.