Next OSADL Events:
|
Breaking News:
2010-05-17 12:00
The Linux task viewer is hereKernel developers are walking in user space and beyond
2010-03-10 12:00
Parallel real-time on multi-core systems with mainline LinuxSeveral tasks simultaneously running at real-time priority no longer interfere to each other!
2010-02-22 12:00
"Latest Stable" Linux mainline real-time 2.6.31 is out!Kernel 2.6.31.12-rt21 is our latest and greatest
2010-02-21 12:00
OSADL at the Embedded World 2010Industry needs Open Source - Open Source meets Industry
2010-02-09 12:00
Spinlock annotations merged from the realtime tree to Linux mainline in 2.6.33Raw spinlocks are the "real" spinlocks now |
Quick HOWTO
Download the file archive sched_switch-0.1.tgz and type:
# tar -zxvf sched_switch-0.1.tgz
# cd sched_switch-0.1
# make
Create task switch data, convert them to VCD (value change dump) data and display them using, for example, gtkwave:
# echo sched_switch >/sys/kernel/debug/tracing/current_tracer
# echo 1 >/sys/kernel/debug/tracing/tracing_enabled
# sleep 5
# echo 0 >/sys/kernel/debug/tracing/tracing_enabled
# cat /sys/kernel/debug/tracing/trace >/tmp/trace.txt
# ./sched_switch /tmp/trace.txt /tmp/trace.vcd
# gtkwave /tmp/trace.vcd
To display a particular data channel within gtkwave, select sched_switch in the top left window and drag and drop the label of the requested channel from the bottom left window labeled "Signals" to the drop area at the left side of the main wave display area (also labeled "Signals"). Alternatively, you may select the requested channels in the bottom left window labeled "Signals" and then click on the "Insert" button below the window.
File archive
|
Utility sched_switch by Herman ten Brugge |
4.1 K |
