Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

Testing and Debugging

This chapter includes:

Instrumented kernel trace events

The instrumented kernel emits trace events when:

In addition, all events include the partition ID and its budget. You can use traceprinter to display the contents of the trace file. You can also use the IDE to parse and display a trace file.

IDE (trace events)

You can--and should--use the System Profiler to check your system's latencies. For more information, see the IDE User's Guide.

Other methods

The simplest way to test a system that uses adaptive partitioning is from the command line.

Be sure to test your system in a fully loaded state, because that's where problems are likely to occur. Create a "hog" program that loops forever, and start it in each partition. Then do the following:

Emergency access to the system

You can use adaptive partitioning to make it easier to debug an embedded system by providing emergency access to it:

In either case, if you don't need to use this partition, the scheduler allocates its budget among the other partitions. This gives you emergency access to the system without compromising performance.