Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp471838yba; Wed, 15 May 2019 04:44:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfGTr7O/WIsdQNAiyavEnIofFaCK1WprmWkZykGJrubvNg2FL6/DIPseIHVDDi6OdXBFxy X-Received: by 2002:a63:6103:: with SMTP id v3mr44106658pgb.48.1557920643789; Wed, 15 May 2019 04:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920643; cv=none; d=google.com; s=arc-20160816; b=KMViJOCc1jHO8UM6kF3V3yszLgOhJv08gSwLX+dNYnAKgMdB1NlQcDA+UUOajuaeVl W5q3bvoG8CTQ7EVOjZPOYpE+DrMRh494MgucRel8vkbw0RooQCPjCU5tvTb81naSPl+z Ew9HirZZM5B5l2BFeYUqvg5oGSijbZJxwZxO35IzkomkUYtoeE0ThMe5Z9c1dQq2NBp3 JLmQQPiYw8Vbt60Wu9gs/UVBkFGtFBOQyOm+hG4NG3F573sM0JPCtzihNCE8jBxZR982 kUVNMQjqbizBp/MJtbzfNCU13EGoswbaRqc08uj3s0+ZImO9U72gDVlTw0p6pn9LwaPQ uULA== 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=Hu5gh70avAUPXPKO369Y1wGzWZcxM5bKyxUaPl2s9iQ=; b=ycBBzdDAqyR9WhXQaNJpxmrcTkuLqlUkXVZlgv/M3ydy8/DkZZu8p0ZTV6u/Rh9lHR rrZI23/CuIlQNOQYkvGvjR79xwgpzAnpHPNvDZkkq0+4tDgxZJU/YKkvxj8WdaaGgtMk pYGXthj+3bmXfVbUWmyErY5mRHW3vnrQDpkyq96qJaxivIVWiZIAzL/SQ96wv1TfTmjl 8QksLcQZzIaprDzJSH5E8vruwjOBwUGRZVM3RsbFTNLVo4ze6vzAzfP6kVxh19QPtjtL LXY77jzcVvwbhh10nOzY1HflzFZI9RUGBcSRo1UKLCIWcMpB6mEDfJZjsGjrCR3LYJt6 XImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kSou2Lmc; 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 k1si1609845pld.322.2019.05.15.04.43.48; Wed, 15 May 2019 04:44:03 -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=kSou2Lmc; 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 S1732338AbfEOL2G (ORCPT + 99 others); Wed, 15 May 2019 07:28:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:39012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732319AbfEOL2E (ORCPT ); Wed, 15 May 2019 07:28:04 -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 EE71B20818; Wed, 15 May 2019 11:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919683; bh=tAJLvgn80sM2ITNXEPXKr5Bol/t4yxuXu6QpLrl1kgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kSou2LmcaKepsxqlLEb1q5vDLSle+tB3hemRRcbOrTVaFey4n+x/u6ZmjrBaqYBNv K+Yo8pD/87Hmg/VTnrsNLC8yrclFq/F85hfsHYt2xCaKcEKtp5TBUpS0tNm9W/z2t6 WdQq6BOrO18pmCYXxV1BZKAAsD3mjQZoeHBwEqXk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bastian Beischer , Jiri Olsa , Arnaldo Carvalho de Melo , Alexander Shishkin , Namhyung Kim , Peter Zijlstra , Sasha Levin Subject: [PATCH 5.0 054/137] perf top: Always sample time to satisfy needs of use of ordered queuing Date: Wed, 15 May 2019 12:55:35 +0200 Message-Id: <20190515090657.421154128@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@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 [ Upstream commit 1e6db2ee86e6a4399fc0ae5689e55e0fd1c43caf ] Bastian reported broken 'perf top -p PID' command, it won't display any data. The problem is that for -p option we monitor single thread, so we don't enable time in samples, because it's not needed. However since commit 16c66bc167cc we use ordered queues to stash data plus later commits added logic for dropping samples in case there's big load and we don't keep up. All this needs timestamp for sample. Enabling it unconditionally for perf top. Reported-by: Bastian Beischer Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Cc: bastian beischer Fixes: 16c66bc167cc ("perf top: Add processing thread") Link: http://lkml.kernel.org/r/20190415125333.27160-1-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/builtin-top.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 616408251e258..63750a711123f 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -1393,6 +1393,7 @@ int cmd_top(int argc, const char **argv) * */ .overwrite = 0, .sample_time = true, + .sample_time_set = true, }, .max_stack = sysctl__max_stack(), .annotation_opts = annotation__default_options, -- 2.20.1