Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp846939ybi; Fri, 12 Jul 2019 05:38:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQwA2uLN0kVRJw2f0YNAsqwaDl/6pBWBmVG6bScsZBZRBjCaD2qZ4iQFpq14anF8mrakLX X-Received: by 2002:a65:5a42:: with SMTP id z2mr10822555pgs.421.1562935080720; Fri, 12 Jul 2019 05:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935080; cv=none; d=google.com; s=arc-20160816; b=Z7FJi3utLPFhMR3Q110YxP+jPBMMTweuzI/bAUfJDhWuoBefTD9hWWBLqFmjUSRFfZ cp8X+kPA59Bi+6rVKMs9+isityou6Eq4sBfNJBAZnLuGt7rORyFFIuw2hsImNq4oSaZV +NNHIYsp+qT6DNReA4w2Wpx1oFXFZY7kFjRJsIIIucbhp+fWtn824q/GhOVp1mtyi4Dd KjV1/x93dYmc+OYs+nhcnkLyhLOTaZcpwm9/cvq3HFBrpz74P+WjDLleIlyDt9UQwoIh 2H59fx5/zzbrm+L8gd4X43xdWJ7Y9i8nmtXeXE9u6hMmCRmKYkf03KK5ylSEYrD8fbD6 Jjdg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XKyZI9LZjU6vM1UobhhbOBPQLmumcRr+yZ1XdkddaRE=; b=Jstv9PH2mZYU6fa2XccbrCe9M02LwIsmvMecDwunby8e9yT8mMY83uYLR7AkFXs4B0 ORj7YdxCP3apGG495xlBwBz0SbYU/qSsFwMm6YcFOWci7akcB7gfUnko2alOtiziWL7N mo5Om8rFu9iv0Z5ZcjEgfv6F6OrwBCyTYc1xhzgVyvR6EExnIb2VoQ/N4tZozoGmteey hTL+nDOsNsAJxIKtTHg0OQiTaM4Wdd/jCFDqwnCQgOCXxN8TumiFuiwuLJF4dddceVIk t0zIo0vXC358Eoxc/Y3YUX4Gd1VnEWm74HIt+KGe3VDda1G0r2DkFMU8McrN39xxqsw0 K5BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U+0r20TR; 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 x189si3693247pgd.533.2019.07.12.05.37.45; Fri, 12 Jul 2019 05:38:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=U+0r20TR; 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 S1729452AbfGLMcS (ORCPT + 99 others); Fri, 12 Jul 2019 08:32:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:49832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729444AbfGLMcN (ORCPT ); Fri, 12 Jul 2019 08:32:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 4F830216C8; Fri, 12 Jul 2019 12:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934732; bh=BsWAM+atvI3+ZA2AIsy+JvTm6Xz79e7Qd2BXv6ukdps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U+0r20TRm0yJjt4DRCbcr1cKSz/4LHsXA5BfQU1CHpLhVqP3V9R2nEdMDGYm/RGcT s7Tho+9Xw78PIZAPP8Nw0Taabewo9/qZFDtZ6W5s1xpL3cgD382jCc0S494SeC+cDP nAStbJO24m6HxGmqzRMAkhPli1vU7XtVSDoJtjWw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Arnaldo Carvalho de Melo , Jiri Olsa Subject: [PATCH 5.2 14/61] perf auxtrace: Fix itrace defaults for perf script Date: Fri, 12 Jul 2019 14:19:27 +0200 Message-Id: <20190712121621.408663685@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121620.632595223@linuxfoundation.org> References: <20190712121620.632595223@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter commit 355200e0f6a9ce14771625014aa469f5ecbd8977 upstream. Commit 4eb068157121 ("perf script: Make itrace script default to all calls") does not work for the case when '--itrace' only is used, because default_no_sample is not being passed. Example: Before: $ perf record -e intel_pt/cyc/u ls $ perf script --itrace > cmp1.txt $ perf script --itrace=cepwx > cmp2.txt $ diff -sq cmp1.txt cmp2.txt Files cmp1.txt and cmp2.txt differ After: $ perf script --itrace > cmp1.txt $ perf script --itrace=cepwx > cmp2.txt $ diff -sq cmp1.txt cmp2.txt Files cmp1.txt and cmp2.txt are identical Signed-off-by: Adrian Hunter Tested-by: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: stable@vger.kernel.org Fixes: 4eb068157121 ("perf script: Make itrace script default to all calls") Link: http://lkml.kernel.org/r/20190520113728.14389-3-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/auxtrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -1001,7 +1001,8 @@ int itrace_parse_synth_opts(const struct } if (!str) { - itrace_synth_opts__set_default(synth_opts, false); + itrace_synth_opts__set_default(synth_opts, + synth_opts->default_no_sample); return 0; }