Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5649852pxv; Wed, 7 Jul 2021 08:36:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNoUsH4s3qNm2JhWWkbp/DvxRME4lru9jSrBw5D9b/eifZoXRUFTwNWFrZ0gTSfae1PVD3 X-Received: by 2002:a17:906:9745:: with SMTP id o5mr25045480ejy.344.1625672204509; Wed, 07 Jul 2021 08:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625672204; cv=none; d=google.com; s=arc-20160816; b=UmHySNLPHUrZh7x/IV+cU03X+qLYWI2x+Vc5UGz6rqKilg0Usml0xPukuLoueA5twV n1y+1/YmUW81eaK4N2rDNUG9LSJz2IlPebXQhjIYJ7qQQbTj2XKVT1UkLRdqX4SORJLM FmCf7CEXq4BX8SQ3EkAB3wdCNlFwjH+qNR4onBQpx9RIDs//gCnV5C1ojPA6N7qVtHIO 1VqkP8869ylIN4tT6vBJEOGXdCT8SgMgxqPRPg98hRInDjUgjNxDrgbRWK81ZNsdTaB1 q1U2PRSQwmFAMzL2gVTpWKB2uHoI9JrrncE7qEMLoKCrzuqf+m0rikmCNJ8WSKYQPO7K ddEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ctcce+JYprL57EWMU2eSS+75siIq3/x57eHVkGOhw0M=; b=ZOkNOeF2yRqYNSwhnLMcq29o9OhYJTM/8YyewmdHI/6R9jVd/qO3KXA5Ne8j87YnAU yG7B6uH23dZ/N+v7tYeAcqKP+0XeUcWMxKhYNucDP4BMGfwh7NBA2NygQ3k3WNVBztDT VINXtO8TTO0g7A70sClSwSH7Ji56onyrI6GI9d/IH9O8c0jQ3Vxtrige5E3Do/SgNTsg jeNyD6lOu91j1+nhwSkvbHyAcYmiHW1eiTxGDp7GH+glV/u17YutmwxNP+xxRtk6dr3v vVEfgt6gJynw9f04wK4CIF39guQl+64+FERcnMXCKrpFgXQKCjM6hx7esx9SylZPNmZF d+DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u0uNP3u5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si180125edw.446.2021.07.07.08.36.21; Wed, 07 Jul 2021 08:36:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u0uNP3u5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232056AbhGGOoO (ORCPT + 99 others); Wed, 7 Jul 2021 10:44:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:56310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232052AbhGGOoO (ORCPT ); Wed, 7 Jul 2021 10:44:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BBC3F61C37; Wed, 7 Jul 2021 14:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625668893; bh=HQp6d+sJagEWzQXUtAZhynOsjRq/W3BSJzdzYV76BRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u0uNP3u5ABj5FNTrVaBngry64NdwHGSA1bHzKWE9F2+3tggDXixTXpu8/a7fLxqNm PqfKstQAfhs1fyoiqqInoO8PXkbzjeFJ6gXJsi92Ie3Nz/Rr/z4m5pD5CrfOQPChjV aOeVidx1wyARLu80EBkizPXOkfofS8MGF9iipUdxztyIzRXv3Xfz6Dguc7kiSMzx56 487ahrDwQwraRFwTl0jy558MHbqCgnkCjlErqkUCp+nFEGfG1jrCBS6XdUwawE0vNU T4zdh+lVbNUJR1xa1bwGwNfr/HZuDERb7IKSVLuoyePPN9oz3l6O0ICb+a1aAAC4D1 MIAJNGsjU8dBw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 3167B40B1A; Wed, 7 Jul 2021 11:41:31 -0300 (-03) Date: Wed, 7 Jul 2021 11:41:31 -0300 From: Arnaldo Carvalho de Melo To: Andi Kleen Cc: Adrian Hunter , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf intel-pt: Add a config for max loops without consuming a packet Message-ID: References: <20210701175132.3977-1-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jul 01, 2021 at 10:54:53AM -0700, Andi Kleen escreveu: > > On 7/1/2021 10:51 AM, Adrian Hunter wrote: > > The Intel PT decoder limits the number of unconditional branches (e.g. > > jmps) decoded without consuming any trace packets. Generally, a loop > > needs a conditional branch which generates a TNT packet, whereas a > > "ret" instruction will generate a TIP or TNT packet. So exceeding > > the limit is assumed to be a never-ending loop, which can happen if > > there has been a decoding error putting the decoder at the wrong place in > > the code. > > > > Up until now, the limit of 10000 has been enough but some analytic > > purposes have been reported to exceed that. > > > > Increase the limit to 100000, and make it configurable via perf config > > intel-pt.max-loops. Also amend the "Never-ending loop" message to > > mention the configuration entry. > > > > Signed-off-by: Adrian Hunter > > > Thanks. That is useful. > > > Reviewed-by: Andi Kleen Thanks, applied. - Arnaldo