[panda-users] pandalog: what am I doing wrong?

Bridgey theGeek bridgeythegeek at gmail.com
Tue Feb 27 14:31:19 EST 2018


Hi PANDAs,

Hoping someone can steer me in the right direction re pandalog.

The problem is that after running the plugin, I only have ìnstr`and `pc` -
I don't have the values I've added as per the proto file and the plugin
itself.

No compilation errors, no runtime errors.

Invocation
======
# qemu-system-i386 -m 2G -replay notepad01 -panda testplugin -os
windows-32-7 -pandalog notepad.plog

testplugin.proto
=========
optional uint32 tp_size = 10001;
optional uint32 tp_address = 10002;
optional bool tp_is_read = 10003;

testplugin.cpp
=========
--SNIP--
if (pandalog) {
    Panda__LogEntry ple = PANDA__LOG_ENTRY__INIT;
    ple.has_tp_size = true;
    ple.tp_size = size;
    pandalog_write_entry(&ple);
}
--SNIP--

# python panda/scripts/plog_reader.py notepad.plog
[
{
  "pc": "18446744073709551615",
  "instr": "18446744073709551615"
}
,
{
  "pc": "2190075234",
  "instr": "82801390"
}
--SNIP--

Any suggestions greatly appreciated.

Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/panda-users/attachments/20180227/2a1b4b6a/attachment.html


More information about the panda-users mailing list