Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp977922rwb; Thu, 11 Aug 2022 13:25:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6B9JosZr5IE23qEtE3EvGBwLWIvRZO8t7PtW/YY8vEmqwsx+gf5SMdeNFgRJK2gFphaIhm X-Received: by 2002:a17:906:84ef:b0:730:ba33:512b with SMTP id zp15-20020a17090684ef00b00730ba33512bmr520770ejb.346.1660249517150; Thu, 11 Aug 2022 13:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660249517; cv=none; d=google.com; s=arc-20160816; b=Xyi9zxwsuAhKaZRFKfPUwWpVEne1/gL/PzbmYgs4mw3xJ2sImyxWPs3YzjaxOK9ZSa +3/YipaECWvzWoxLeJBCJGefWvqAg2SpBIMdW1aPgVWyXXpeEWhf/KwViXA/HE6nrAHb hYQH9e8ZqLRyzOEktCi0OzGE6Hod3k0uot7AeJzSvca5ajCvxi3YgcRL7egVMRyPU0dI tMmXq8MqCDyuRJ8tNiH0OKsfc44Yg6ThMUKkYpEu6VUURbDqOfMkKNnIaunt2T3OsZMX q/WohXL2KWttqUINpNlRzwwz2e7F9xKZna+5K6RgTaMz+gagbpQnshF7wYcY3LKynpQx R87w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Zoii001qBwp/1YjwbO8lum2mTSKAjI/IYNLmYEltFTE=; b=GXam38zXhM3cTOwPhHf82EVH/R78TKm3tORW96ANIMRnZudCTx2V4IUttPtpb/jYBC 1hdNYLvdvjayp4rcTUnljNK/RRn2w6XFKk2F9J0UhRSowfHGgHPOSt0tQwHhFsc4CW8Z NaXr5E+R+FXF7P2P1J7mVpie8KyGQnYMzkfAhhhKpY2rLsCm2yCqfYlHg3QbzHTxqM4j ChufvIKiIeK/FRbtmbLpW8xz89XUdl+GBVZr1rOKpgZT6W+S4jHavp/i3eZg8qegDBdi v8SA2agANfCfSBx8DttS6yRA6ZII0hCrB5wVhEYDI/TX+hLqJAxVOpLoi8cpALACMzc5 0vng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AvtPAoIM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga7-20020a1709070c0700b00730d34ce2aasi47624ejc.988.2022.08.11.13.24.50; Thu, 11 Aug 2022 13:25:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AvtPAoIM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235462AbiHKUVy (ORCPT + 99 others); Thu, 11 Aug 2022 16:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233534AbiHKUVx (ORCPT ); Thu, 11 Aug 2022 16:21:53 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B174792D1 for ; Thu, 11 Aug 2022 13:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660249312; x=1691785312; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=/XeiRXvUCHCPWsD0FI4/ffQgvpcDN9GSEpMz6xgQk8g=; b=AvtPAoIMREvY+7IHWjnkqO8pKetVav/TSpvVZ2p6B962bw/iyHeZS0lU n8aexZcEO4yOl+fHm88ig94vO5YO6uiof5ZmTFRfGM0k2v4ShbYdp7/65 Yogl3T+1wFJ9zcmSeKj+8npSp+UE0n20ujexpuMlKmWiEIyS6d2hO/t/C wPBEr7pAYwDJWWIZ6Cn7rZFDCRbr0Yp4p9Dz+hvAYrF7PmgVZ9k+6Fznx YX35vZ9eJjAw2DcF2c/AtjDT3n7r2b8KBKSZK+lg80DHuvVTimBl7rVtn 50p3iaNw/fOqcoz6P6JaSKvqoa+/gzzzhvjphtkzroWv8sPmDp7OqeqP2 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10436"; a="289021322" X-IronPort-AV: E=Sophos;i="5.93,230,1654585200"; d="scan'208";a="289021322" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2022 13:21:51 -0700 X-IronPort-AV: E=Sophos;i="5.93,230,1654585200"; d="scan'208";a="665534389" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.249.41.154]) ([10.249.41.154]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2022 13:21:49 -0700 Message-ID: <4a44b08c-ff30-3236-9e3e-775e4905561a@linux.intel.com> Date: Thu, 11 Aug 2022 22:21:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] perf/x86/intel/lbr: fix branch type encoding Content-Language: en-US To: Stephane Eranian , "Liang, Kan" Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, kan.liang@intel.com, acme@redhat.com, namhyung@kernel.org, irogers@google.com References: <20220810210656.2799243-1-eranian@google.com> <0267c94e-7989-ca92-4175-d820d1d63a0c@linux.intel.com> <48297c1e-6e44-53f1-da7d-4437ed87cf6f@linux.intel.com> From: Andi Kleen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/2022 5:33 PM, Stephane Eranian wrote: > > In fact, I don't see a case where you would not benefit from the branch type. > Furthermore, not having the branch type DOES NOT save any space in the > branch record (given we have a reserved field). So I think I prefer not having > to specify yet another cmdline option to get the branch type. In fact, if you do > not pass the option, then perf report -D reports some bogus branch types, i.e., > not all entries have empty types. Perhaps Peter remember the details, but there was some ABI compatibility issue that motivated the extra save type bitmap. Also there's another reason that if you don't need them and the hardware doesn't support it they add run time overhead because the branches need to be decoded in the PMI. But I agree it would be useful to make them part of -b default, as long as there is some way to turn it off again when not needed. The extra option is kind of a pain. -Andi