]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/analyse-9p-simpletrace.py
scripts/analyse-9p-simpletrace.py: Add symbolic names for 9p operations.
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Wed, 21 Dec 2011 07:07:23 +0000 (12:37 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 21 Dec 2011 07:07:23 +0000 (12:37 +0530)
commit058a96ed506d77714bcce3d69b351e364078c080
tree58dcc49a6bb0c7157fbd9b1e67a1cc5ffb6e8c99
parente4027caf9373c5797b7769f5120c249e31ab5487
scripts/analyse-9p-simpletrace.py: Add symbolic names for 9p operations.

Currently, we just print the numerical value of 9p operation identifier in
case of RERROR which is less meaningful for readability. Mapping 9p
operation ids to symbolic names provides a better tracelog:

RERROR (tag = 1 , id = TWALK , err = " No such file or directory ")
RERROR (tag = 1 , id = TUNLINKAT , err = " Directory not empty ")

This patch provides a dictionary of all possible 9p operation symbols mapped
to their numerical identifiers which are likely to be used in future at
various places in this script.

Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
scripts/analyse-9p-simpletrace.py