Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2333736imu; Thu, 10 Jan 2019 12:16:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4owLTk1h19v+NPpGR12JZ5EfyxjlSCy1yuEaFf8Lbpj1tsWdXQibbCQtfsDfGk7melV/Da X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr11014998pls.303.1547151416084; Thu, 10 Jan 2019 12:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547151416; cv=none; d=google.com; s=arc-20160816; b=HyVB1e/57N9Zlc8VnH49empeZA+jxdQGvDxA0fmW3yDRK51njOrZbdtQjLVVVzTRVB LLWnHmIhw4r+ZRZyoU1oBzEQj0a3Ipx47mKRo5Ijh3Jj89QhiRe2cCA2sL+UBgzbUsGJ YlDthozVpndA95XNNw77Yf3t4tjxIOVmFia9ANzg4XQ/P02nvdMZeuvwEmluors1CfHz BOoUbZHZJGaii4Yi+x78yh+IUWxtdfNxnwVXTmQJEBIIPsWTINDYYCvOXeHAXmpI4gqy qWOG/Ech+tUafPJTAIbleu1QMi8bMS3bNVd5c/HNmQVpWPVzJzN7b2KfJYTsPTFvPyho Mj+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tixJDrZ7U0lpF2d3rrxsBXroaSEfF3BWXzGzo4NTMcc=; b=VC+mLbKHO7GIhXu4/El4uP39osvh4/pURLD+3yT8Z9lUhBu+pOeuyiYHhwi1CbE8xy ZoqxJ8y84LGhz1yR/tFaslugAq0arf/6vZcbZcpT1djgDTI24YYd/Ac+JTgRy3sfVUli WEma2c2BxgQqFJDxJcJYjCumBXYkqU8P9KA7UL4sMVdB7GMm/kfrh2AsxEWSj7Q97bLF aMLBlDm8lILx1Az9wtcZDizGdYLZIk6e7GZNyTy+WIvWuYwk5F/AM8NOoIVmOFTR7gvM DbGcZPvQNfLXPqgN+wtHN+nTZY3P8Yt3+jS9KiEZfFaBsSGRWKg7Y+JzlQ6F+wAt2O5H xpjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si69945878pgg.571.2019.01.10.12.16.39; Thu, 10 Jan 2019 12:16:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729051AbfAJOrK (ORCPT + 99 others); Thu, 10 Jan 2019 09:47:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:54362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727723AbfAJOrJ (ORCPT ); Thu, 10 Jan 2019 09:47:09 -0500 Received: from home.goodmis.org (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5379720660; Thu, 10 Jan 2019 14:47:08 +0000 (UTC) Date: Thu, 10 Jan 2019 09:47:01 -0500 From: Steven Rostedt To: Masahiro Yamada Cc: Alex Williamson , kvm@vger.kernel.org, Laura Abbott , Alexey Kardashevskiy , Michael Ellerman , Cornelia Huck , linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio_pci: set TRACE_INCLUDE_PATH to fix the build error Message-ID: <20190110144701.ah3hmedqmyqf5uzt@home.goodmis.org> References: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 12:08:03PM +0900, Masahiro Yamada wrote: > --- > > drivers/vfio/pci/trace.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vfio/pci/trace.h b/drivers/vfio/pci/trace.h > index 228ccdb..4d13e51 100644 > --- a/drivers/vfio/pci/trace.h > +++ b/drivers/vfio/pci/trace.h > @@ -94,7 +94,7 @@ TRACE_EVENT(vfio_pci_npu2_mmap, > #endif /* _TRACE_VFIO_PCI_H */ > > #undef TRACE_INCLUDE_PATH > -#define TRACE_INCLUDE_PATH . > +#define TRACE_INCLUDE_PATH ../../drivers/vfio/pci Note, the reason why I did not show this method in the samples/trace_events/ is that there's one "gotcha" that you need to be careful about. It may not be an issue here, but please be aware of it. The words in TRACE_INCLUDE_PATH can be updated by C preprocessor defines. For example, if for some reason you had: #define pci special_pci The above would turn into: ../../drivers/vfio/special_pci and it wont build, and you will be left scratching your head wondering why. -- Steve > #undef TRACE_INCLUDE_FILE > #define TRACE_INCLUDE_FILE trace > > -- > 2.7.4