Discussion:
[Rtai] Is it OK to call printk in real-time task? Are there any substitutes for logging data?
Mohsen Alizadeh Noghani
2018-10-23 15:39:41 UTC
Permalink
Hello everyone.
I would like to log data in the real-time task of my RTAI code
<https://github.com/mohse-n/L7N_EtherLab/blob/master/rtai/rtai_sample.c>
(the function "run"), without affecting the hard real-time performance.
Is calling printk allowed in this context?
Does RTAI provide any alternatives?
Best,
Mohsen
Paolo Mantegazza
2018-10-23 16:56:11 UTC
Permalink
In kernel space you can use both printk and rt_printk, in user space only rt_printk.
An alternative, in kernel and user space, is to log data to a Linux task using a mailbox and have it do whatever you want.
Paolo.
________________________________________
From: Rtai [rtai-***@rtai.org] on behalf of Mohsen Alizadeh Noghani [***@gmail.com]
Sent: Tuesday, October 23, 2018 5:39 PM
To: ***@rtai.org
Subject: [Rtai] Is it OK to call printk in real-time task? Are there any substitutes for logging data?

Hello everyone.
I would like to log data in the real-time task of my RTAI code<https://github.com/mohse-n/L7N_EtherLab/blob/master/rtai/rtai_sample.c> (the function "run"), without affecting the hard real-time performance.
Is calling printk allowed in this context?
Does RTAI provide any alternatives?
Best,
Mohsen

Loading...