[PTLsim-devel] new ptlsim release problem (rev221)

Matt T. Yourst
Fri Sep 14 17:37:46 EDT 2007


On Friday 14 September 2007 12:54, Sasa Tomic wrote:
> Hi,
>
> I cannot run the new version of PTLsim/X.
> The compilation went fine with the new Xen sources, kernel booted OK,
> simulator is working in the native mode, but I cannot do a successful
> "-core anything -run". I tried -core seq and -core smt
> Actually, the ptlsim starts simulating cycles, but for e.g. "ls"
> executed inside simulator never finishes.
>

Do the cycle counters printed by PTLsim continue running, like this:

  Completed      41301384 cycles,       1561451 commits:    304778 Hz,    
  208884 insns/sec: rip 0x2aaaaae43d8a

What does it say for the rip it stops at?

I just ran "ls -la" on our test systems using rev 221, with both seq and smt 
cores, it it seems to work fine.

>
> And, on the other hand, is it possible to debug the "ptlsim" executable
> with gdb?
>

You can use "gdb ptlxen.bin.debug" to look up symbol names and line numbers, 
using e.g. "break *0x12345678", and it will print out the file and line at 
that address.

It's not currently possible to debug PTLsim inside the virtual machine like a 
normal user program. We don't have a "kernel debugger" for it, so we just use 
print statements and lots of checks to resolve problems.

You can sometimes use xenctx to print out the current VCPU states inside the 
simulator if it locks up for some reason.

- Matt

-------------------------------------------------------
 Matt T. Yourst                    yourst at peptidal.com
 Peptidal Research Inc., Co-Founder and Lead Architect
-------------------------------------------------------


More information about the PTLsim-devel mailing list