From patchwork Fri Nov 4 12:18:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 1165 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp364964wru; Fri, 4 Nov 2022 05:22:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hYhxeEkrPrqypYISGDSiCKsfnr3WfixMXGvZkgLZQ9/5sViRZnSeSGt7x8LIXpjIWJPZL X-Received: by 2002:a17:902:d4ce:b0:186:c8b9:c301 with SMTP id o14-20020a170902d4ce00b00186c8b9c301mr35516383plg.27.1667564545697; Fri, 04 Nov 2022 05:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667564545; cv=none; d=google.com; s=arc-20160816; b=eybOGdDicgzLFgB3lU4cLstQfN1ooLbT4rcvvSEtEfQbrhrYpaWQwBNJUW1772DNvN jfieKL0NjMoyp4MjyuxS1BB3Twqa7Nhd3WqHdbYtj+/ERKL4b3CwIgSUtwxdZmdXJHHv hK8Hq6EMeSUVwPGjooSZT9BVJ2wAWMFge3docN74+iAaTad+QM0F8OJhKXSk2pLi6yOY SlwzMoYRR6py8Vo/zLUFw45Q9MKfaxen1ZfB/AUGSx3QwsVQNVIWZDo5NziWBJHQKCbY clgppUFMrGAlJ4g1SeGCF0AD/6xmVMG7zsgtVAq5DL6mH6+uaKRMMu/lGfyO1juem88e Ji5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=NrCt+8uloIISnE5JT5iZ3YlizOnGqA6JiMAY7HSusrg=; b=1LftrkFPtgMmC/WE5hGprfakunxgqvTGcpNZQmPJrMXF4gNqC3bOjZ5RPCl07FjLML U96/oktjqsYEwo9Fg+0kmy5UqkAH3cfWXgW7zY8O5XgldBfK8OOJyFogwN1v3nvEwRtQ bhaMamyL+HJsZPAh6K6WJ9sq/rJZ/QdeeepR8ptVyTOH2QFdd10SVf1Bpvt7LhrawSzB eGhNMHVoO61PR/0a6Kih4clYdF+87UgS7qTiUad1f/+IPMyvlEvl5VKIXfq/MQw5VKDN pr0HaZjuhvnr/j25BID+BphOoenj5lUq3mahgQvpzZsZhcFhyp5hlzWo0AQMsK5IE5JC cyFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XoMaaY3R; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r139-20020a632b91000000b0046aabd03ce5si4545153pgr.796.2022.11.04.05.22.11; Fri, 04 Nov 2022 05:22:25 -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=XoMaaY3R; 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 S231621AbiKDMSb (ORCPT + 99 others); Fri, 4 Nov 2022 08:18:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiKDMS2 (ORCPT ); Fri, 4 Nov 2022 08:18:28 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DE8140E0; Fri, 4 Nov 2022 05:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667564306; x=1699100306; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cmJKv7YP6AIs53/0SXvjf/RKIfnfOZiRasAcOQeVfWU=; b=XoMaaY3RM7IZTb/sAuGcrhPjFvtQCK833kAXAsTJNz1J7s1HfxzmADHa UUk1JCZeIxNot1kfxkSA4knAcVA2HgelLalNtyj2SdxuwVv3/REc3dW1d mFELOK87iSNavj+ppS37cskhLDqd3Aj2DOhOVr7hKr8OuEwjoS7Hu7NOH a0MJXHLFE2oPuRDBHq4NiPz/3drL+acYjUUTaAn2UjXf6yslxKOns1mTo LV+4kAzCGGoQTgvZ3F7ZiEsGy7tRHH+kYCZ3kwEH6hUcmUWWBsrQAo42d 4JlOTEBR+ZV0pAdq1tFNzBV89UYh/TP5u7MZriZUuCVFDmtnht43LG/Q8 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="290341694" X-IronPort-AV: E=Sophos;i="5.96,137,1665471600"; d="scan'208";a="290341694" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 05:18:24 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10520"; a="760309084" X-IronPort-AV: E=Sophos;i="5.96,137,1665471600"; d="scan'208";a="760309084" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.46.118]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2022 05:18:21 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 0/3] perf: intel-pt: Add hybrid CPU compatibility test Date: Fri, 4 Nov 2022 14:18:02 +0200 Message-Id: <20221104121805.5264-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748568160945181384?= X-GMAIL-MSGID: =?utf-8?q?1748568160945181384?= Hi The kernel driver assumes hybrid CPUs will have Intel PT capabilities that are compatible with the boot CPU. Add a test to check that is the case. First 2 patches are preparation. Adrian Hunter (3): perf: intel-pt: Rename intel-pt-pkt-decoder-test.c perf: intel-pt: Redefine test_suite perf: intel-pt: Add hybrid CPU compatibility test tools/perf/arch/x86/include/arch-tests.h | 1 + tools/perf/arch/x86/tests/Build | 2 +- tools/perf/arch/x86/tests/arch-tests.c | 15 +- ...intel-pt-pkt-decoder-test.c => intel-pt-test.c} | 154 +++++++++++++++++++++ 4 files changed, 169 insertions(+), 3 deletions(-) rename tools/perf/arch/x86/tests/{intel-pt-pkt-decoder-test.c => intel-pt-test.c} (80%) Regards Adrian Acked-by: Namhyung Kim