Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1975350rdf; Mon, 6 Nov 2023 00:16:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHURXGj/wc3lK0B2MHifXPuiG0RHSmKX10OKnUwLrJNXOt8eJED9Ar14JXQskKyCf07tUcl X-Received: by 2002:a17:90a:c698:b0:280:3772:5c2e with SMTP id n24-20020a17090ac69800b0028037725c2emr22683622pjt.25.1699258583572; Mon, 06 Nov 2023 00:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699258583; cv=none; d=google.com; s=arc-20160816; b=j5HhQKl97dPUMTpFJ9ybtDyOsW0llK4ebUTiKUzkmTMX2FOYZfAWTmv6fHVAN1snpI EX1648rIV52wcXqoYFmHZaEGnyBTRtEGylLnHHPu/x9TKCT47MAjHTubkQxqWfal3OqN 0SpnFGww94dVB5R6+6G1F3ZopXHX8hYr5GNbobA75Rrkek2OK9FkwIWGLdN5k1lu2mPv xT4bN3whZwbBMKTK026dJ7ggmWWXuTKUNMm9zhSZaZLPGTRnU+/A1EC1HLHY8qFDbhwb DGlSgmWkN6vYzQ3PXYOuQLojhm9y96pJpk1y9xL+FvoCTOtDMx77OyxKBcWvQjNmcwIK Y2RQ== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=3+Y7YBiOwQCXCfNYe+E2cHXyxoE+SqOEbbBHR9cY/k4=; fh=ABeV2Hop+dOBih0gZxojjWFMzRdpDqoIv+M56fwAci0=; b=eOzjWsRDyk87FlfcCMqZudLXfwSu4P1bNHoyYbdCVPvgM16yWjxPGRn7YkwIXWJqFP 1aeYWwdIsrHqDbuemrCsC0qr0swjKMeTjYURDuQ5ZdxA7HiJ7zvnwBGJbt/sKPRJJphk mx9WxLbI9mVcV2NEr3DU+7sxGP1iGytPxFYSY9P5ttlTXxbdEGB6vXQs+nWYTNb0b5f0 iElgkcpF7ByTQlpIqn3CjCRZP2dxf55ZEtOAG5YkRh11A24QGjtUDDZ16dPKOGnf5uhu rwTtv7t8ZR5iHS50fsRyNe1h4Fm05TDkgL4N9zMnvDh8nkhz57NQPCsglpDEm9lfC092 yAAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=krwOteO5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o1-20020a17090ad20100b002808ca78d11si7630936pju.52.2023.11.06.00.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:16:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=krwOteO5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8EE5980755C9; Mon, 6 Nov 2023 00:15:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbjKFIPR (ORCPT + 99 others); Mon, 6 Nov 2023 03:15:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjKFIPP (ORCPT ); Mon, 6 Nov 2023 03:15:15 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D531E0; Mon, 6 Nov 2023 00:15:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699258512; x=1730794512; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=E3dGt3syy+RNIpyA6u+LOY9IzyGcOXqbCVp7hmWtJ3g=; b=krwOteO5M0tnbv4/Y1TbCH7WwPulJCJWkxhNZ0t6b7thWenKWOtsqNPN cHQgh6dC/URbve6knu7/3HCWw4zHRxXCpFfwFxUlWYFTO3xHLDPv/AT2k xvcpm0L/46+wXdC16WFJrwc1pEHKLJ8ekSKwyPKCwco8RiFtuD1fRJX6h VNExqW5hrvxoT0HnqDPT9gDyRpHc+b2msB69BV+F0PC44vWpjYiK9Xk7q v3Zuff+OPCHDiIAsE/Wic8g2H+ALMa6t9G/aMqI+shMcLL4i0tk6jGud8 XVZQJVzA155NQteO3N9p5XAk2k92H7y7AwiimbCpfjDvQxWg4SJSs9gdw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="455712154" X-IronPort-AV: E=Sophos;i="6.03,280,1694761200"; d="scan'208";a="455712154" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 00:15:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,280,1694761200"; d="scan'208";a="3374994" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.215.231]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 00:15:09 -0800 Message-ID: Date: Mon, 6 Nov 2023 10:15:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] perf test: Simplify object code reading test Content-Language: en-US To: Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Thomas Richter , James Clark References: <20231103195541.67788-1-namhyung@kernel.org> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20231103195541.67788-1-namhyung@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 00:15:21 -0800 (PST) On 3/11/23 21:55, Namhyung Kim wrote: > It tries cycles (or cpu-clock on s390) event with exclude_kernel bit to > open. But other arch on a VM can fail with the hardware event and need > to fallback to the software event in the same way. > > So let's get rid of the cpuid check and use generic fallback mechanism > using an array of event candidates. Now event in the odd index excludes > the kernel so use that for the return value. > > Cc: Thomas Richter > Tested-by: James Clark > Signed-off-by: Namhyung Kim Reviewed-by: Adrian Hunter