Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: ali.akyurek.ext@siemens.com (Akyurek, Ali (EXT))
Subject: [ltt-dev] Interpreting tracing results
Date: Thu, 15 Jan 2009 18:31:20 +0100	[thread overview]
Message-ID: <1E65288790442545B413D69F2A8D27DE045EBC7B@ERLD164A.ww004.siemens.net> (raw)
In-Reply-To: <20090115151855.GA27345@Krystal>


Hi

So, it means that calculating a context switching time in arm is not sensible for now,huh?
Because i found that 1220 ns.

And 1220 ns is just = [1 / (HZ << TRACE_CLOCK_SHIFT)]. 

// HZ is 100 in my system, and trace_clock_shift is 13

Thanks.


-----Urspr?ngliche Nachricht-----
Von: Mathieu Desnoyers [mailto:compudj at krystal.dyndns.org] 
Gesendet: Donnerstag, 15. Januar 2009 16:19
An: Akyurek, Ali (EXT)
Cc: ltt-dev at lists.casi.polymtl.ca
Betreff: Re: [ltt-dev] Interpreting tracing results

* Akyurek, Ali (EXT) (ali.akyurek.ext at siemens.com) wrote:
> 
> Hi all,
> 
> In my arm machine, context switching takes 1220 or 1221 nanoseconds. 
> i thought this time as (start of sched_schedule - start of
> whatever_previous_event), Actually that is the time between different
> PID values in rows.am i right?
> 
> and
> 
> Handling of interrupts (i take only the top handlers, not soft ones.)
> takes 2441 nanoseconds.
> i thought this time as (end of irq_exit - start of irq_entry), am i
> right?
> 
> Why are these values multiple of 1220 nanoseconds? What is related to? 
> 

Hi,

LTTng uses the generic trace clock for ARM by default. See
include/asm-generic/trace-clock.h.

This clock has only the precision of HZ frequency, and I use an atomic
counter in the LSBs to keep the events ordered.

Please have a look at the ARM-related messages in the past 2 weeks for
implementations of sub-arch specific clock sources for ARM. I will
integrate this kind of work soon after making sure it's smp-safe when it
needs to.

Mathieu

> Thanks all.
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68



  reply	other threads:[~2009-01-15 17:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15 14:45 Akyurek, Ali (EXT)
2009-01-15 15:18 ` Mathieu Desnoyers
2009-01-15 17:31   ` Akyurek, Ali (EXT) [this message]
2009-01-15 17:53     ` Mathieu Desnoyers
     [not found]       ` <1E65288790442545B413D69F2A8D27DE045EBC84@ERLD164A.ww004.siemens.net>
2009-01-15 18:20         ` Mathieu Desnoyers
2009-01-16  4:48           ` [ltt-dev] Interpreting tracing results - jiffies TSC patch for 2.6.24 ARM Venu A
2009-01-16  4:48             ` Venu A
2009-01-16  4:48             ` Venu A
     [not found]             ` <1E65288790442545B413D69F2A8D27DE045EC0ED@ERLD164A.ww004.siemens.net>
2009-01-17  5:08               ` [ltt-dev] " Venu A
2009-01-20  2:58                 ` Mathieu Desnoyers
2009-01-28 17:05             ` [ltt-dev] Maybe an answer to your question -application thread calling gettimeofday in a loop- Akyurek, Ali (EXT)

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=1E65288790442545B413D69F2A8D27DE045EBC7B@ERLD164A.ww004.siemens.net \
    --to=ali.akyurek.ext@siemens.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