Received: by 10.213.65.68 with SMTP id h4csp232624imn; Fri, 16 Mar 2018 01:01:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELs0bl2zRRaSMa8BFYWFHawVfxsePQ298Hz02Ek/X3ZtH++hd/Ct5lABxGkvBfc3gU3uQAqQ X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr1058078plg.388.1521187316006; Fri, 16 Mar 2018 01:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521187315; cv=none; d=google.com; s=arc-20160816; b=gnwT3KkQz8Nqz6D5h/kF8ch/oQeXp1GInVCS5gq7tj9jQWmbCNqcW1iR0iTXbkqV6d brANC10u9XqO76HARCVttO/1zVpu7bOSBeOY9gVO+Ipsu1Z+U7urf1e4XTpRdIgfKvgy RBP1QRlX0NUT1XG+DptnMgXi+2WH1bTYCYdBak6wD7a7yyA4e4p4W46z1wRTPxSPZ7Iw 7WZ1TEXZrbxvA+CFC8+N1AA5dlzFr4ECmwDNwBQE2pwfBGdK4WUnn9V/AJ4HG8moee77 H3qNlY+CYI8D2jDc0DSQZ8NqkHMXIgbyRCoRE79hprqQbtxU3ASrJkuCGncEAzVpucBz Vy4g== 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=NLkAcMYdg7HxRNPnrF32MwID5PeBlZDQSiSCG5f6nYQ=; b=eXspHnaRDLpYprDEZe29TioLAErtCFvytZYGAmlMfOrNK1whVDXDodR7nZ4yGH3jAA H+8B3PARhxNW36FIQ37J2vZraKvPykRX0+2XcaxAGoyx0Jv231AUY5LSWSsvOBzRUXr6 auG03k9bNtttDPvpCciA1N/sQoxiNyXIGpEom1SCsPQIW4JmItmsUGxP5Lz59y/1hxQb rH3QkT23GR0dcnf+W33ovAFcMpEK9U5TsfRMLRKeohj1ocaTHOTj4y48of2f3lDuhow3 4iXnfUSBu/LAJbYmMd6uXluuiZqzx2X6KYf3i1h1/2rCWbih0wvzKpt1/EZEOE1HtZpi 1x3w== 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 12si5162878pfi.351.2018.03.16.01.01.42; Fri, 16 Mar 2018 01:01:55 -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 S1752767AbeCPIA0 (ORCPT + 99 others); Fri, 16 Mar 2018 04:00:26 -0400 Received: from mga14.intel.com ([192.55.52.115]:12751 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbeCPIAY (ORCPT ); Fri, 16 Mar 2018 04:00:24 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2018 01:00:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,313,1517904000"; d="scan'208";a="25003681" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga008.fm.intel.com with SMTP; 16 Mar 2018 01:00:19 -0700 Date: Fri, 16 Mar 2018 15:51:09 +0800 From: "Du, Changbin" To: changbin.du@intel.com Cc: acme@kernel.org, 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: <20180316075108.xwenvklz3a6scodh@intel.com> References: <1520937601-24952-1-git-send-email-changbin.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520937601-24952-1-git-send-email-changbin.du@intel.com> User-Agent: NeoMutt/20171027-42-ad8712 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); > > if (callchain_ret > 0) > trace__fprintf_callchain(trace, sample); > -- > 2.7.4 > -- Thanks, Changbin Du