Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [ltt-dev] trace_clock_update() spinning
Date: Mon, 8 Feb 2010 19:30:27 -0500	[thread overview]
Message-ID: <20100209003026.GA23755@Krystal> (raw)
In-Reply-To: <4B3F8896E1733D4787DDB0EA1C7FF91F0108D4E2@ukmail.uk.wirelessworld.airvananet.com>

* Mike McTernan (mmcternan at airvana.com) wrote:
> * Mathieu Desnoyers wrote:
> > - Does your architecture support power management sleep modes ? If
> yes,
> > does the cycle counter stop in sleep modes ?
> > - Does your architecture support dynamic ferquency scaling ?
> 
> Yes and yes and yes.  So as per your paper on exotic embedded
> architectures it would need to use a timer to work out real time after a
> sleep period like on OMAP3.  Making that stuff generic (like the 32 to
> 64 code) would be great.
> 
> Luckily in my application we disable DVFS and power management so this
> is ok.

Could you update the patch so it uses the generic timestamp if DVFS or PM are
enabled in the kernel config ?

> 
> Alternatively i.MX51 has a programmable timer that runs reasonably fast
> (66.5MHz on my setup) and is independent of power saving.  It's called
> the EPIT, and I had that working too, but used the cycle count for
> greater resolution and for it's similarities with OMAP3.

Usually, anything that is outside of the CPU is terribly slow to read (memory
mapped I/O). So using the TSC seems to be the best solution.

> 
> > - Would you agree for me to integrate it in the lttng project and
> transfer
> > non-exclusive relicensing rights to the LTTng maintainer ? Basically,
> > the idea is to release it under dual GPLv2/LGPLv2.1 licenses, but I
> > start to think that it might be just easier to use the gdb approach
> for
> > LTTng contributions, where the project maintainers have the freedom to
> > decide license changes. 
>  
> The patch is small and unspecial.  I'd be happy to reassign the
> copyright in this case.  
> 
> > This way we would not have to ask permission from everyone if we need
> to
> > do a license change for the LTTng project overall.
> 
> I wouldn't be too happy with that if I were to submit something
> substantial.  

Well, I'm happy with whatever is the less trouble for everyone and ensures that
the code stays open. So GPLv2/LGPLv2.1 is fine. Just as a thought, if you
copy-pasted code from the other architectures into these headers, perharps it
would be better to leave the copyright notices already in place in addition to
yours. That would help copyright traceability. ;)

Thanks !

Mathieu


> 
> Kind Regards,
> 
> Mike




  reply	other threads:[~2010-02-09  0:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02 18:52 Mike McTernan
2010-02-02 19:42 ` Mathieu Desnoyers
2010-02-02 21:12   ` Mike McTernan
2010-02-05  9:37   ` Mike McTernan
2010-02-05 15:16     ` Mathieu Desnoyers
2010-02-05 15:48       ` Josh Boyer
2010-02-05 15:57         ` Mathieu Desnoyers
2010-02-05 17:27       ` Mike McTernan
2010-02-09  0:30         ` Mathieu Desnoyers [this message]
2010-02-09 10:19           ` Mike McTernan
2010-02-09 14:42             ` Mathieu Desnoyers

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=20100209003026.GA23755@Krystal \
    --to=mathieu.desnoyers@efficios.com \
    /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