Instrumented Kernel

Hi everyone

I am trying to view the interrupts happening whilst I am running an
application. If I have understood the help files correctly, I can do
this using the instrumented kernel. I have the instrumented kernel
running, but I am struggling to make sense of the info in the help
files on how to actually set up and view the data.

Any help would be very gratefully received as I am pretty new to all
of this.

Many Thanks

Lee Russell

You’ve done the first step - booted with the instrumented kernel.
Second step is to generate data. There are two ways.

If you have the IDE up, and qconn connected to the target, then you can start
tracing from there.

Switch to the System Profiler Perspective, find your target in the target navigator,
right click on the target and select Kernel Events Tracing.

Then you can specify a length of time, and wide mode/fast mode logging etc. For
now you probably want to leave the defaults, and just set the time to what
you want. Beware making logfiles too long, they can get very big very fast.

When you have finished logging the logfile will be in the navigator (not the target navigator)
under the target project. Double click on it, and the timeline will come up. It shows
an individual timeline for each interrupt/process/thread. States are colour and width coded.
Check the preference to interpret the state colours.

IF you are running 6.3.0 then you will see interrupt handlers being called during interrupt
processing. The IP and pid of the handler are logged. An IP of 0 indicates an event was
attached with InterruptAttachEvent.

If you are not directly connect to the target then use tracelogger to generate a logfile.
If you are using 6.3.0 SP2 then

tracelogger -v -n0 -s5

will generate a 5 second logfile into /dev/shmem/tracebuffer.kev

You should then copy that somehow to your IDE project directory, and right-click refresh
the project to see the new file.

HOpe this helps,

Cheers,

Colin

Lee Russell wrote:

Hi everyone

I am trying to view the interrupts happening whilst I am running an
application. If I have understood the help files correctly, I can do
this using the instrumented kernel. I have the instrumented kernel
running, but I am struggling to make sense of the info in the help
files on how to actually set up and view the data.

Any help would be very gratefully received as I am pretty new to all
of this.

Many Thanks

Lee Russell