• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

CPU Context Info required

Naughty Neurons

New Member


Messages: 2

#1
I am running FreeBSD Kernel Version 8.2 on single core ARM. To debug the behavior of some user/application programs running on my system, I need a software that can tell/log information about the trace of processes running on CPU and when/how they are switched and which new process takes the CPU. So, in a nutshell I need CPU Context Info with timestamps.

Is there a way to get CPU context information with timestamp using a software that doesn't require having to recompile the kernel.
Any help in this regard would be highly appreciable.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,495
Messages: 25,660

#4
dtrace(1) could probably get all the information you want and much more.
 

linux->bsd

Member

Thanks: 34
Messages: 99

#5
To debug the behavior of some user/application programs running on my system, I need a software that can tell/log information about the trace of processes running on CPU and when/how they are switched and which new process takes the CPU.
If you're only looking for system calls tracing, then truss() is the way to go. It's FreeBSD's equivalent to strace.

But if you're looking for much more than that, then as SirDice said, dtrace() is the workhorse you're looking for.