Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1629522ybt; Thu, 9 Jul 2020 11:23:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy76ZyhLZiygnzwIdqQ+tNTwJdOjM/PNSqu5HYmloZJYM9HEfdy/dSYEYUPN6ZwJq905Ydp X-Received: by 2002:a05:6402:1d18:: with SMTP id dg24mr74500595edb.33.1594319036412; Thu, 09 Jul 2020 11:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594319036; cv=none; d=google.com; s=arc-20160816; b=n1ELQVKcjCBV5UM6gV9mT07SljWWM9pYOj0uwJ/2BIz+L2rRQPJn+6dxQtbEBIEP70 p68/lPbh10lLJtLP9/sn98HoRS/Wkf82wIESgzo+/DxRpT4yX7oyFwmCPmhMc2FsVDQ6 N9DbTJFcfRoDqrVyIFfth2Sa4wN6tJg7mbOJLjHA/6WwpqRLr9IQX2zV2GWS1pN7SR7h /uSlPeyBz7+NpTIGYkTtYA4MoYm02FaQpgajjlTJUiVxio7Jbh9pxOh/U3zdiH/IFIgI vLdKzAFWvtg3smGWEt+K6S4RkoYjLXm3wQ5NmorjlHA9jLtYD9V/EaqLOn4crcR8y7t6 +ONw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject:ironport-sdr :ironport-sdr; bh=nfILYl43M5nSgAdWuVt79kGOnRezz77CTURXa80gm2A=; b=EHvPpwUYQgPZeJ44mnoi+GvUvRnqJym2KeW7A8LNtwkob8ba/Ep1NgUY0srDqJvpcY kpxOD5sILkw9TlR6KGNcoKPVGnU2OFVQUiQ8aRP/tLMrUtWXrje6ZWRDMoMw6lqS3hgY 18Dcwz7y95NXeBfxpz1JnAwF34bw69XnmL58ERERCC3OE0OiqDfBkAO7Q14hq8XJdwCb 48PHwrgxpBqA4gBP50HP5Bk2mL30GEFe5sd/Jl2u6l3OZlRM0WTUk1dsPdCj2jJNJ1LC JsJM8Hm11RI5A1rWAfZZdaVom3uHral4mDzyiIY/mZybNsjqyYfNUgp4cC2BzqztAx1G eFTg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si2580246edy.414.2020.07.09.11.23.30; Thu, 09 Jul 2020 11:23:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbgGISXC (ORCPT + 99 others); Thu, 9 Jul 2020 14:23:02 -0400 Received: from mga04.intel.com ([192.55.52.120]:28012 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbgGISXC (ORCPT ); Thu, 9 Jul 2020 14:23:02 -0400 IronPort-SDR: svkAobQIViVQNgoKoraa7xT5bSAoVREdKMuIWh8qY/jPlzjFu9cBhUusZxoTr17x/HEWbIIYfd PmOeTy1aOZHg== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="145567491" X-IronPort-AV: E=Sophos;i="5.75,332,1589266800"; d="scan'208";a="145567491" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2020 11:23:01 -0700 IronPort-SDR: uywKMzTJnQNrLrphuzdRFF2HqnX1nemVVTfCL8aPc8nGJMqml7JsPNIS6quMspsL1zSqg0gg/u jI14zpQXv38A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,332,1589266800"; d="scan'208";a="458003100" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.73]) ([10.237.72.73]) by orsmga005.jf.intel.com with ESMTP; 09 Jul 2020 11:22:58 -0700 Subject: Re: [PATCH 05/11] perf intel-pt: Use itrace error flags to suppress some errors From: Adrian Hunter To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org References: <20200709173628.5613-1-adrian.hunter@intel.com> <20200709173628.5613-6-adrian.hunter@intel.com> <20200709175046.GA1126680@tassilo.jf.intel.com> <3271e2cf-490b-5391-19e0-e1b019bfba1f@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <3002ad3a-2ce1-3414-f511-f30370ec0488@intel.com> Date: Thu, 9 Jul 2020 21:22:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <3271e2cf-490b-5391-19e0-e1b019bfba1f@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/07/20 9:13 pm, Adrian Hunter wrote: > On 9/07/20 8:50 pm, Andi Kleen wrote: >> On Thu, Jul 09, 2020 at 08:36:22PM +0300, Adrian Hunter wrote: >>> The itrace "e" option may be followed by a number which has the >>> following effect for Intel PT: >>> 1 Suppress overflow events >>> 2 Suppress trace data lost events >>> The values may be combined by bitwise OR'ing them. >>> >>> Suppressing those errors can be useful for testing and debugging >>> because they are not due to decoding. >> >> I suspect it will be useful to more than just decoding and debugging. >> >> But the number is not a nice user interface. >> >> How about e[....] >> >> like e[ol] > > Do you mean literally square-brackets? If you were really unlucky you might > get pathname expansion with that. > >> >> Also it's a bit unusual that this disables instead of enables, but ok. What about prefixing each flag with - i.e. e-o e-l e-o-l