projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update ltt
[lttv.git]
/
trunk
/
lttv
/
ltt
/
tracefile.c
diff --git
a/trunk/lttv/ltt/tracefile.c
b/trunk/lttv/ltt/tracefile.c
index cb7d5e80ffd7bb29908c3683d443727bc14a819b..b4d20cc23d84beed08a03fdb2d87a77538567f9f 100644
(file)
--- a/
trunk/lttv/ltt/tracefile.c
+++ b/
trunk/lttv/ltt/tracefile.c
@@
-165,7
+165,7
@@
static int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t)
(struct ltt_trace_header_2_0 *)header;
tf->buffer_header_size =
sizeof(struct ltt_block_start_header)
(struct ltt_trace_header_2_0 *)header;
tf->buffer_header_size =
sizeof(struct ltt_block_start_header)
- + sizeof(struct ltt_trace_header_
1
_0);
+ + sizeof(struct ltt_trace_header_
2
_0);
tf->tscbits = vheader->tscbits;
tf->eventbits = vheader->eventbits;
tf->tsc_mask = ((1ULL << tf->tscbits) - 1);
tf->tscbits = vheader->tscbits;
tf->eventbits = vheader->eventbits;
tf->tsc_mask = ((1ULL << tf->tscbits) - 1);
@@
-1256,7
+1256,7
@@
int ltt_tracefile_read_update_event(LttTracefile *tf)
event->timestamp = ltt_get_uint32(LTT_GET_BO(tf), pos);
event->event_id = event->timestamp >> tf->tscbits;
event->timestamp = ltt_get_uint32(LTT_GET_BO(tf), pos);
event->event_id = event->timestamp >> tf->tscbits;
- event->timestamp = event->timestamp & tsc_mask;
+ event->timestamp = event->timestamp & t
f->t
sc_mask;
pos += sizeof(guint32);
switch (event->event_id) {
pos += sizeof(guint32);
switch (event->event_id) {
@@
-1495,7
+1495,7
@@
void ltt_update_event_size(LttTracefile *tf)
*/
if (likely(info && info->fields)) {
/* alignment */
*/
if (likely(info && info->fields)) {
/* alignment */
-
event->data += ltt_align((off_t)event->
data, info->largest_align,
+
tf->event.data += ltt_align((off_t)tf->event.
data, info->largest_align,
info->alignment);
/* size, dynamically computed */
if (info->size != -1)
info->alignment);
/* size, dynamically computed */
if (info->size != -1)
This page took
0.02244 seconds
and
4
git commands to generate.