Received: by 10.213.65.68 with SMTP id h4csp173909imn; Wed, 28 Mar 2018 01:02:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7UQknMMhslihYlcDBPz+Fm7RpKPrNa8Efr184h540JTfQeGP0d7PWB/zbKSQH3EoXr89k X-Received: by 10.99.95.86 with SMTP id t83mr1789657pgb.183.1522224145517; Wed, 28 Mar 2018 01:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522224145; cv=none; d=google.com; s=arc-20160816; b=sQeiL5mS6pbM5uSsZ4KfAPRNENAn2+cV2BtPzbhWVxxhTaZRaiKfRq/WHj7vXJ3xDs y+lnXiD32A7v2kb3wqIeu7T97iI4Ww+cGxkNnUidHlFCw9z0ltIgQS6V98DLnj8AbYzH OmSbf+pIXC3c1ssZqMTRfmWagtNbCLKTG2IbI8yxBGXiLVXkXYKGMdb5QQKPeFFH3pg9 fg08pxeCkDf0T8S4gsX05ze6qMh2sAWD52ecQSPwgrZ7nZOZsP/HSkBhv2nwR2c/9KmY kPxz8ML09xXWg6CNGYMHLp+vMF/DxfsOwaa0u0PGypvTWOKqSDHBPjJzIZRptERT+wyL 54bg== 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:arc-authentication-results; bh=2OGVavuyquo9HlHzl//W/ErvyMQtTKVZxvKVUJulckE=; b=zIryfN0xRBGzyPfX8rQwkTsRU/lllxNwT+T1qip1mI2HExsUFCkKDQn4fnEQz0Kr8t b9iMfQ56+BOCOUo+fsQxi83x+myjKC9DWj1jYwfdrV/22mYm13dSeCy5IhrLtPygJYuW vOlK+0v2P+pQm1kh0caQcES/wbduoljlasRU7mrZVP2aTogHTYphQKbgaKm0OTiqKnaq X5qB5ys+xG1n+NWhGxcpa8pZRsbtJoft7EAgn5ulEVxPSif0p+jGaMV+Dzbar8f+SpCf jW0tfHip1duC3KiXwfAxxulF6o+37BxHcR0IYkkg7IJ1mE8kntrw7DtlA8naQfwvTqEj 953A== 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 f5si2107947pgp.684.2018.03.28.01.02.11; Wed, 28 Mar 2018 01:02:25 -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 S1753414AbeC1Hf7 (ORCPT + 99 others); Wed, 28 Mar 2018 03:35:59 -0400 Received: from mga14.intel.com ([192.55.52.115]:8808 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752474AbeC1Hf5 (ORCPT ); Wed, 28 Mar 2018 03:35:57 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2018 00:35:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,370,1517904000"; d="scan'208";a="27635499" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga007.fm.intel.com with SMTP; 28 Mar 2018 00:35:54 -0700 Date: Wed, 28 Mar 2018 15:26:31 +0800 From: "Du, Changbin" To: Arnaldo Carvalho de Melo Cc: "Du, Changbin" , jolsa@redhat.com, peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH] perf trace: remove redundant ')' Message-ID: <20180328072631.gj72odnaimsohkmc@intel.com> References: <1520937601-24952-1-git-send-email-changbin.du@intel.com> <20180316075108.xwenvklz3a6scodh@intel.com> <20180316125045.GC10026@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316125045.GC10026@kernel.org> User-Agent: NeoMutt/20180323-6-5ca392 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, Just a kind reminder. Hope you didn't forget this. On Fri, Mar 16, 2018 at 09:50:45AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 16, 2018 at 03:51:09PM +0800, Du, Changbin escreveu: > > Hi Arnaldo, How about this simple one? Thanks. > > > > On Tue, Mar 13, 2018 at 06:40:01PM +0800, changbin.du@intel.com wrote: > > > From: Changbin Du > > > > > > There is a redundant ')' at the tail of each event. So remove it. > > > $ sudo perf trace --no-syscalls -e 'kmem:*' -a > > > 899.342 kmem:kfree:(vfs_writev+0xb9) call_site=ffffffff9c453979 ptr=(nil)) > > > 899.344 kmem:kfree:(___sys_recvmsg+0x188) call_site=ffffffff9c9b8b88 ptr=(nil)) > > > > > > Signed-off-by: Changbin Du > > > --- > > > tools/perf/builtin-trace.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c > > > index e7f1b18..7273f5f 100644 > > > --- a/tools/perf/builtin-trace.c > > > +++ b/tools/perf/builtin-trace.c > > > @@ -1959,7 +1959,7 @@ static int trace__event_handler(struct trace *trace, struct perf_evsel *evsel, > > > trace->output); > > > } > > > > > > - fprintf(trace->output, ")\n"); > > > + fprintf(trace->output, "\n"); > > It looks simple on the surface, but I couldn't quickly recall why this > ')' was put there in the first place... So I left for later to do a 'git > blame' on this file, etc. > > - Arnaldo > > > > if (callchain_ret > 0) > > > trace__fprintf_callchain(trace, sample); > > > -- > > > 2.7.4 > > > > > > > -- > > Thanks, > > Changbin Du -- Thanks, Changbin Du