[rtl] FW: Internal counter access
Hi, This is Sreenivasa from Honeywell. I am currently working on RTOE and have to do the performance test of RTOE. That is, the time needed for each API calls. Since the time taken for the execution of the APIs are in micro/nano seconds, I need functions in C which gives time in Micro or nano seconds. But there is no such functions in C which gives time in micro or nano seconds. And also if we go for software time functions, they themselves take some time to execute. So we are planning to go for using internal counters provided by the system. I came to know that you also worked on similar lines by visiting the following site: http://www.realtimelinux.org/archives/realtime/20007/0010.html Is there any way to access the internal counters? And if so, can you please help me regarding this. Waiting for your reply. Regards, -Sree -- [rtl] --- To unsubscribe: echo unsubscribe rtl | mail [EMAIL PROTECTED] OR echo unsubscribe rtl Your_email | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
[rtl] Timing analysis of a RTLinux application
Hi, I want to calculate the totalexecution timeof a RTLinux application. Can any body suggest about any tool to calculate the execution time. Regards,Narendra Upadhyay
[no subject]
Dear Mr. i want to boot my pc without hard or floppy disk , if you have information about how i can do that, plz help me. my idea is to change the boot option for BIOS and switch it to a special address that contain my code instead of booting from floppy or hard disk. plz send me detailed information may be we can help each other. best regards, rania kahiry __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- [rtl] --- To unsubscribe: echo unsubscribe rtl | mail [EMAIL PROTECTED] OR echo unsubscribe rtl Your_email | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
Re: [rtl] Timing analysis of a RTLinux application
Hi, I want to calculate the total execution time of a RTLinux application. Can any body suggest about any tool to calculate the execution time. you could compile to assembler code and then add up the individual worst case cycle times - but that will give you a much wors execution time than you will ever see in reality. Also this will only work if the code is fairly simple... Alternatively you could run the tracer tool with your code marking the execution time with the rtl_trace2(RTL_TRACE_USER,(long) some_value_of_intrest), which would allow you to long term trace the system and find worst case timings that should be fairly accurate. hofrat -- [rtl] --- To unsubscribe: echo unsubscribe rtl | mail [EMAIL PROTECTED] OR echo unsubscribe rtl Your_email | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
Re: [rtl] FW: Internal counter access
Hi, This is Sreenivasa from Honeywell. I am currently working on RTOE and have to do the performance test of RTOE. That is, the time needed for each API calls. Since the time taken for the execution of the APIs are in micro/nano seconds, I need functions in C which gives time in Micro or nano seconds. But there is no such functions in C which gives time in micro or nano seconds. Most hardware platforms can't give you times in nanoseconds any way - at best you can expect time precission in the range of one microsecond - even if the TSC may have a resolution of 32ns the reading of the timer takes some time so the timesatmp is only exact to at best 1 microsecond. And also if we go for software time functions, they themselves take some time to execute. So we are planning to go for using internal counters provided by the system. I came to know that you also worked on similar lines by visiting the following site: http://www.realtimelinux.org/archives/realtime/20007/0010.html Is there any way to access the internal counters? And if so, can you please help me regarding this. You can read the TSC on X86 (you did not specify which arch you are talking about so I'll assume X86...) with the rdtsc assembly instruction (if the board has a TSC). If you are on a system with a 8254 you are in trouble if you need nano second resolution (one tick on the 8254 is 838ns but you need a few cycles to read it so you will probably get no better than 10us time stamp resolution). __inline__ unsigned long long int hwtime(void) { unsigned long long int x; __asm__(rdtsc\n\t :=A (x)); return x; } hofrat -- [rtl] --- To unsubscribe: echo unsubscribe rtl | mail [EMAIL PROTECTED] OR echo unsubscribe rtl Your_email | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
[rtl] Re: your mail
Dear Mr. i want to boot my pc without hard or floppy disk , if you have information about how i can do that, plz help me. my idea is to change the boot option for BIOS and switch it to a special address that contain my code instead of booting from floppy or hard disk. For booting Linux as BIOS, check out the Linux Bios project at http://www.acl.lanl.gov/linuxbios/ and the rolo (romable loader) http://www.embeddedlinuxworks.com/articles/rolo_guide.html hofrat -- [rtl] --- To unsubscribe: echo unsubscribe rtl | mail [EMAIL PROTECTED] OR echo unsubscribe rtl Your_email | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/