Received: from eggs.gnu.org ([2001:4830:134:3::10]:54141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bugXH-0003Mu-SY for qemu-devel@nongnu.org; Thu, 13 Oct 2016 09:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bugXD-0006LQ-UD for qemu-devel@nongnu.org; Thu, 13 Oct 2016 09:59:03 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:35353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bugXD-0006L4-Ly for qemu-devel@nongnu.org; Thu, 13 Oct 2016 09:58:59 -0400 Received: by mail-lf0-x241.google.com with SMTP id x79so12894395lff.2 for ; Thu, 13 Oct 2016 06:58:59 -0700 (PDT) Sender: Paolo Bonzini References: <1476262058-13936-1-git-send-email-stefanha@redhat.com> <1476262058-13936-20-git-send-email-stefanha@redhat.com> From: Paolo Bonzini Message-ID: Date: Thu, 13 Oct 2016 15:58:55 +0200 MIME-Version: 1.0 In-Reply-To: <1476262058-13936-20-git-send-email-stefanha@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL v2 19/20] trace: introduce a formal group name for trace events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Peter Maydell 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