Return-Path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:37622 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935374AbeFZOXU (ORCPT ); Tue, 26 Jun 2018 10:23:20 -0400 Received: by mail-wr0-f196.google.com with SMTP id k6-v6so17466899wrp.4 for ; Tue, 26 Jun 2018 07:23:20 -0700 (PDT) Subject: Re: [PATCH 1/7] kernel-shark-qt: Add Cmake build system for the Qt based KernelShark To: Steven Rostedt Cc: linux-trace-devel@vger.kernel.org References: <20180625150121.14291-1-y.karadz@gmail.com> <20180625150121.14291-2-y.karadz@gmail.com> <20180625120636.2a5a7de0@gandalf.local.home> From: "Yordan Karadzhov (VMware)" Message-ID: <36c959e0-4fd6-d663-6eda-ff776c230193@gmail.com> Date: Tue, 26 Jun 2018 17:23:16 +0300 MIME-Version: 1.0 In-Reply-To: <20180625120636.2a5a7de0@gandalf.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-trace-devel-owner@vger.kernel.org List-ID: On 25.06.2018 19:06, Steven Rostedt wrote: > On Mon, 25 Jun 2018 18:01:15 +0300 > "Yordan Karadzhov (VMware)" wrote: > >> This patch adds in /kernel-shark-qt a simple CMake building >> infrastructure, to be used by the new, Qt-based version of >> KernelShark. > > May want to add in the change log, something like this. > > Currently, this does not build anything. It is only to add > the necessary infrastructure for the coming changes. > > I can add it, so you don't need to send more code. Just an FYI, that if > there's something that is added for infrastructure, that doesn't really > do anything by itself, a brief note about that is usually expected. > > >> >> diff --git a/kernel-shark-qt/build/deff.h.cmake b/kernel-shark-qt/build/deff.h.cmake >> new file mode 100644 >> index 0000000..62e6b9e >> --- /dev/null >> +++ b/kernel-shark-qt/build/deff.h.cmake >> @@ -0,0 +1,20 @@ >> + /** >> + * \file KsDeff.h >> + * \brief This File is generated by CMAKE >> + */ >> + >> +// !-- Do Not Hand Edit - This File is generated by CMAKE --! > > Is this generated? Do we need to add this in the commit, or can this > just be created during the setup? > This is a configuration file used to tell CMake how to generate a special header file. Based on the content of this configuration file, CMake will create src/KsDeff.h Indeed, it isn't true that the build system is doing nothing in the case of this particular patch. The build system will generate src/KsDeff.h I will explain this in the change log and send the patch again. Thanks! Yordan > -- Steve > >> + >> +#ifndef _KS_CONFIG_H >> +#define _KS_CONFIG_H >> + >> +/** KernelShark Version number. */ >> +#cmakedefine KS_VERSION_STRING "@KS_VERSION_STRING@" >> + >> +/** KernelShark source code path. */ >> +#cmakedefine KS_DIR "@KS_DIR@" >> + >> +/** Location of the trace-cmd executable. */ >> +#cmakedefine TRACECMD_BIN_DIR "@TRACECMD_BIN_DIR@" >> + >> +#endif // _KS_CONFIG_H