qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL v2 19/20] trace: introduce a formal group name fo


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PULL v2 19/20] trace: introduce a formal group name for trace events
Date: Thu, 13 Oct 2016 15:58:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0


On 12/10/2016 10:47, Stefan Hajnoczi wrote:
> +def make_group_name(filename):
> +    dirname = os.path.realpath(os.path.dirname(filename))
> +    basedir = os.path.join(os.path.dirname(__file__), os.pardir)
> +    basedir = os.path.realpath(os.path.abspath(basedir))
> +    dirname = dirname[len(basedir) + 1:]
> +
> +    if dirname == "":
> +        return "common"
> +    return re.sub(r"/|-", "_", dirname)
>  

The group is based on the build directory, so it includes the relative
path from srcdir to builddir.  My build directory is weird ("+build")
and breaks because of this.  Since the group is not really used for
anything yet, perhaps this patch could be reverted?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]