Skip to contentSkip to conversation

Problem running klatency test

Xenomai-core Shashank Bhatia 2 participants 3 messages Jun 22, 2009 – Jun 29, 2009

lore
Share & tools
lore
#0 lore raw

Dear All,

I could manage to compile my patched kernel on ubuntu using
the following guide : https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

Now when i installed Xenomai, i could run the latency tests, but when i tried to run the kernel space latency test, i found the following error.

[email protected]# ./run 
*
*
* Type ^C to stop this application.
*
*
open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or
directory
modprobe klat_mod or try the -P option?

Please help to get this running.

The dmesg | grep Xenomai gave the following output:

[    4.353912] I-pipe: Domain Xenomai registered.
[    4.353949] Xenomai: hal/i386 started.
[    4.354530] Xenomai: real-time nucleus v2.4.8 (Lords Of Karma)
loaded.
[    4.354612] Xenomai: SMI-enabled chipset found
[    4.354623] Xenomai: SMI workaround enabled
[    4.354647] Xenomai: starting native API services.
[    4.354650] Xenomai: starting POSIX services.
[    4.354693] Xenomai: starting RTDM services.

Thanks in advance

-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India

#1 lore raw

Hi,

Quoted 9 lines · Shashank Bhatia

Dear All,

I could manage to compile my patched kernel on ubuntu using
the following guide : https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

Now when i installed Xenomai, i could run the latency tests, but when i tried to run the kernel space latency test, i found the following error.

Quoted 9 lines
[email protected]# ./run 
*
*
* Type ^C to stop this application.
*
*
open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or
directory
modprobe klat_mod or try the -P option?

1) go to your xeno-patched kernel tree
2) make menuconfig
3) navigate to Real-time sub-system ---> Drivers ---> Testing Drivers
4) enable 'Timer benchmark driver'
5) a new options pops up: 'Kernel-only latency measurement module'
6) enable this option
7) rebuild kernel & install kernel & reboot
8) try again, if you enabled it as a module (M) and not built-in (*) use modprobe to load to module

kisda

Quoted 28 lines

The dmesg | grep Xenomai gave the following output:

[    4.353912] I-pipe: Domain Xenomai registered.
[    4.353949] Xenomai: hal/i386 started.
[    4.354530] Xenomai: real-time nucleus v2.4.8 (Lords Of Karma)
loaded.
[    4.354612] Xenomai: SMI-enabled chipset found
[    4.354623] Xenomai: SMI workaround enabled
[    4.354647] Xenomai: starting native API services.
[    4.354650] Xenomai: starting POSIX services.
[    4.354693] Xenomai: starting RTDM services.

Thanks in advance

-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

#2 lore raw
In reply to Shashank Bhatia
Quoted 4 lines · Shashank Bhatia

[...] open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or directory
modprobe klat_mod or try the -P option?

the module ist called xeno_klat. patch attached.

src/testsuite/klatency/klatency.c +1 -1
index a22cd59..c419402 100644
@@ -187,7 +187,7 @@ int main(int argc, char **argv)
 		if (benchdev == -1) {
 			perror("open(/proc/xenomai/registry/native/pipes/klat_pipe)");
 			fprintf(stderr,
-				"modprobe klat_mod or try the -P option?\n");
+				"modprobe xeno_klat or try the -P option?\n");
 			exit(EXIT_FAILURE);
 		}
 	} else {