[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] scripts/analyse-9p-simpletrace.py: Add symbolic
From: |
Aneesh Kumar K.V |
Subject: |
Re: [Qemu-devel] [PATCH] scripts/analyse-9p-simpletrace.py: Add symbolic names for 9p operations. |
Date: |
Wed, 09 Nov 2011 13:43:00 +0530 |
User-agent: |
Notmuch/0.9_rc1-42-g76fdca8 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) |
On Wed, 9 Nov 2011 11:55:51 +0530, Harsh Prateek Bora <address@hidden> wrote:
> 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 = 2 )
> RERROR (tag = 1 , id = TUNLINKAT , err = 39 )
It would be nice to map that err to a string. os.strerror(err) may be ?
>
> 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 <address@hidden>
> ---
-aneesh