From: Valdis.Kletnieks@vt.edu
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>, mingo <mingo@redhat.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ftrace: use a global counter for the global clock
Date: Fri, 16 Sep 2011 17:14:53 -0400 [thread overview]
Message-ID: <66899.1316207693@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Fri, 16 Sep 2011 08:18:26 EDT." <1316175506.26295.36.camel@gandalf.stny.rr.com>
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
On Fri, 16 Sep 2011 08:18:26 EDT, Steven Rostedt said:
> + return atomic64_add_return(1, &trace_counter);
Given that the usefulness of this is probably directly proportional to the
number of cores on the box, is this subject to cache line ping-ponging on
systems with many cores?
> When debugging tight race conditions, it can be helpful to have a
> synchronized tracing method. Although in most cases the global clock
> provides this functionality, if timings is not the issue, it is more
> comforting to know that the order of events really happened in a precise
> order.
One wonders if the overhead can end up being enough to change the
ordering, and possibly cause a heisenbug (most likely if the race condition
involves one CPU doing something we're tracing, and another CPU doing
something we are *not* tracing)...
If that's considered not an issue, feel free to stick this on it:
Reviewed-By: Valdis Kletnieks <valdis.kletnieks@vt.edu>
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2011-09-16 21:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 9:02 [PATCH] ftrace: use a global counter for the global clock Peter Zijlstra
2011-09-16 12:18 ` Steven Rostedt
2011-09-16 12:35 ` Peter Zijlstra
2011-09-16 12:36 ` Peter Zijlstra
2011-09-16 13:23 ` Steven Rostedt
2011-09-16 13:24 ` Steven Rostedt
2011-09-16 21:14 ` Valdis.Kletnieks [this message]
2011-09-16 21:37 ` Steven Rostedt
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=66899.1316207693@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/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