From: pmf Date: Fri, 30 May 2008 15:15:25 +0000 (+0000) Subject: liblttvtraceread: deactivate calls to ltt_tracefile_read_op X-Git-Tag: v0.12.20~562 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=73faf25a05367cab2a68f1a9aac3637198973aaf;p=lttv.git liblttvtraceread: deactivate calls to ltt_tracefile_read_op git-svn-id: http://ltt.polymtl.ca/svn@2927 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index c301950a..9cb5c7a6 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1288,8 +1288,11 @@ int ltt_tracefile_seek_position(LttTracefile *tf, const LttEventPosition *ep) err = ltt_tracefile_read_update_event(tf); if(err) goto fail; + + /* deactivate this, as it does nothing for now err = ltt_tracefile_read_op(tf); if(err) goto fail; + */ return 0; @@ -1368,8 +1371,11 @@ int ltt_tracefile_read(LttTracefile *tf) if(err) return err; err = ltt_tracefile_read_update_event(tf); if(err) return err; + + /* deactivate this, as it does nothing for now err = ltt_tracefile_read_op(tf); if(err) return err; + */ return 0; } @@ -1405,22 +1411,21 @@ int ltt_tracefile_read_seek(LttTracefile *tf) /* do an operation when reading a new event */ -/* do specific operation on events */ +/* This function does nothing for now */ +#if 0 int ltt_tracefile_read_op(LttTracefile *tf) { LttEvent *event; event = &tf->event; - /* do event specific operation */ + /* do event specific operation */ + + /* nothing */ - /* do something if its an heartbeat event : increment the heartbeat count */ - //if(event->facility_id == LTT_FACILITY_CORE) - // if(event->event_id == LTT_EVENT_HEARTBEAT) - // tf->cur_heart_beat_number++; - return 0; } +#endif static void print_debug_event_header(LttEvent *ev, void *start_pos, void *end_pos) {