From: Jan Kiszka <jan.kiszka@siemens.com>
To: Antoine Durand <wanipof@gmail.com>,
Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>,
Lennart Sorensen <lsorense@csclub.uwaterloo.ca>,
xenomai@xenomai.org
Subject: Re: [Xenomai] I-Pipe Tracer and linux ftrace
Date: Tue, 23 Jun 2015 16:43:40 +0200 [thread overview]
Message-ID: <5589709C.2020805@siemens.com> (raw)
In-Reply-To: <CAOL1OyM2ViCuuD1BPRze0yhX6cSNqCRxMvu3mM=frnXA5Ly5NA@mail.gmail.com>
On 2015-06-23 16:41, Antoine Durand wrote:
> The clocksource switching is due to the config option
>
> CONFIG_NR_CPUS=2
>
> the CPU is quad core and i would like to use only two of them to emulate a
> cheaper board.
>
> now the time run normally
Interesting. Maybe the kernel parameter maxcpus works better (it is
definitely more handy).
Jan
>
> i will check if the other problems are resolved.
>
> Thanks
>
>
> 2015-06-23 16:27 GMT+02:00 Gilles Chanteperdrix <
> gilles.chanteperdrix@xenomai.org>:
>
>>
>> Jan Kiszka wrote:
>>> On 2015-06-23 16:11, Lennart Sorensen wrote:
>>>> On Tue, Jun 23, 2015 at 12:09:09PM +0200, Antoine Durand wrote:
>>>>> I found a new problem that must be the root cause of the others (I
>>>>> hope)
>>>>> the linux system time is wrong, one second last 31 real seconds !
>>>>>
>>>>> ftrace timing are wrong and may be nmi watchdog is fired because of
>>>>> that
>>>>> wrong time too.
>>>>>
>>>>> however the time run normally in /proc/driver/rtc
>>>>> (the CPU board get a Dallas DS12887 / Motorola MC146818 compatible RTC)
>>>>
>>>> Normally the RTC is only used to get time at boot and save it when the
>>>> system is off. It usually has nothing at all to do with system time
>>>> while the system is running.
>>>>
>>>> So having the rtc correct but system time wrong is perfectly plausible
>>>> if whatever is used for system time is broken.
>>>>
>>>>> I use the CLOCK_MONOTONIC clock in xenomai periodic task and it works
>>>>> well.
>>>>> I-Pipe tracer timing are correct too.
>>>>>
>>>>> in /proc/interrupts :
>>>>> IRQ0 (timer) counter is not counting
>>>>> LOC (local timer interrupts) is counting
>>>>>
>>>>> in /proc/xenomai/irq :
>>>>> [timer/0] is counting (following LOC value)
>>>>>
>>>>> I'm trying to find why IRQ0 never happen.
>>>>
>>>> Are you running NO_HZ config?
>>>>
>>>
>>> Huh, that would be interesting...
>>>
>>> Also check your Linux clocksource
>>> (/sys/devices/system/clocksource/clocksource0/current_clocksource). It
>>> should be TSC on sane systems. If not, check the kernel log for
>>> clocksource switches and related reason reports.
>>
>> Using another clocksource than TSC should not be a problem, neither for
>> Linux, nor for Xenomai. That said I have not tested this in a long time.
>>
>> --
>> Gilles.
>> https://click-hack.org
>>
>>
>
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2015-06-23 14:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 16:06 [Xenomai] I-Pipe Tracer and linux ftrace Antoine Durand
2015-06-22 17:20 ` Jan Kiszka
2015-06-22 20:47 ` Antoine Durand
2015-06-23 6:19 ` Jan Kiszka
2015-06-23 10:09 ` Antoine Durand
2015-06-23 14:11 ` Lennart Sorensen
2015-06-23 14:15 ` Jan Kiszka
2015-06-23 14:27 ` Gilles Chanteperdrix
2015-06-23 14:41 ` Antoine Durand
2015-06-23 14:43 ` Jan Kiszka [this message]
2015-06-23 14:46 ` Gilles Chanteperdrix
2015-06-23 14:47 ` Antoine Durand
2015-06-23 14:49 ` Gilles Chanteperdrix
2015-06-23 14:59 ` Jan Kiszka
2015-06-23 15:01 ` Antoine Durand
2015-06-23 16:07 ` Lennart Sorensen
2015-06-23 16:18 ` Antoine Durand
2015-06-23 17:00 ` Jan Kiszka
2015-06-23 17:23 ` Jan Kiszka
2015-06-24 7:30 ` Antoine Durand
[not found] ` <CAOL1OyNELX_6g8fOSS8wuJ+6-TzrBXjoxn3wH-Gb8u-HKHFqSw@mail.gmail.com>
2015-06-23 14:42 ` Jan Kiszka
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=5589709C.2020805@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=lsorense@csclub.uwaterloo.ca \
--cc=wanipof@gmail.com \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.