Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: benjamin.poirier@polymtl.ca (Benjamin Poirier)
Subject: [ltt-dev] [PATCH] Add time reduction option to synchronisation
Date: Tue, 14 Sep 2010 22:04:23 -0400	[thread overview]
Message-ID: <4C9029A7.9090709@polymtl.ca> (raw)
In-Reply-To: <1284506655-14834-1-git-send-email-masoume.jabbarifar@polymtl.ca>

On 14/09/10 07:24 PM, Masoume Jabbarifar wrote:
> There are two options to synchronise traces, accuracy and time that can be chosen
> by --sync-reduction in command line (something like --sync-reduction time)
> This algorithm finds excess links (when we synchronise A, B and A, C, we can be
> sure that we have synchronised B, C. But which link is excess? In this algorithm,
> the link that has less packet exchanges (less accuracy) has been removed so
> synchronisation time has been improved.
> In this patch, there are 55 trace files from 55 connected computers. This test
> data can help better understanding of two synchronisation algorithms.
>

The sync code is organized in a chain of modules and this code bypasses 
some of this modularization. I'm in the process of reviewing the patch 
and suggesting changes that could make it cleaner and keep the whole 
thing extensible. In the meantime, if you need a more pragmatic reason 
not to merge it, it crashes lttv:

$ ./runlttv -m eval -H gdb
[...]
Program received signal SIGSEGV, Segmentation fault.
0x0806eb64 in initMatchingTCP (syncState=0x8087b68) at 
sync/event_matching_tcp.c:118
118		if (syncState->reductionModule->preProcessReduction != NULL || 
syncState->stats) {

> Signed-off-by: Masoume Jabbarifar<masoume.jabbarifar at polymtl.ca>
> ---
>   lttv/lttv/Makefile.am                              |    2 +
>   lttv/lttv/sync/Makefile.am                         |    4 +-
>   lttv/lttv/sync/data_structures.c                   |    2 -
>   lttv/lttv/sync/event_matching_tcp.c                |   87 +++-
>   lttv/lttv/sync/event_matching_tcp.h                |    1 +

[mega snip]

Masoume, please read 
http://lxr.linux.no/#linux+v2.6.35.4/Documentation/SubmittingPatches, in 
particular section 8. That email was much too large. Besides, although 
the test data is interesting, I doubt it should reside in the source 
tree. You can instead provide a link to it in the "additional comments" 
section of the patch (see section 15).

-Ben




       reply	other threads:[~2010-09-15  2:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1284506655-14834-1-git-send-email-masoume.jabbarifar@polymtl.ca>
2010-09-15  2:04 ` Benjamin Poirier [this message]
2010-09-15 16:36 Masoume Jabbarifar
2010-09-15 16:42 ` Mathieu Desnoyers
2010-09-21  0:49 ` Benjamin Poirier
2010-09-22 23:38   ` Masoume Jabbarifar
2010-09-22 23:38     ` Masoume Jabbarifar
2010-09-22 23:38     ` Masoume Jabbarifar
2010-09-23  1:47     ` Benjamin Poirier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9029A7.9090709@polymtl.ca \
    --to=benjamin.poirier@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox