From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754270AbdBFP62 (ORCPT ); Mon, 6 Feb 2017 10:58:28 -0500 Received: from mga03.intel.com ([134.134.136.65]:13152 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751829AbdBFP61 (ORCPT ); Mon, 6 Feb 2017 10:58:27 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,342,1477983600"; d="scan'208";a="61404970" From: Andi Kleen To: Alexander Shishkin Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, vince@deater.net, eranian@google.com, Arnaldo Carvalho de Melo , Borislav Petkov , Thomas Gleixner Subject: Re: [PATCH] perf/x86/intel/pt: Allow disabling branch tracing References: <87inosaoi1.fsf@ashishki-desk.ger.corp.intel.com> <20170206144140.14402-1-alexander.shishkin@linux.intel.com> Date: Mon, 06 Feb 2017 07:58:25 -0800 In-Reply-To: <20170206144140.14402-1-alexander.shishkin@linux.intel.com> (Alexander Shishkin's message of "Mon, 6 Feb 2017 16:41:40 +0200") Message-ID: <87efzbjopq.fsf@firstfloor.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexander Shishkin writes: > Now that Intel PT supports more types of trace content than just branch > tracing, it may be useful to allow the user to disable branch tracing > when it is not needed. > > The special case is BDW, where not setting BranchEn is not supported. > > This is slightly trickier than necessary, because up to this moment > the driver has been setting BranchEn automatically and the userspace > assumes as much. Instead of reversing the semantics of BranchEn, we > introduce a 'passthrough' bit, which will forego the default and allow > the user to set BranchEn to their heart's content. cpu/passthrough=1,branchen=1/ seems far uglier/more complicanted to me than the original cpu/nobranch=1/ Just think how you would explain it to the user in the manpage. -Andi