projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update FSF address
[lttv.git]
/
lttv
/
lttv
/
tracecontext.c
diff --git
a/lttv/lttv/tracecontext.c
b/lttv/lttv/tracecontext.c
index 596e06f007901418939c6289952aaa4c34164143..e4f89a72067e4eb3696df9f85ec39be8bf38373b 100644
(file)
--- a/
lttv/lttv/tracecontext.c
+++ b/
lttv/lttv/tracecontext.c
@@
-12,8
+12,8
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston,
- * MA 0211
1-1307
, USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston,
+ * MA 0211
0-1301
, USA.
*/
#ifdef HAVE_CONFIG_H
*/
#ifdef HAVE_CONFIG_H
@@
-22,10
+22,12
@@
#include <string.h>
#include <lttv/lttv.h>
#include <string.h>
#include <lttv/lttv.h>
-#include <lttv/trace
context
.h>
+#include <lttv/trace
set-process
.h>
#include <ltt/event.h>
#include <ltt/trace.h>
#include <ltt/event.h>
#include <ltt/trace.h>
+#ifdef BABEL_NOFILTER
#include <lttv/filter.h>
#include <lttv/filter.h>
+#endif
#include <errno.h>
#include <ltt/time.h>
#include <lttv/event.h>
#include <errno.h>
#include <ltt/time.h>
#include <lttv/event.h>
@@
-36,6
+38,8
@@
#include <babeltrace/ctf/events.h>
#include <babeltrace/ctf/iterator.h>
#include <babeltrace/ctf/events.h>
#include <babeltrace/ctf/iterator.h>
+
+#ifdef BABEL_CLEANUP
gint compare_tracefile(gconstpointer a, gconstpointer b)
{
gint comparison = 0;
gint compare_tracefile(gconstpointer a, gconstpointer b)
{
gint comparison = 0;
@@
-71,7
+75,7
@@
struct _LttvTracesetContextPosition {
* set, else, a position is set (may be end
* of trace, with ep->len == 0) */
};
* set, else, a position is set (may be end
* of trace, with ep->len == 0) */
};
-
+#endif
void lttv_context_init(LttvTracesetContext *self, LttvTraceset *ts)
{
LTTV_TRACESET_CONTEXT_GET_CLASS(self)->init(self, ts);
void lttv_context_init(LttvTracesetContext *self, LttvTraceset *ts)
{
LTTV_TRACESET_CONTEXT_GET_CLASS(self)->init(self, ts);
@@
-238,7
+242,9
@@
init(LttvTracesetContext *self, LttvTraceset *ts)
}
self->sync_position = lttv_traceset_context_position_new(self);
}
self->sync_position = lttv_traceset_context_position_new(self);
+#ifdef BABEL_CLEANUP
self->pqueue = g_tree_new(compare_tracefile);
self->pqueue = g_tree_new(compare_tracefile);
+#endif
lttv_process_traceset_seek_time(self, ltt_time_zero);
lttv_traceset_context_compute_time_span(self, &self->time_span);
lttv_process_traceset_seek_time(self, ltt_time_zero);
lttv_traceset_context_compute_time_span(self, &self->time_span);
@@
-687,13
+693,14
@@
guint lttv_process_traceset_middle(LttvTracesetContext *self,
unsigned count = 0;
unsigned count = 0;
+ gint last_ret = 0;
struct bt_ctf_event *bt_event;
LttvEvent event;
while(TRUE) {
struct bt_ctf_event *bt_event;
LttvEvent event;
while(TRUE) {
- if(
(count >= nb_events) && (nb_events != G_MAXULONG
)) {
+ if(
last_ret == TRUE || ((count >= nb_events) && (nb_events != G_MAXULONG)
)) {
break;
}
break;
}
@@
-706,7
+713,7
@@
guint lttv_process_traceset_middle(LttvTracesetContext *self,
to retrieve the right state container */
event.state = self->tmpState;
to retrieve the right state container */
event.state = self->tmpState;
- lttv_hooks_call(self->event_hooks, &event);
+ l
ast_ret = l
ttv_hooks_call(self->event_hooks, &event);
if(bt_iter_next(bt_ctf_get_iter(self->iter)) < 0) {
printf("ERROR NEXT\n");
if(bt_iter_next(bt_ctf_get_iter(self->iter)) < 0) {
printf("ERROR NEXT\n");
This page took
0.023822 seconds
and
4
git commands to generate.