All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: song <chensong@kylinos.cn>, xenomai@xenomai.org
Subject: Re: some ftrace events are missed
Date: Mon, 3 Feb 2020 08:00:17 +0100	[thread overview]
Message-ID: <9429d894-9879-8266-5c36-7c566de9bf00@siemens.com> (raw)
In-Reply-To: <5e7d13d1-ee38-b1ee-3392-4bc19ff8cc4a@kylinos.cn>

On 02.02.20 13:22, song via Xenomai wrote:
> hi guys,
> 
> I'm working on an issue with ftrace events, the call stack is like that:
> 
> __cobalt_clock_nanosleep
>      xnthread_suspend
>          xntimer_start
>              xnclock_core_ns_to_ticks
>                  xntimer_enqueue_and_program
>                      xnclock_program_shot()
>                          xnclock_core_local_shot
>                              ipipe_timer_set
> 
> 
> I tried to enable ftrace event with "-f" in cyclictest,however, i can 
> only find:
> 
> cobalt_clock_entry: clock_irq=4
> cobalt_timer_expire: timer=ffffffc07ffd5800
> cobalt_clock_exit: clock_irq=4
> cobalt_timer_start ....
> 
> event traces like trace_cobalt_clock_nanosleep or 
> trace_cobalt_thread_suspend are missed, they are all defined in 
> cobalt_core.h/cobalt_posix.h and visible in 
> /sys/kernel/debugfs/tracing/events/cobalt-core(cobalt-posix).

Are those events also enabled when you do the tracing? Try catching them 
via "trace-cmd record -e 'cobalt*' if unsure.

Jan

> 
> Does anyone have the same problem before and i would appreciate it if 
> you could let me know the way to solve it,many thanks
> 
> BR
> 
> Song
> 
> 
> 
> 
> 
> 
> 
> 
-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


  reply	other threads:[~2020-02-03  7:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-02 12:22 some ftrace events are missed song
2020-02-03  7:00 ` Jan Kiszka [this message]
2020-02-10 12:48   ` song

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=9429d894-9879-8266-5c36-7c566de9bf00@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=chensong@kylinos.cn \
    --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.