mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Michal Simek <michal.simek@petalogix.com>
Cc: steve@digidescorp.com, Steven Rostedt <rostedt@goodmis.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Wu Zhangjin <wuzhangjin@gmail.com>
Subject: Re: sched_clock - microblaze
Date: Thu, 15 Apr 2010 20:26:57 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1004152025240.3625@localhost.localdomain> (raw)
In-Reply-To: <4BC73D02.5090108@petalogix.com>

On Thu, 15 Apr 2010, Michal Simek wrote:

> Steven J. Magnani wrote:
> > Michal,
> > 
> > On Thu, 2010-04-15 at 16:55 +0200, Michal Simek wrote:
> > 
> > > Is unimplemented sched_clock the reason why ftrace not show fine grain
> > > time?
> > > 
> > > Or is there any other thing which is wrong?
> > > 
> > 
> > I think that's it. On my platform we have a free-running 1 MHz counter
> > so I implemented a platform sched_clock for that, and I get nice ftrace
> > times.
> > 
> >  0) + 65.000 us   |  finish_task_switch();
> >  0)               |  lock_sock_nested() {
> >  0) + 52.000 us   |    local_bh_disable();
> >  0) + 53.000 us   |    local_bh_enable();
> >  0) ! 264.000 us  |  }
> 
> I don't understand why I should add any "new" free running counter because we
> have one free running counter which do it (clocksource timer - timer1). Or am
> I missing something?

No, you just can use the clocksource for it. We have that separation
as on x86 we want to use the TSC even if it is not usable for time
keeping as it is the fastest accesible clock in x86. So for your case
you can just use your main clocksource as sched_clock and be done.

Thanks,

	tglx

  reply	other threads:[~2010-04-15 18:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-15 14:55 Michal Simek
2010-04-15 15:04 ` Steven Rostedt
2010-04-15 16:32   ` Michal Simek
2010-04-15 18:12     ` Wu Zhangjin
2010-04-15 19:29       ` Michal Simek
2010-04-15 19:52         ` Arnd Bergmann
2010-04-16  6:23           ` Michal Simek
2010-04-16  8:37             ` Arnd Bergmann
2010-04-16  9:11               ` Michal Simek
2010-04-15 15:06 ` Steven J. Magnani
2010-04-15 16:21   ` Michal Simek
2010-04-15 18:26     ` Thomas Gleixner [this message]
2010-04-15 17:18 ` Wu Zhangjin

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=alpine.LFD.2.00.1004152025240.3625@localhost.localdomain \
    --to=tglx@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@petalogix.com \
    --cc=rostedt@goodmis.org \
    --cc=steve@digidescorp.com \
    --cc=wuzhangjin@gmail.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

Powered by JetHome