public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Daniel Walker <dwalker@mvista.com>,
	LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>,
	Karim Yaghmour <karim@opersys.com>, Andrew Morton <akpm@osdl.org>,
	Chris Wright <chrisw@sous-sol.org>,
	fche@redhat.com, Tom Zanussi <zanussi@us.ibm.com>
Subject: Re: [RFC] The New and Improved Logdev (now with kprobes!)
Date: Thu, 5 Oct 2006 16:31:45 -0400	[thread overview]
Message-ID: <20061005203145.GA30746@Krystal> (raw)
In-Reply-To: <Pine.LNX.4.58.0610051623520.432@gandalf.stny.rr.com>

* Steven Rostedt (rostedt@goodmis.org) wrote:
> 
> On Thu, 5 Oct 2006, Mathieu Desnoyers wrote:
> 
> >
> > Just as a detail : LTTng traces NMI, which can happen on top of a
> > xtime_lock. So yes, I have to consider the impact of this kind of lock when I
> > choose my time source, which is currently a per architecture TSC read,
> > or a read of the jiffies counter when the architecture does not have a
> > synchronised TSC over the CPUs. This is abstracted in include/asm-*/ltt.h.
> >
> 
> I'm curious.  How do you show the interactions between two CPUs when the
> TSC isn't in sync?  Using jiffies is not fast enough to know the order of
> events that happen within usecs.
> 

I shift the jiffies and OR that with a logical clock which increments atomically
and is shared across the CPUs. It is slow and ugly, but it works. :)

Mathieu

> -- Steve
> 
> 
> > I know it doesn't support dynamic ticks, I'm working on using the HRtimers
> > instead, but I must make sure that the seqlock read will fail if it nests over
> > a write seqlock.
> >
> > MAthieu
> >
> > OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
> > Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
> >
OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68 

  reply	other threads:[~2006-10-05 20:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-05  5:11 [RFC] The New and Improved Logdev (now with kprobes!) Steven Rostedt
2006-10-05 14:31 ` Mathieu Desnoyers
2006-10-05 15:49   ` Steven Rostedt
2006-10-05 17:01     ` Mathieu Desnoyers
2006-10-05 18:09       ` Steven Rostedt
2006-10-05 18:29         ` Daniel Walker
2006-10-05 18:38           ` Steven Rostedt
2006-10-05 18:49             ` Daniel Walker
2006-10-05 19:39               ` Daniel Walker
2006-10-05 20:18               ` Mathieu Desnoyers
2006-10-05 20:26                 ` Steven Rostedt
2006-10-05 20:31                   ` Mathieu Desnoyers [this message]
2006-10-05 20:50         ` Mathieu Desnoyers
2006-10-05 21:28           ` Steven Rostedt
2006-10-06  1:29             ` 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=20061005203145.GA30746@Krystal \
    --to=mathieu.desnoyers@polymtl.ca \
    --cc=akpm@osdl.org \
    --cc=chrisw@sous-sol.org \
    --cc=dwalker@mvista.com \
    --cc=fche@redhat.com \
    --cc=karim@opersys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=zanussi@us.ibm.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