Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp716928img; Fri, 22 Mar 2019 07:10:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9ILEkYCF3kuwp7OEVk3eWTaOeoL6N9BSP0BvHG5SWfJlh4/WX/FvJEbWvyUHs3a8so410 X-Received: by 2002:a63:7444:: with SMTP id e4mr9232164pgn.398.1553263842632; Fri, 22 Mar 2019 07:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553263842; cv=none; d=google.com; s=arc-20160816; b=KoMxujYVO6Phq796uvEOw8tEPugcO0cNwrx7ihlDSzlLC5nyvH2B49zs/EKSBnYBPP 0znhKORTcyaQ0OkvKqoYmj5+7tTNcuko09aLX49HQvsgcXQ0npapGvzQ3aFjQM1wQTg5 w3BNaUYHmu0lHIj9WMiSToJ+U1rbLCig51J4oSCauzhXlPQt6apw/x1UYWSfm6TcmXAi Up2EZqj/nXstEqnu1M20UuUw4d3RNNxhfpA0nJ8UlJ4TrD5bHnxsLAN7bLkm/EISQ4wx EPuqhFFBZkfMrinoXTPv9syFk5uerXZ0YcA+/yiOGm21rAYE037W7Rvoa+PQ3KX+G9lo XtWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=4W+XQuR4f3UPuookJSj0LaNeH6dLvsbg+n2JVEqnuJ8=; b=CCYZchy13z73bvjN5JcLAhpIgMmmfqUxjQfrmuJ+hne+dvvgnyKr0GIy8Ya7B3Ivfq jeS1T3RTpYnOmsQPjIUdMD4ppLsHGQjvsVlxKvxE2it3JhGTmwfucjq4a4L1eHPRmwwn zGpOW4kHyty+ViFrBupJ5uDZd5RiFzUNBMzR8rTLog1aGN1Cs6p5sQnTJ1Fc0NUcetE9 LboGZvmGD5c4cIqhVrrA4RcBbLuCrk2iNH1QRbKl7hmRmOj3lfIFZPbTz0uXOHoREKbs kC0doL25RsTikZ1gTSmkXhF4NjS/Nn0orxXYUjbIKESv8cuRMlqq690R3lsZBI9FGpM+ WDBw== 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 f2si6917676pgs.575.2019.03.22.07.10.27; Fri, 22 Mar 2019 07:10:42 -0700 (PDT) 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 S1728300AbfCVOJJ (ORCPT + 99 others); Fri, 22 Mar 2019 10:09:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:41114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727487AbfCVOJI (ORCPT ); Fri, 22 Mar 2019 10:09:08 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 BE4C5218E2; Fri, 22 Mar 2019 14:09:07 +0000 (UTC) Date: Fri, 22 Mar 2019 10:09:05 -0400 From: Steven Rostedt To: Tzvetomir Stoyanov Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/perf,tools/lib/traceevent: Make traceevent APIs more consistent Message-ID: <20190322100905.7d62691b@gandalf.local.home> In-Reply-To: <20190322130816.13903-1-tstoyanov@vmware.com> References: <20190322130816.13903-1-tstoyanov@vmware.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Mar 2019 15:08:16 +0200 Tzvetomir Stoyanov wrote: > Rename few traceevent APIs, in order to make it more consistent: > tep_pid_is_registered(), tep_file_bigendian(), > tep_is_latency_format(), tep_get_header_page_ts_size(), > tep_set_host_bigendian(), tep_is_host_bigendian() and > tep_data_lat_fmt() Note, change logs should be about "why" not "what". The above is mostly about "what" although you did state "to make it more consistent" which is a "why", but we should elaborate more. Something like this: ===================================== Rename some traceevent APIs for consistency: tep_pid_is_registered() to tep_is_pid_registered() as the convention is "tep_is" not "tep_X_is". tep_file_bigendian() to tep_is_file_bigendian() as boolean operations will now have "tep_is_" notation tep_get_header_page_ts_size() to tep_get_header_timestamp_size() as the latter is more descriptive. tep_set_host_bigendian() to tep_set_local_bigendian() tep_is_host_bigendian() to tep_is_local_bigendian() because "host" can be confused with VMs, and "local" is about the local machine. tep_host_bigendian() to tep_is_bigendian() Again "host" is confusing and we are converting to "tep_is_" notation, also this one checks the actual machine that is running. For consistency we have: bool tep_is_bigendian(void); bool tep_is_file_bigendian(struct tep_handle *tep); bool tep_is_local_bigendian(struct tep_handle *tep); Where tep_is_X_bigendian(tep) returns the saved data in the tep handle, and tep_is_bigendian() returns the running machine's endianess. tep_data_lat_fmt() to tep_data_latency_format() No need to obfuscate with shorten names here. Switching all "tep_is_" functions to return bool and not int. ===================================== That is much more descriptive of the change, and lets anyone that looks at the git history see exactly why things have changed. With a more descriptive change log, it will cause less arguments as well. Please resend with an updated change log. -- Steve