Date: Sat, 18 Jun 2016 15:08:22 +0200 From: Gilles Chanteperdrix Message-ID: <20160618130822.GB18433@hermes.click-hack.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Xenomai] ftrace dispatch function broken on 2.6.5 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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