projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tracefile.c per block cycle counter fix
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
event.c
diff --git
a/ltt/branches/poly/ltt/event.c
b/ltt/branches/poly/ltt/event.c
index b230fd30d7aa87ef9356cc14d954477ad167894e..395d46b114ef68d9ded7a7456f7f5f91effe99ec 100644
(file)
--- a/
ltt/branches/poly/ltt/event.c
+++ b/
ltt/branches/poly/ltt/event.c
@@
-227,21
+227,19
@@
LttField *ltt_event_field(LttEvent *e)
{
LttField * field;
LttEventType * event_type = ltt_event_eventtype(e);
{
LttField * field;
LttEventType * event_type = ltt_event_eventtype(e);
- if(
!event_type
) return NULL;
+ if(
unlikely(!event_type)
) return NULL;
field = event_type->root_field;
field = event_type->root_field;
- if(
!field
) return NULL;
+ if(
unlikely(!field)
) return NULL;
//check if the field need refresh
//check if the field need refresh
- if(e->which_block != event_type->latest_block ||
-
e->which_event != event_type->latest_event
){
+ if(
likely(
e->which_block != event_type->latest_block ||
+
e->which_event != event_type->latest_event)
){
event_type->latest_block = e->which_block;
event_type->latest_event = e->which_event;
event_type->latest_block = e->which_block;
event_type->latest_event = e->which_event;
- if(field->field_fixed == 1)return field;
-
- //refresh the field
- ltt_event_refresh_fields(0, 0, field, e->data);
+ if(unlikely(field->field_fixed != 1))
+ ltt_event_refresh_fields(0, 0, field, e->data);
}
return field;
}
}
return field;
}
This page took
0.023401 seconds
and
4
git commands to generate.