Project

General

Profile

Actions

Bug #164

closed

bt_ctf_iter not correctly initialized if no start parameter passed

Added by Yannick Brosseau about 12 years ago. Updated about 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Julien Desfossez
Category:
-
Target version:
-
Start date:
03/09/2012
Due date:
% Done:

0%

Estimated time:

Description

It seems we cannot pass NULL as a start parameter when we create an iterator.

If I do:
begin_pos.type = BT_SEEK_BEGIN;
bt_ctf_iter_create(ctx, &begin_pos, NULL);

I get the right events: (showing event name and raw timestamp)
sample_tracepoint:message 121447642819094
sample_tracepoint:message 121447642821928

If I do just:
bt_ctf_iter_create(ctx, NULL, NULL);

I get 4 more events at the beginning:
sample_tracepoint:message 18446744073709551615
sample_tracepoint:message 18446744073709551615
sample_tracepoint:message 18446744073709551615
sample_tracepoint:message 18446744073709551615
sample_tracepoint:message 121447642819094
sample_tracepoint:message 121447642821928


Files

trace.zip (1.87 KB) trace.zip The trace on which this problem occur Yannick Brosseau, 03/09/2012 06:39 PM

Related issues 1 (0 open1 closed)

Related to Babeltrace - Bug #159: bt_iter_create should have a default begin position of BEGIN and not currentResolvedJulien Desfossez03/08/2012

Actions
Actions #1

Updated by Yannick Brosseau about 12 years ago

Actions #2

Updated by Julien Desfossez about 12 years ago

  • Status changed from New to Resolved

fixed by b42d4e4eb51a906d1391a6d595fe7bff8b427c7d

Actions

Also available in: Atom PDF