Re: /proc/rtai folder does not exist

Sebastian Kuzminsky <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
On 01/19/2016 03:21 PM, Steve Welte wrote:
>    I've managed to install 5.0-test1 on Red Hat Enterprise Linux 7.0,
> using a stock 3.10.32 kernel and the appropriate RTAI patch and the
> following parameter changes:
>    --> Mathfuns support, using newlib 2.2.0-1
>    --> Eager inlining support
>    --> 1 CPU (had to disable symmetric multi-processing in the kernel to
> get it to compile and boot successfully)
>    --> Disabled COMEDI support
> 
>    I then attempted to run /usr/realtime/kern/latency/run, but received
> a warning of "Error opening /proc/rtai/latency-calibrate (new line)
> Couldn't get infos about the module's state."

I ran in to the same problem and fixed it with the attached patch.


It's also available in my git repo here:

https://github.com/SebKuzminsky/rtai/commit/94feadf198f856dbb2b8e44da58a19caadd41ecb


-- 
Sebastian Kuzminsky

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
0001-RTAI-fix-a-proc-path-in-testsuite-kern-latency.patch (text/x-patch, 1 KB)
From 94feadf198f856dbb2b8e44da58a19caadd41ecb Mon Sep 17 00:00:00 2001
From: Sebastian Kuzminsky <[email protected]>
Date: Wed, 25 Nov 2015 16:16:51 -0700
Subject: [PATCH] RTAI: fix a /proc path in testsuite/kern/latency

---
 testsuite/kern/latency/display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/kern/latency/display.c b/testsuite/kern/latency/display.c
index 6ea478d..cd24a1a 100644
--- a/testsuite/kern/latency/display.c
+++ b/testsuite/kern/latency/display.c
@@ -49,8 +49,8 @@ int main(int argc, char *argv[])
 
 	signal(SIGINT, endme);
 
-	if ((procfile = fopen("/proc/rtai/latency_calibrate", "r")) == NULL) {
-		printf("Warning: Error opening /proc/rtai/latency_calibrate\n");
+	if ((procfile = fopen("/proc/rtai/kern_latency_calibrate", "r")) == NULL) {
+		printf("Warning: Error opening /proc/rtai/kern_latency_calibrate\n");
 		printf("         Couldn't get infos about the module's state.\n");
 	} else {
 		while (fgets(line,256,procfile) != NULL) {printf("%s",line);}
-- 
2.1.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.