]> Git Repo - qemu.git/commit - scripts/simpletrace.py
simpletrace: add support for trace record pid field
authorStefan Hajnoczi <[email protected]>
Wed, 7 May 2014 17:24:11 +0000 (19:24 +0200)
committerStefan Hajnoczi <[email protected]>
Mon, 9 Jun 2014 13:43:40 +0000 (15:43 +0200)
commit80ff35cd3ff451e8f200413ddf27816058630c1f
tree227937517413877f448e7ed1697c903b656598af
parent26896cbf353e3017f76da8193074839b6e875250
simpletrace: add support for trace record pid field

Extract the pid field from the trace record and print it.

Change the trace record tuple from:
  (event_num, timestamp, arg1, ..., arg6)
to:
  (event_num, timestamp, pid, arg1, ..., arg6)

Trace event methods now support 3 prototypes:
1. <event-name>(arg1, arg2, arg3)
2. <event-name>(timestamp, arg1, arg2, arg3)
3. <event-name>(timestamp, pid, arg1, arg2, arg3)

Existing script continue to work without changes, they only know about
prototypes 1 and 2.

Signed-off-by: Stefan Hajnoczi <[email protected]>
scripts/simpletrace.py
This page took 0.021598 seconds and 4 git commands to generate.