From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0442EC4332F for ; Wed, 8 Nov 2023 20:10:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbjKHUK0 (ORCPT ); Wed, 8 Nov 2023 15:10:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbjKHUKY (ORCPT ); Wed, 8 Nov 2023 15:10:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00202121 for ; Wed, 8 Nov 2023 12:10:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DCCDC433C8; Wed, 8 Nov 2023 20:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699474222; bh=J25KUy86NfApZ0qWpYlZcp82HfO5i4wtIPpaV2apC5s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F58oEApuCiR9Ul+qxxkzzzJLijYO6ROIj5DIlTxjrW8VkenFlFJItHBB6X5KvtNr5 Aozn8mM8MTBp0fOn4WkgO2b0WUea/dP7sLK1IAl+ZH2J2vc7/IIOOuh2kXng3UaZF/ +EH3+aRjz+IuPSgEmEi3ujOFjWArpRX5pTtIwn1PJtNZzQwnO5mW1yOapZ7Upw2KAR /nDvpEk1OMayjfw+90UWMr5iRZMSlL6VoExiDR6tLISBssJyivC26SjtilJl0BELOK 057c405lKiBPXglVrsL0KhoY5XPsibymUMp1TeB/sZ+hl86FJp1SpExosY1uNqDZXr /Tw+KkejaLDkw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1298C4035D; Wed, 8 Nov 2023 17:10:18 -0300 (-03) Date: Wed, 8 Nov 2023 17:10:17 -0300 From: Arnaldo Carvalho de Melo To: Adrian Hunter Cc: Namhyung Kim , Jiri Olsa , Ian Rogers , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Thomas Richter , James Clark Subject: Re: [PATCH v2] perf test: Simplify object code reading test Message-ID: References: <20231103195541.67788-1-namhyung@kernel.org> 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 Mon, Nov 06, 2023 at 10:15:07AM +0200, Adrian Hunter escreveu: > 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 Thanks, applied to perf-tools-next. - Arnaldo