All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] ftrace dispatch function broken on 2.6.5
@ 2016-06-18 13:08 Gilles Chanteperdrix
  2016-06-18 13:21 ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2016-06-18 13:08 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai

Hi Philippe,

it seems since I-pipe commit
b115c4094d734e19fa7a96be1bf3958b3d244b8b on the ipipe-3.18 branch:
    Revert "ipipe: Register function tracer for direct and exclusive invocation"
    
    This reverts commit e00888b4aae45d9b84698a62079dde14c9be5fd3.
    
    We now have an I-pipe-compatible dispatching function for ftrace.

The ftrace dispatching function causes the following warning at
boot on x86_32 with all warnings/debugs enabled:
[    4.730812] I-pipe: head domain Xenomai registered.
[    4.737967] I-pipe: Detected illicit call from head domain 'Xenomai'
[    4.737967]         into a regular Linux service

Because it calls preempt_disable(), which is not safe to be called
form root domain, when runnning over 2.6.x on an architecture such
as x86_32 which does not have IPIPE_HAVE_SAFE_THREAD_INFO.

Should we make the ftrace dispatching function really I-pipe
compatible by calling ipipe_preempt_disable() in that case instead?
or should we make the patch revert conditional to !IPIPE_LEGACY or
IPIPE_HAVE_SAFE_THREAD_INFO (but that would make only the I-pipe
tracer work in that case).

Regards.

-- 
					    Gilles.
https://click-hack.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-19 18:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-18 13:08 [Xenomai] ftrace dispatch function broken on 2.6.5 Gilles Chanteperdrix
2016-06-18 13:21 ` Philippe Gerum
2016-06-18 13:37   ` Gilles Chanteperdrix
2016-06-19 17:28     ` Philippe Gerum
2016-06-19 17:34       ` Gilles Chanteperdrix
2016-06-19 18:35         ` Philippe Gerum
2016-06-18 13:52   ` Gilles Chanteperdrix
2016-06-18 17:20     ` Gilles Chanteperdrix
2016-06-18 18:20       ` Gilles Chanteperdrix
2016-06-18 20:00         ` Gilles Chanteperdrix

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.