You are here: Home / RTLWS 1999-2017 / RTLWS Submitted Papers / 
2024-04-20 - 03:46

Dates and Events:

OSADL Articles:

2023-11-12 12:00

Open Source License Obligations Checklists even better now

Import the checklists to other tools, create context diffs and merged lists


2023-03-01 12:00

Embedded Linux distributions

Results of the online "wish list"


2022-01-13 12:00

Phase #3 of OSADL project on OPC UA PubSub over TSN successfully completed

Another important milestone on the way to interoperable Open Source real-time Ethernet has been reached


2021-02-09 12:00

Open Source OPC UA PubSub over TSN project phase #3 launched

Letter of Intent with call for participation is now available



Real Time Linux Workshops

1999 - 2000 - 2001 - 2002 - 2003 - 2004 - 2005 - 2006 - 2007 - 2008 - 2009 - 2010 - 2011 - 2012 - 2013 - 2014 - 2015 - 2017

17th Real Time Linux Workshop, October 21 to 22, 2015 at the Virtual Vehicle Research Center, Graz, Austria

Announcement - Call for participation (ASCII) - Hotels - Directions - Agenda - Paper Abstracts - Presentations - Registration - Abstract Submission - Exhibitors and Sponsors - Gallery

Hardware based latency profiling of interrupt handlers

Paul Thomas, AMSC

While tools such as cyclictest can give accurate results for general latency performance because the timestamp of the source is known, if the performance of a specific external interrupt handler is needed then a different method must be used.

This can be done using a hardware timer capture function to precisely timestamp an external interrupt, and then measure progress through the interrupt handler or into other kernel code.

This paper presents the general concepts to show how this is done, as well as provide a specific example with results. The example demonstrates the ZYNQ processor using TI's ads131e08 analog to digital converter. The ADC uses a standard SPI interface with an additional data ready output signal that can be used as an interrupt. In this case the data ready signal is additionally fed to a hardware capture block allowing for the hardware profiling. The timer capture function is implemented in the FPGA, but most embedded microprocessors have similar peripheral functions built in, which could be used.

The software setup is presented; kernel modules include: the industrial IO device driver, and the timer module. This setup uses a 4.0.7-rt4 #2 SMP PREEMPT RT kernel.

The results and latency plots of this this method are presented and compared to cyclictest estimations. They both give a similar view, but cyclictest is more optimistic.